Unverified Commit ced3a9c2 authored by Eric Vaandering's avatar Eric Vaandering Committed by GitHub
Browse files

Merge pull request #108 from ericvaandering/arbitrary_restart

Make pods to restart configurable
parents 533e9556 7577b367
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: rucio-daemons
version: 1.29.4
version: 1.29.5
apiVersion: v1
description: A Helm chart to deploy daemons for Rucio
keywords:
+1 −1
Original line number Diff line number Diff line
@@ -14,6 +14,6 @@ spec:
            - name: restart-pods
              image: "{{ .Values.automaticRestart.image.repository }}:{{ .Values.automaticRestart.image.tag }}"
              imagePullPolicy: {{ .Values.automaticRestart.image.pullPolicy }}
              command: ["/bin/sh", "-c", "kubectl get deployment -l app-group=rucio-daemons -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n' | xargs -n 1 kubectl rollout restart deployment"]
              command: ["/bin/sh", "-c", "kubectl get deployment -l {{ .Values.automaticRestart.selectorLabel }} -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n' | xargs -n 1 kubectl rollout restart deployment"]
          restartPolicy: OnFailure
{{ end }}
+1 −0
Original line number Diff line number Diff line
@@ -378,6 +378,7 @@ automaticRestart:
    tag: latest
    pullPolicy: IfNotPresent
  schedule: "0 0 * * *"
  selectorLabel: "app-group=rucio-daemons"

additionalSecrets: {}
  # gcssecret:
+1 −1
Original line number Diff line number Diff line
name: rucio-server
version: 1.29.0
version: 1.29.1
apiVersion: v1
description: A Helm chart to deploy servers for Rucio
keywords:
+1 −1
Original line number Diff line number Diff line
@@ -14,6 +14,6 @@ spec:
            - name: restart-pods
              image: "{{ .Values.automaticRestart.image.repository }}:{{ .Values.automaticRestart.image.tag }}"
              imagePullPolicy: {{ .Values.automaticRestart.image.pullPolicy }}
              command: ["/bin/sh", "-c", "kubectl get deployment -l 'app in (rucio-server,rucio-server-trace,rucio-server-auth)' -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n' | xargs -n 1 kubectl rollout restart deployment"]
              command: ["/bin/sh", "-c", "kubectl get deployment -l {{ .Values.automaticRestart.selectorLabel }} -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n' | xargs -n 1 kubectl rollout restart deployment"]
          restartPolicy: OnFailure
{{ end }}
Loading