Skip to content

Commit 2aefc93

Browse files
authored
Use the project-specific service account for the operator (#163)
1 parent 6c4c506 commit 2aefc93

6 files changed

Lines changed: 10 additions & 3 deletions

File tree

config/manager/manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ spec:
3939
requests:
4040
cpu: 100m
4141
memory: 20Mi
42+
serviceAccountName: controller-manager
4243
terminationGracePeriodSeconds: 10

config/rbac/auth_proxy_role_binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ roleRef:
88
name: proxy-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
11+
name: controller-manager
1212
namespace: system

config/rbac/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ resources:
1010
- auth_proxy_role.yaml
1111
- auth_proxy_role_binding.yaml
1212
- auth_proxy_client_clusterrole.yaml
13+
- service_account.yaml

config/rbac/leader_election_role_binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ roleRef:
88
name: leader-election-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
11+
name: controller-manager
1212
namespace: system

config/rbac/role_binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ roleRef:
88
name: manager-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
11+
name: controller-manager
1212
namespace: system

config/rbac/service_account.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: controller-manager
5+
namespace: system

0 commit comments

Comments
 (0)