Skip to content

Commit ff20327

Browse files
authored
owls-99772 - Github issue # 3122 - Provide ablility to specify the UID for the container in helm chart (#3179)
* Provide ability to specify the UID for the container in helm chart
1 parent 4dd26fe commit ff20327

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

documentation/3.4/content/userguide/managing-operators/using-helm.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ description: "An operator runtime is installed and configured using Helm. Here a
2222
- [`labels`](#labels)
2323
- [`nodeSelector`](#nodeselector)
2424
- [`affinity`](#affinity)
25+
- [`runAsUser`](#runasuser)
2526
- [WebLogic domain management](#weblogic-domain-management)
2627
- [`domainNamespaceSelectionStrategy`](#domainnamespaceselectionstrategy)
2728
- [`domainNamespaces`](#domainnamespaces)
@@ -288,6 +289,14 @@ affinity:
288289
- another-node-label-value
289290
```
290291

292+
##### `runAsUser`
293+
Specifies the UID to run the operator container process. If not specified, it defaults to the user specified in the operator's container image.
294+
295+
Example:
296+
```yaml
297+
runAsUser: 1000
298+
```
299+
291300
#### WebLogic domain management
292301

293302
The settings in this section determine the namespaces that an operator

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
{{- end }}
3434
spec:
3535
serviceAccountName: {{ .serviceAccount | quote }}
36+
{{- if .runAsUser }}
37+
securityContext:
38+
runAsUser: {{ .runAsUser }}
39+
{{- end }}
3640
{{- with .nodeSelector }}
3741
nodeSelector:
3842
{{- toYaml . | nindent 8 }}

kubernetes/charts/weblogic-operator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,8 @@ clusterSizePaddingValidationEnabled: true
228228
# Defaults to 5 retries and 10 seconds between each retry.
229229
# domainPresenceFailureRetryMaxCount: 5
230230
# domainPresenceFailureRetrySeconds: 10
231+
232+
# runAsUser specifies the UID to run the operator container process. If not specified,
233+
# it defaults to the user specified in the operator's container image.
234+
#runAsUser: 1000
235+

0 commit comments

Comments
 (0)