diff --git a/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml b/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
index fb6f07e0918ae0d30634f797da73262008887591..7e120ec07c43be9820ae0bcb3f774b2309546d30 100644
--- a/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
+++ b/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
@@ -13,63 +13,65 @@ spec:
         app.kubernetes.io/instance: {{.Release.Name | quote }}
         helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
     spec:
-      restartPolicy: OnFailure
-      containers:
-      {{- range .Values.oAuthClients }}
-      - name: {{ .clientName | quote }}
-        image: {{ $.Values.userbackend.image.repository }}:{{ $.Values.userbackend.image.tag }}
-        imagePullPolicy: {{ $.Values.userbackend.image.pullPolicy }}
-        env:
-        - name: CLIENT_ID
-          valueFrom:
-            secretKeyRef:
-              name: oauth2-clients
-              key: {{ .clientName }}_client_id
-        - name: CLIENT_SECRET
-          valueFrom:
-            secretKeyRef:
-              name: oauth2-clients
-              key: {{ .clientName }}_client_secret
-        - name: CLIENT_NAME
-          value: {{ .clientName | quote }}
-        - name: REDIRECT_URI
-          value: {{ .redirectUri | quote }}
-        - name: SCOPES
-          value: {{ .scopes | quote }}
-        - name: CLIENT_URI
-          value: {{ .clientUri | quote }}
-        - name: CLIENT_LOGO_URI
-          value: {{ .clientLogoUri | quote }}
-        - name: TOKEN_ENDPOINT_AUTH_METHOD
-          value: {{ .tokenEndpointAuthMethod | quote }}
-        - name: RESPONSE_TYPES
-          value: "{{- range .responseTypes }}\"{{ . }}\",{{- end }}"
-        - name: GRANT_TYPES
-          value: "{{- range .grantTypes }}\"{{ . }}\",{{- end }}"
-        command: ["/bin/bash", "-c"]
-        args:
-        - >
-          curl http://{{ $.Release.Name }}-hydra-admin:4445/clients/$CLIENT_NAME \
-               --silent \
-               --write-out "\n%{http_code}\n"  \
-               | tail -1  \
-               | grep -v 200 &&
-          curl --header "Content-Type: application/json" \
-               --request POST \
-               --data "{\"client_id\": \"$CLIENT_ID\",
-                        \"client_name\": \"$CLIENT_NAME\",
-                        \"client_secret\": \"$CLIENT_SECRET\",
-                        \"client_uri\": \"$CLIENT_URI\",
-                        \"logo_uri\": \"$CLIENT_LOGO_URI\",
-                        \"redirect_uris\": [\"$REDIRECT_URI\"],
-                        \"scope\": \"$SCOPES\",
-                        \"grant_types\": [$GRANT_TYPES\"\"],
-                        \"response_types\": [$RESPONSE_TYPES\"\"],
-                        \"token_endpoint_auth_method\": \"client_secret_post\"}" \
-               http://{{ $.Release.Name }}-hydra-admin:4445/clients \
-               --silent \
-               --write-out "\n%Creating oauth client $CLIENT_ID: HTTP(%{http_code})\n" \
-               | tail -1  \
-               | grep 201 &&
-          echo "Successfully created $CLIENT_ID"
-      {{- end }}
+      template:
+        spec:
+          restartPolicy: OnFailure
+          containers:
+          {{- range .Values.oAuthClients }}
+          - name: {{ .clientName | quote }}
+            image: {{ $.Values.userbackend.image.repository }}:{{ $.Values.userbackend.image.tag }}
+            imagePullPolicy: {{ $.Values.userbackend.image.pullPolicy }}
+            env:
+            - name: CLIENT_ID
+              valueFrom:
+                secretKeyRef:
+                  name: oauth2-clients
+                  key: {{ .clientName }}_client_id
+            - name: CLIENT_SECRET
+              valueFrom:
+                secretKeyRef:
+                  name: oauth2-clients
+                  key: {{ .clientName }}_client_secret
+            - name: CLIENT_NAME
+              value: {{ .clientName | quote }}
+            - name: REDIRECT_URI
+              value: {{ .redirectUri | quote }}
+            - name: SCOPES
+              value: {{ .scopes | quote }}
+            - name: CLIENT_URI
+              value: {{ .clientUri | quote }}
+            - name: CLIENT_LOGO_URI
+              value: {{ .clientLogoUri | quote }}
+            - name: TOKEN_ENDPOINT_AUTH_METHOD
+              value: {{ .tokenEndpointAuthMethod | quote }}
+            - name: RESPONSE_TYPES
+              value: "{{- range .responseTypes }}\"{{ . }}\",{{- end }}"
+            - name: GRANT_TYPES
+              value: "{{- range .grantTypes }}\"{{ . }}\",{{- end }}"
+            command: ["/bin/bash", "-c"]
+            args:
+            - >
+              curl http://{{ $.Release.Name }}-hydra-admin:4445/clients/$CLIENT_NAME \
+                  --silent \
+                  --write-out "\n%{http_code}\n"  \
+                  | tail -1  \
+                  | grep -v 200 &&
+              curl --header "Content-Type: application/json" \
+                  --request POST \
+                  --data "{\"client_id\": \"$CLIENT_ID\",
+                            \"client_name\": \"$CLIENT_NAME\",
+                            \"client_secret\": \"$CLIENT_SECRET\",
+                            \"client_uri\": \"$CLIENT_URI\",
+                            \"logo_uri\": \"$CLIENT_LOGO_URI\",
+                            \"redirect_uris\": [\"$REDIRECT_URI\"],
+                            \"scope\": \"$SCOPES\",
+                            \"grant_types\": [$GRANT_TYPES\"\"],
+                            \"response_types\": [$RESPONSE_TYPES\"\"],
+                            \"token_endpoint_auth_method\": \"client_secret_post\"}" \
+                  http://{{ $.Release.Name }}-hydra-admin:4445/clients \
+                  --silent \
+                  --write-out "\n%Creating oauth client $CLIENT_ID: HTTP(%{http_code})\n" \
+                  | tail -1  \
+                  | grep 201 &&
+              echo "Successfully created $CLIENT_ID"
+          {{- end }}