Commit 9b52b170 authored by Aaron Walker's avatar Aaron Walker
Browse files

feat: lifecycle policy for workers

parent 82425802
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -120,8 +120,12 @@ items:
            timeoutSeconds: {{ $readinessProbeConfig.timeoutSeconds }}
{{- end }}
{{- end }}
          {{- if $workerConfig.preStopCommand }}
          {{- if or $workerConfig.lifecycle $workerConfig.preStopCommand }}
          lifecycle:
          {{- if $workerConfig.lifecycle }}
{{ toYaml $workerConfig.lifecycle | indent 12 }}
          {{- end }}
            {{- if $workerConfig.preStopCommand }}
            preStop:
              exec:
                command:
@@ -129,6 +133,7 @@ items:
                - {{ . }}
                {{- end }}
            {{- end}}
          {{- end }}
          resources:
{{ toYaml $.Values.resources | indent 12 }}
{{- end -}}
+4 −0
Original line number Diff line number Diff line
@@ -152,6 +152,10 @@ workers: {}
  #     timeoutSeconds: 3
  #     scheme: "HTTP"
  #     probeType: "httpGet"
  #   lifecycle:
  #     preStop:
  #       exec:
  #         command: ["/bin/sh", "-c", "sleep 10"]
  #   preStopCommand:
  #   - /bin/herokuish
  #   - procfile