Skip to content

Commit

Permalink
Add Rabbitmq webhook (#821)
Browse files Browse the repository at this point in the history
Signed-off-by: raihankhan <[email protected]>
  • Loading branch information
raihankhan authored Jan 23, 2024
1 parent a9f8cbf commit 2cff4fe
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,23 @@ webhooks:
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.RabbitMQ }}
- name: rabbitmqwebhook.mutators.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/mutators.kubedb.com/v1alpha1/rabbitmqwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: [ "kubedb.com" ]
apiVersions: [ "*" ]
resources: [ "rabbitmqs" ]
operations: [ "CREATE", "UPDATE" ]
admissionReviewVersions: [ "v1beta1" ]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Pgpool }}
- name: pgpoolwebhook.mutators.kubedb.com
clientConfig:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,23 @@ webhooks:
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.RabbitMQ }}
- name: rabbitmqwebhook.validators.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/validators.kubedb.com/v1alpha1/rabbitmqwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: ["kubedb.com"]
apiVersions: ["*"]
resources: ["rabbitmqs"]
operations: ["CREATE", "UPDATE", "DELETE"]
admissionReviewVersions: ["v1beta1"]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Druid }}
- name: druidwebhook.validators.kubedb.com
clientConfig:
Expand Down

0 comments on commit 2cff4fe

Please sign in to comment.