Skip to content

Commit

Permalink
Controller starts successfully on Gardener cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Sep 20, 2023
1 parent 9adb5ce commit c0719ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repo: github.com/kyma-project/infrastructure-manager
resources:
- api:
crdVersion: v1
namespaced: false
namespaced: true
controller: true
domain: kyma-project.io
group: infrastructuremanager
Expand Down
Empty file.
Empty file.
6 changes: 3 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rules:
- apiGroups:
- infrastructuremanager.kyma-project.io
resources:
- clusters
- gardenerclusters
verbs:
- create
- delete
Expand All @@ -19,13 +19,13 @@ rules:
- apiGroups:
- infrastructuremanager.kyma-project.io
resources:
- clusters/finalizers
- gardenerclusters/finalizers
verbs:
- update
- apiGroups:
- infrastructuremanager.kyma-project.io
resources:
- clusters/status
- gardenerclusters/status
verbs:
- get
- patch
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type ClusterReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=clusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=clusters/finalizers,verbs=update
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=gardenerclusters,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=gardenerclusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=gardenerclusters/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit c0719ad

Please sign in to comment.