apiVersion: batch/v1
kind: Job
metadata:
  name: ingress-annotation
  annotations:
    argocd.argoproj.io/hook: PostSync
    argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
  template:
    spec:
      containers:
        - image: registry.redhat.io/openshift4/ose-cli:v4.9
          command:
            - oc 
            - annotate
            - --overwrite
            - ingresses.config/cluster
            - ingress.operator.openshift.io/default-enable-http2=true
          imagePullPolicy: Always
          name: ingress-annotation
      dnsPolicy: ClusterFirst
      restartPolicy: OnFailure
      terminationGracePeriodSeconds: 30
      serviceAccount: ingress-annotation
      serviceAccountName: ingress-annotation
