diff --git a/squadcast-helm/templates/deployment.yaml b/squadcast-helm/templates/deployment.yaml index a0a440e..9cd3f3e 100644 --- a/squadcast-helm/templates/deployment.yaml +++ b/squadcast-helm/templates/deployment.yaml @@ -23,6 +23,9 @@ spec: labels: {{- include "squadcast-helm.selectorLabels" . | nindent 8 }} spec: + {{- if ((.Values.restartPolicy)).enabled }} + restartPolicy: {{ .Values.restartPolicy.restarts | default "Always" }} + {{- end }} serviceAccountName: {{ include "squadcast-helm.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}