-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBAC rule to patch serviceaccounts
The openstack-operator needs the ability to patch ServiceAccounts while deploying services. This change adds the required permissions for the operator to patch serviceaccounts. Signed-off-by: Brendan Shephard <[email protected]>
- Loading branch information
Showing
3 changed files
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ rules: | |
- create | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,6 @@ func (r *OpenStackControlPlaneReconciler) GetLogger(ctx context.Context) logr.Lo | |
// For more details, check Reconcile and its Result here: | ||
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile | ||
func (r *OpenStackControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, _err error) { | ||
|
||
Log := r.GetLogger(ctx) | ||
// Fetch the OpenStackControlPlane instance | ||
instance := &corev1beta1.OpenStackControlPlane{} | ||
|
@@ -263,11 +262,9 @@ func (r *OpenStackControlPlaneReconciler) Reconcile(ctx context.Context, req ctr | |
return ctrl.Result{}, nil | ||
} | ||
} | ||
|
||
} | ||
|
||
func (r *OpenStackControlPlaneReconciler) reconcileOVNControllers(ctx context.Context, instance *corev1beta1.OpenStackControlPlane, version *corev1beta1.OpenStackVersion, helper *common_helper.Helper) (ctrl.Result, error) { | ||
|
||
OVNControllerReady, err := openstack.ReconcileOVNController(ctx, instance, version, helper) | ||
if err != nil { | ||
return ctrl.Result{}, err | ||
|
@@ -281,11 +278,9 @@ func (r *OpenStackControlPlaneReconciler) reconcileOVNControllers(ctx context.Co | |
instance.Status.Conditions.MarkTrue(corev1beta1.OpenStackControlPlaneOVNReadyCondition, corev1beta1.OpenStackControlPlaneOVNReadyMessage) | ||
} | ||
return ctrl.Result{}, nil | ||
|
||
} | ||
|
||
func (r *OpenStackControlPlaneReconciler) reconcileNormal(ctx context.Context, instance *corev1beta1.OpenStackControlPlane, version *corev1beta1.OpenStackVersion, helper *common_helper.Helper) (ctrl.Result, error) { | ||
|
||
ctrlResult, err := openstack.ReconcileCAs(ctx, instance, helper) | ||
if err != nil { | ||
return ctrl.Result{}, err | ||
|
@@ -458,7 +453,6 @@ func (r *OpenStackControlPlaneReconciler) reconcileDelete(ctx context.Context, i | |
helper.GetLogger().Info(fmt.Sprintf("finalizer removed '%s' successfully", helper.GetFinalizer())) | ||
|
||
return ctrl.Result{}, nil | ||
|
||
} | ||
|
||
// fields to index to reconcile when change | ||
|