github.com/kyma-project/kyma-environment-broker@v0.0.1/resources/kcp/charts/kyma-environment-broker/templates/subscription-cleanup-job.yaml (about)

     1  apiVersion: batch/v1
     2  kind: CronJob
     3  metadata:
     4    name: subscription-cleanup-job
     5  spec:
     6    jobTemplate:
     7      metadata:
     8        name: subscription-cleanup-job
     9      spec:
    10        template:
    11          spec:
    12            containers:
    13              - image: "{{ .Values.global.images.containerRegistry.path }}/{{ .Values.global.images.kyma_environments_subscription_cleanup_job.dir }}kyma-environment-subscription-cleanup-job:{{ .Values.global.images.kyma_environments_subscription_cleanup_job.version }}"
    14                name: subscription-cleanup-job
    15                command:
    16                  - "/bin/main"
    17                env:
    18                  - name: APP_GARDENER_PROJECT
    19                    value: {{ .Values.gardener.project }}
    20                  - name: APP_GARDENER_KUBECONFIG_PATH
    21                    value: {{ .Values.gardener.kubeconfigPath }}
    22                volumeMounts:
    23                  - mountPath: /gardener/kubeconfig
    24                    name: gardener-kubeconfig
    25                    readOnly: true
    26                resources: {}
    27            restartPolicy: OnFailure
    28            volumes:
    29              - name: gardener-kubeconfig
    30                secret:
    31                  secretName: {{ .Values.gardener.secretName }}
    32    schedule: '0 2,14 * * *'
    33  status: {}