mirror of
https://github.com/truenas/charts.git
synced 2026-02-13 07:15:43 +08:00
Add run As user in ix chart
This commit is contained in:
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 2207.2.0
|
||||
version: 2208.0.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
@@ -600,6 +600,27 @@ questions:
|
||||
label: "Add Capability"
|
||||
schema:
|
||||
type: string
|
||||
- variable: enableRunAsUser
|
||||
label: "Configure Container User and Group ID"
|
||||
description: "Configure security context runAsUser and runAsGroup variables"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: runAsUser
|
||||
label: "Run Container As User"
|
||||
description: "Configure user id for container."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: runAsGroup
|
||||
label: "Run Container As Group"
|
||||
description: "Configure group id for container."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
|
||||
- variable: enableResourceLimits
|
||||
label: "Enable Pod resource limits"
|
||||
@@ -60,6 +60,10 @@ containers:
|
||||
stdin: {{ .Values.stdin }}
|
||||
securityContext:
|
||||
privileged: {{ .Values.securityContext.privileged }}
|
||||
{{ if .Values.securityContext.enableRunAsUser }}
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||
{{ end }}
|
||||
{{ if .Values.securityContext.capabilities }}
|
||||
capabilities:
|
||||
add: {{ toYaml .Values.securityContext.capabilities | nindent 8 }}
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 2207.2.0
|
||||
version: 2208.0.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
@@ -600,6 +600,27 @@ questions:
|
||||
label: "Add Capability"
|
||||
schema:
|
||||
type: string
|
||||
- variable: enableRunAsUser
|
||||
label: "Configure Container User and Group ID"
|
||||
description: "Configure security context runAsUser and runAsGroup variables"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: runAsUser
|
||||
label: "Run Container As User"
|
||||
description: "Configure user id for container."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: runAsGroup
|
||||
label: "Run Container As Group"
|
||||
description: "Configure group id for container."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
|
||||
- variable: enableResourceLimits
|
||||
label: "Enable Pod resource limits"
|
||||
@@ -60,6 +60,10 @@ containers:
|
||||
stdin: {{ .Values.stdin }}
|
||||
securityContext:
|
||||
privileged: {{ .Values.securityContext.privileged }}
|
||||
{{ if .Values.securityContext.enableRunAsUser }}
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||
{{ end }}
|
||||
{{ if .Values.securityContext.capabilities }}
|
||||
capabilities:
|
||||
add: {{ toYaml .Values.securityContext.capabilities | nindent 8 }}
|
||||
Reference in New Issue
Block a user