Skip to content

Commit

Permalink
Merge pull request #361 from brunorene/add-securitycontexts-to-helm-k…
Browse files Browse the repository at this point in the history
…w-defaults

feat: Include `securityContexts` Kubewarden-defaults Helm chart for Policy Servers
  • Loading branch information
viccuad authored Jan 9, 2024
2 parents 9732c46 + 5190bb2 commit 617e0b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/kubewarden-defaults/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ policyServer:
- name: KUBEWARDEN_LOG_LEVEL
value: info
annotations: {}
# follows the format of https://docs.kubewarden.io/operator-manual/CRDs#policyserversecurity
securityContexts: {}
# imagePullSecret stores the secret name used to pull images from repositories.
# The secret should be in the same namespace of the Policy Server
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ spec:
value: {{ .value | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.policyServer.imagePullSecret }}
imagePullSecret: {{ .Values.policyServer.imagePullSecret | quote }}
{{- end }}
Expand All @@ -49,3 +48,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.policyServer.securityContexts }}
securityContexts: {{ toYaml .Values.policyServer.securityContexts | nindent 4 }}
{{- end }}
{{- end }}


2 changes: 2 additions & 0 deletions charts/kubewarden-defaults/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ policyServer:
- name: KUBEWARDEN_LOG_LEVEL
value: info
annotations: {}
# follows the format of https://docs.kubewarden.io/operator-manual/CRDs#policyserversecurity
securityContexts: {}
# imagePullSecret stores the secret name used to pull images from repositories.
# The secret should be in the same namespace of the Policy Server
#
Expand Down

0 comments on commit 617e0b0

Please sign in to comment.