Skip to content

Commit acc446d

Browse files
authored
Merge pull request #3935 from Ankitasw/add-controller-id-rbac
Add back RBAC for controller identities
2 parents 9488cb5 + 3ffd443 commit acc446d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

config/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ rules:
143143
resources:
144144
- awsclustercontrolleridentities
145145
verbs:
146+
- create
146147
- get
147148
- list
148149
- watch

controllers/awscluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (r *AWSClusterReconciler) getSecurityGroupService(scope scope.ClusterScope)
127127
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclusters/status,verbs=get;update;patch
128128
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/status,verbs=get;list;watch
129129
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclusterroleidentities;awsclusterstaticidentities,verbs=get;list;watch
130-
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclustercontrolleridentities,verbs=get;list;watch
130+
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclustercontrolleridentities,verbs=get;list;watch;create
131131

132132
func (r *AWSClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error) {
133133
log := logger.FromContext(ctx)

exp/controlleridentitycreator/awscontrolleridentity_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type AWSControllerIdentityReconciler struct {
4848
WatchFilterValue string
4949
}
5050

51-
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclustercontrolleridentities,verbs=get;list;watch
51+
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclustercontrolleridentities,verbs=get;list;watch;create
5252

5353
func (r *AWSControllerIdentityReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5454
log := logger.FromContext(ctx)

pkg/logger/logger.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ limitations under the License.
1515
*/
1616

1717
// Package logger
18-
//nolint: logrlint
1918
package logger
2019

2120
import (

0 commit comments

Comments
 (0)