---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: mutating-webhook-configuration
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /mutate-egressgateway-kubernetes-azure-com-v1alpha1-staticgatewayconfiguration
  failurePolicy: Fail
  name: mstaticgatewayconfiguration.kb.io
  rules:
  - apiGroups:
    - egressgateway.kubernetes.azure.com
    apiVersions:
    - v1alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - staticgatewayconfigurations
  sideEffects: None
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: validating-webhook-configuration
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /validate-egressgateway-kubernetes-azure-com-v1alpha1-staticgatewayconfiguration
  failurePolicy: Fail
  name: vstaticgatewayconfiguration.kb.io
  rules:
  - apiGroups:
    - egressgateway.kubernetes.azure.com
    apiVersions:
    - v1alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - staticgatewayconfigurations
  sideEffects: None
