Skip to content

Commit

Permalink
Add kafka connector webhook configuration
Browse files Browse the repository at this point in the history
Signed-off-by: obaydullahmhs <[email protected]>
  • Loading branch information
obaydullahmhs committed Jan 24, 2024
1 parent 2cff4fe commit ff70b33
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,21 @@ webhooks:
admissionReviewVersions: [ "v1beta1" ]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
- name: connectorwebhook.mutators.kafka.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/mutators.kafka.kubedb.com/v1alpha1/connectorwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: [ "kafka.kubedb.com" ]
apiVersions: [ "*" ]
resources: [ "connectors" ]
operations: [ "CREATE", "UPDATE" ]
admissionReviewVersions: [ "v1beta1" ]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Singlestore }}
- name: singlestorewebhook.mutators.kubedb.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,21 @@ webhooks:
admissionReviewVersions: ["v1beta1"]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
- name: connectorwebhook.validators.kafka.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/validators.kafka.kubedb.com/v1alpha1/connectorwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: ["kafka.kubedb.com"]
apiVersions: ["*"]
resources: ["connectors"]
operations: ["CREATE", "UPDATE", "DELETE"]
admissionReviewVersions: ["v1beta1"]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Singlestore }}
- name: singlestorewebhook.validators.kubedb.com
Expand Down

0 comments on commit ff70b33

Please sign in to comment.