Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/pages/includes/helm-reference/zz_generated.tbot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -557,3 +557,15 @@ See [the Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-po
for more details.

By default, this is unset.

## `podSecurityContext`

| Type | Default |
|------|---------|
| `object` | `null` |

`podSecurityContext` sets the pod security context for any pods created by the chart.
See [the Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
for more details.

By default, this is unset.
4 changes: 4 additions & 0 deletions examples/chart/tbot/.lint/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,7 @@ securityContext:
runAsUser: 9807
seccompProfile:
type: RuntimeDefault

podSecurityContext:
runAsUser: 1000
runAsGroup: 3000
3 changes: 3 additions & 0 deletions examples/chart/tbot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
{{- end }}
{{- if .Values.tolerations }}
tolerations: {{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.podSecurityContext }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
containers:
- name: tbot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ should match the snapshot (full):
- name: test-pull-secret
nodeSelector:
test-key: test-node-selector
securityContext:
runAsGroup: 3000
runAsUser: 1000
serviceAccountName: modified-sa-name
tolerations:
- effect: NoSchedule
Expand Down
7 changes: 7 additions & 0 deletions examples/chart/tbot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,10 @@ extraEnv: []
#
# By default, this is unset.
securityContext: null

# podSecurityContext(object) -- sets the pod security context for any pods created by the chart.
# See [the Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
# for more details.
#
# By default, this is unset.
podSecurityContext: null
Loading