mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
31 lines
941 B
YAML
31 lines
941 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: {{ template "podinfo.fullname" . }}-jwt-test-{{ randAlphaNum 5 | lower }}
|
|
labels:
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
app: {{ template "podinfo.name" . }}
|
|
annotations:
|
|
"helm.sh/hook": test-success
|
|
sidecar.istio.io/inject: "false"
|
|
linkerd.io/inject: disabled
|
|
appmesh.k8s.aws/sidecarInjectorWebhook: disabled
|
|
openservicemesh.io/sidecar-injection: disabled
|
|
spec:
|
|
containers:
|
|
- name: tools
|
|
image: giantswarm/tiny-tools
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
TOKEN=$(curl -sd 'test' ${PODINFO_SVC}/token | jq -r .token) &&
|
|
curl -H "Authorization: Bearer ${TOKEN}" ${PODINFO_SVC}/token/validate | grep test
|
|
env:
|
|
- name: PODINFO_SVC
|
|
value: {{ template "podinfo.fullname" . }}:{{ .Values.service.port }}
|
|
restartPolicy: Never
|
|
|