Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make securityContext configurable #102

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion helm/designate-certmanager-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "0.2.18"
description: ACME webhook Implementation for OpenStack Designate
name: designate-certmanager-webhook
version: "0.5.0"
version: "0.6.0"
8 changes: 8 additions & 0 deletions helm/designate-certmanager-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "designate-certmanager-webhook.fullname" . }}
initContainers:
- name: wait-for-tls-secret
securityContext:
{{- toYaml .Values.alpine.securityContext | nindent 12 }}
image: "{{ .Values.alpine.image.repository }}:{{ .Values.alpine.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
Expand All @@ -38,6 +42,8 @@ spec:
- -c
- "while [ ! -f /tls/tls.key ]; do sleep 5; done"
- name: add-apiservice
securityContext:
{{- toYaml .Values.kubectl.securityContext | nindent 12 }}
image: "{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
Expand All @@ -53,6 +59,8 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --tls-cert-file=/tls/tls.crt
Expand Down
6 changes: 6 additions & 0 deletions helm/designate-certmanager-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ image:
tag: 0.2.18
pullPolicy: IfNotPresent

podSecurityContext: {}
securityContext: {}

alpine:
image:
repository: alpine
tag: latest
securityContext: {}

kubectl:
image:
repository: bitnami/kubectl
tag: latest
securityContext: {}

imagePullSecrets: []

Expand Down
Loading