Skip to content

Commit c5977d4

Browse files
author
Anton
authored
CLOUDP-84606: helm support (#182)
1 parent 252453e commit c5977d4

File tree

12 files changed

+20
-18
lines changed

12 files changed

+20
-18
lines changed

config/manager/manager.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ spec:
2525
securityContext:
2626
runAsNonRoot: true
2727
runAsUser: 2000
28+
serviceAccountName: operator
2829
containers:
2930
- command:
3031
- /manager
@@ -49,11 +50,11 @@ spec:
4950
imagePullPolicy: Always
5051
resources:
5152
limits:
52-
cpu: 100m
53-
memory: 100Mi
53+
cpu: 500m
54+
memory: 256Mi
5455
requests:
5556
cpu: 100m
56-
memory: 20Mi
57+
memory: 50Mi
5758
env:
5859
- name: OPERATOR_POD_NAME
5960
valueFrom:

config/managerwithproxy/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
spec:
1111
containers:
1212
- name: kube-rbac-proxy
13-
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0
13+
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
1414
args:
1515
- "--secure-listen-address=0.0.0.0:8443"
1616
- "--upstream=http://127.0.0.1:8080/"

config/rbac/clusterwide/auth_proxy_role_binding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ roleRef:
88
name: proxy-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
12-
namespace: system
11+
name: operator
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
resources:
22
- role.yaml
33
- role_binding.yaml
4+
- ../service_account.yaml
45
- ../leader_election_role.yaml
56
- ../leader_election_role_binding.yaml
67
# Comment the following 4 lines if you want to disable
78
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
89
# which protects your /metrics endpoint.
910
- auth_proxy_role.yaml
1011
- auth_proxy_role_binding.yaml
11-
- ../auth_proxy_client_clusterrole.yaml
12+
#- ../auth_proxy_client_clusterrole.yaml
1213
- ../auth_proxy_service.yaml

config/rbac/clusterwide/role_binding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ roleRef:
88
name: manager-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
12-
namespace: system
11+
name: operator

config/rbac/leader_election_role_binding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ roleRef:
88
name: leader-election-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
12-
namespace: system
11+
name: operator

config/rbac/namespaced/auth_proxy_role_binding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ roleRef:
88
name: proxy-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
12-
namespace: system
11+
name: operator
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
resources:
22
- role.yaml
33
- role_binding.yaml
4+
- ../service_account.yaml
45
- ../leader_election_role.yaml
56
- ../leader_election_role_binding.yaml
67
# Comment the following 4 lines if you want to disable
78
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
89
# which protects your /metrics endpoint.
910
- auth_proxy_role.yaml
1011
- auth_proxy_role_binding.yaml
11-
- ../auth_proxy_client_clusterrole.yaml
12+
#- ../auth_proxy_client_clusterrole.yaml
1213
- ../auth_proxy_service.yaml

config/rbac/namespaced/role_binding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ roleRef:
88
name: manager-role
99
subjects:
1010
- kind: ServiceAccount
11-
name: default
12-
namespace: system
11+
name: operator

config/rbac/service_account.yaml

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

0 commit comments

Comments
 (0)