fail.yaml 656 B

12345678910111213141516171819202122
  1. {{- if .Values.faults.testFail }}
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. name: {{ template "podinfo.fullname" . }}-fault-test-{{ randAlphaNum 5 | lower }}
  6. namespace: {{ include "podinfo.namespace" . }}
  7. labels:
  8. {{- include "podinfo.labels" . | nindent 4 }}
  9. annotations:
  10. "helm.sh/hook": test-success
  11. "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
  12. sidecar.istio.io/inject: "false"
  13. linkerd.io/inject: disabled
  14. appmesh.k8s.aws/sidecarInjectorWebhook: disabled
  15. spec:
  16. containers:
  17. - name: fault
  18. image: alpine:3.11
  19. command: ['/bin/sh']
  20. args: ['-c', 'exit 1']
  21. restartPolicy: Never
  22. {{- end }}