Skip to content

Commit 45f0e08

Browse files
[Feature] Allow configuration for runAsUser value for Operator (#948)
1 parent e112efb commit 45f0e08

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Change Log
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
4+
- (Feature) Allow configuration for securityContext.runAsUser value
45

56
## [1.2.9](https://github.com/arangodb/kube-arangodb/tree/1.2.9) (2022-03-30)
67
- (Feature) Improve Kubernetes clientsets management

chart/kube-arangodb/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ tolerations:
139139
```
140140
Default (empty): `[]`
141141

142+
### `operator.securityContext.runAsUser`
143+
144+
Controls which user ID the containers are run with.
145+
146+
Default: `1000`
147+
142148
### `operator.replicaCount`
143149

144150
Replication count for Operator deployment.

chart/kube-arangodb/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ spec:
8686
hostIPC: false
8787
securityContext:
8888
runAsNonRoot: true
89-
runAsUser: 1000
89+
runAsUser: {{ .Values.operator.securityContext.runAsUser }}
9090
containers:
9191
- name: operator
9292
imagePullPolicy: {{ .Values.operator.imagePullPolicy }}

chart/kube-arangodb/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ operator:
2727
cpu: 250m
2828
memory: 256Mi
2929

30+
securityContext:
31+
runAsUser: 1000
32+
3033
replicaCount: 2
3134

3235
updateStrategy:

0 commit comments

Comments
 (0)