Skip to content

Commit

Permalink
Remove artifacts of selective deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ubombar committed Mar 19, 2024
1 parent 450f45a commit 5b26774
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
12 changes: 0 additions & 12 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"

antreav1alpha1 "antrea.io/antrea/pkg/apis/crd/v1alpha1"
deploymentsv1 "github.com/edgenet-project/edgenet-software/api/deployments/v1"
multitenancyv1 "github.com/edgenet-project/edgenet-software/api/multitenancy/v1"
deploymentscontroller "github.com/edgenet-project/edgenet-software/internal/controller/deployments"
multitenancycontroller "github.com/edgenet-project/edgenet-software/internal/controller/multitenancy"
"github.com/edgenet-project/edgenet-software/internal/utils"
//+kubebuilder:scaffold:imports
Expand All @@ -53,7 +51,6 @@ func init() {

utilruntime.Must(antreav1alpha1.AddToScheme(scheme))
utilruntime.Must(multitenancyv1.AddToScheme(scheme))
utilruntime.Must(deploymentsv1.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme
}

Expand Down Expand Up @@ -154,15 +151,6 @@ func main() {
os.Exit(1)
}
}
if !disabledReconcilers.Contains("SelectiveDeployment") {
if err = (&deploymentscontroller.SelectiveDeploymentReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "SelectiveDeployment")
os.Exit(1)
}
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down
61 changes: 1 addition & 60 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -15,66 +16,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- cronjobs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- jobs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- crd.antrea.io
resources:
Expand Down

0 comments on commit 5b26774

Please sign in to comment.