Files
my-rook-config/tests/scripts/webhook-config.yaml
T

53 lines
1.9 KiB
YAML
Raw Normal View History

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: ${WEBHOOK_CONFIG_NAME}
annotations:
cert-manager.io/inject-ca-from: ${NAMESPACE}/rook-admission-controller-cert
webhooks:
2020-12-14 18:47:25 +09:00
- name: cephcluster-wh-${SERVICE_NAME}-${NAMESPACE}.rook.io
rules:
- apiGroups: ["ceph.rook.io"]
apiVersions: ["v1"]
operations: ["CREATE","UPDATE","DELETE"]
resources: ["cephclusters"]
clientConfig:
service:
name: ${SERVICE_NAME}
namespace: ${NAMESPACE}
path: /validate-ceph-rook-io-v1-cephcluster
caBundle: ${CA_BUNDLE}
admissionReviewVersions: ["v1", "v1beta1"] # API server will try to use first version in the list which it supports.
sideEffects: None
timeoutSeconds: 5
2020-12-14 18:47:25 +09:00
- name: cephblockpool-wh-${SERVICE_NAME}-${NAMESPACE}.rook.io
rules:
- apiGroups: ["ceph.rook.io"]
apiVersions: ["v1"]
operations: ["CREATE","UPDATE","DELETE"]
resources: ["cephblockpools"]
clientConfig:
service:
name: ${SERVICE_NAME}
namespace: ${NAMESPACE}
path: /validate-ceph-rook-io-v1-cephblockpool
caBundle: ${CA_BUNDLE}
admissionReviewVersions: ["v1", "v1beta1"] # API server will try to use first version in the list which it supports.
sideEffects: None
timeoutSeconds: 5
- name: cephobjectstore-wh-${SERVICE_NAME}-${NAMESPACE}.rook.io
rules:
- apiGroups: ["ceph.rook.io"]
apiVersions: ["v1"]
operations: ["CREATE","UPDATE","DELETE"]
resources: ["cephobjectstores"]
clientConfig:
service:
name: ${SERVICE_NAME}
namespace: ${NAMESPACE}
path: /validate-ceph-rook-io-v1-cephobjectstore
caBundle: ${CA_BUNDLE}
admissionReviewVersions: ["v1", "v1beta1"] # API server will try to use first version in the list which it supports.
sideEffects: None
timeoutSeconds: 5