1
0
forked from suse-edge/Factory
Factory/upgrade-controller-chart/templates/validating_webhook_configuration.yaml

30 lines
925 B
YAML
Raw Normal View History

2024-10-22 09:51:51 +02:00
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: {{ include "upgrade-controller.fullname" . }}-validating-webhook-configuration
labels:
{{- include "upgrade-controller.labels" . | nindent 4 }}
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "upgrade-controller.certificate" . }}
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: {{ include "upgrade-controller.webhookServiceName" . }}
namespace: {{ .Release.Namespace }}
path: /validate-lifecycle-suse-com-v1alpha1-upgradeplan
failurePolicy: Fail
name: upgrade-plan-policy.suse.com
rules:
- apiGroups:
- lifecycle.suse.com
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- upgradeplans
sideEffects: None