mirror of https://git.rancher.io/rke2-charts
19 lines
608 B
YAML
19 lines
608 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "snapshot-validation-webhook.fullname" . }}-test-invalid-body"
|
|
labels:
|
|
{{- include "snapshot-validation-webhook.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
containers:
|
|
- name: curl
|
|
image: curlimages/curl
|
|
args:
|
|
- sh
|
|
- -exc
|
|
- |
|
|
curl -kfsS -X POST -H 'Content-Type: application/json' -d '{{ .Files.Get "tests/invalid-admission.json" | trim }}' https://{{ include "snapshot-validation-webhook.fullname" . }}/volumesnapshot | grep -c '"allowed":false'
|
|
restartPolicy: Never
|