github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/admission-webhooks/mutatingWebhookConfiguration.yaml (about)

     1  {{- if .Values.admissionWebhooks.enabled -}}
     2  apiVersion: admissionregistration.k8s.io/v1
     3  kind: MutatingWebhookConfiguration
     4  metadata:
     5    name: {{ template "kubevela.fullname" . }}-admission
     6    namespace: {{ .Release.Namespace }}
     7    {{- if .Values.admissionWebhooks.certManager.enabled }}
     8    annotations:
     9      cert-manager.io/inject-ca-from: {{ printf "%s/%s-root-cert" .Release.Namespace (include "kubevela.fullname" .) | quote }}
    10    {{- end }}
    11  webhooks:
    12    - clientConfig:
    13        caBundle: Cg==
    14        service:
    15          name: {{ template "kubevela.name" . }}-webhook
    16          namespace: {{ .Release.Namespace }}
    17          path: /mutating-core-oam-dev-v1alpha1-workflowruns
    18      {{- if .Values.admissionWebhooks.patch.enabled  }}
    19      failurePolicy: Ignore
    20      {{- else }}
    21      failurePolicy: Fail
    22      {{- end }}
    23      name: mutating.core.oam.dev.v1alpha1.workflowruns
    24      sideEffects: None
    25      rules:
    26        - apiGroups:
    27            - core.oam.dev
    28          apiVersions:
    29            - v1alpha1
    30          operations:
    31            - CREATE
    32            - UPDATE
    33          resources:
    34            - workflowruns
    35          scope: Namespaced
    36      admissionReviewVersions:
    37        - v1beta1
    38        - v1
    39      timeoutSeconds: 5
    40  
    41  {{- end -}}