apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install
    helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
    helm.sh/hook-weight: "1"
  labels:
    app: startupapicheck
    app.kubernetes.io/component: startupapicheck
    app.kubernetes.io/instance: RELEASE-NAME
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: startupapicheck
    app.kubernetes.io/version: v1.7.0
    helm.sh/chart: cert-manager-v1.7.0
  name: RELEASE-NAME-cert-manager-startupapicheck
  namespace: default
spec:
  backoffLimit: 4
  template:
    metadata:
      labels:
        app: startupapicheck
        app.kubernetes.io/component: startupapicheck
        app.kubernetes.io/instance: RELEASE-NAME
        app.kubernetes.io/managed-by: Helm
        app.kubernetes.io/name: startupapicheck
        app.kubernetes.io/version: v1.7.0
        helm.sh/chart: cert-manager-v1.7.0
    spec:
      containers:
      - args:
        - check
        - api
        - --wait=1m
        image: quay.io/jetstack/cert-manager-ctl:v1.7.0
        imagePullPolicy: IfNotPresent
        name: cert-manager
      restartPolicy: OnFailure
      securityContext:
        runAsNonRoot: true
      serviceAccountName: RELEASE-NAME-cert-manager-startupapicheck
