rancher-partner-charts/charts/pixie/pixie-operator-chart/templates/deleter.yaml

26 lines
659 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
annotations:
helm.sh/hook: pre-delete
helm.sh/hook-delete-policy: hook-succeeded
name: vizier-deleter
namespace: '{{ .Release.Namespace }}'
spec:
template:
metadata:
name: vizier-deleter
spec:
containers:
- env:
- name: PL_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: PL_VIZIER_NAME
value: '{{ .Values.name }}'
image: gcr.io/pixie-oss/pixie-prod/operator/vizier_deleter:0.0.34
name: delete-job
restartPolicy: Never
serviceAccountName: pl-deleter-service-account