Skip to content

Commit

Permalink
remove fw controller for now
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Mar 6, 2024
1 parent aff43d1 commit 5457953
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 253 deletions.
1 change: 0 additions & 1 deletion PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ resources:
- api:
crdVersion: v1
namespaced: true
controller: true
domain: cluster.x-k8s.io
group: infrastructure
kind: LinodeFirewall
Expand Down
11 changes: 0 additions & 11 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ func main() {
machineWatchFilter string
clusterWatchFilter string
objectStorageBucketWatchFilter string
firewallWatchFilter string
metricsAddr string
enableLeaderElection bool
probeAddr string
)
flag.StringVar(&machineWatchFilter, "machine-watch-filter", "", "The machines to watch by label.")
flag.StringVar(&clusterWatchFilter, "cluster-watch-filter", "", "The clusters to watch by label.")
flag.StringVar(&objectStorageBucketWatchFilter, "object-storage-bucket-watch-filter", "", "The object bucket storages to watch by label.")
flag.StringVar(&firewallWatchFilter, "firewall-watch-filter", "", "The firewalls to watch by label.")
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
Expand Down Expand Up @@ -155,15 +153,6 @@ func main() {
setupLog.Error(err, "unable to create controller", "controller", "LinodeObjectStorageBucket")
os.Exit(1)
}
if err = (&caplController.LinodeFirewallReconciler{
Client: mgr.GetClient(),
Recorder: mgr.GetEventRecorderFor("LinodeFirewallReconciler"),
WatchFilterValue: firewallWatchFilter,
LinodeApiKey: linodeToken,
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "LinodeFirewall")
os.Exit(1)
}
// +kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down
241 changes: 0 additions & 241 deletions controller/linodefirewall_controller.go

This file was deleted.

0 comments on commit 5457953

Please sign in to comment.