Skip to content

Commit

Permalink
Configure webhook for solr autoscaler
Browse files Browse the repository at this point in the history
Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 committed Oct 24, 2024
1 parent 094155c commit c194e22
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 @@ -286,6 +286,23 @@ webhooks:
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Solr }}
- name: solrautoscalerwebhook.mutators.autoscaling.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/mutators.autoscaling.kubedb.com/v1alpha1/solrautoscalerwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: ["autoscaling.kubedb.com"]
apiVersions: ["*"]
resources: ["solrautoscalers"]
operations: ["CREATE", "UPDATE"]
admissionReviewVersions: ["v1beta1"]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- end }}
{{- end }}

Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,23 @@ webhooks:
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- if $featureGates.Solr }}
- name: solrautoscalerwebhook.validators.autoscaling.kubedb.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/validators.autoscaling.kubedb.com/v1alpha1/solrautoscalerwebhooks
caBundle: {{ $caCrt }}
rules:
- apiGroups: ["autoscaling.kubedb.com"]
apiVersions: ["*"]
resources: ["solrautoscalers"]
operations: ["CREATE", "UPDATE"]
admissionReviewVersions: ["v1beta1"]
failurePolicy: {{ .Values.apiserver.webhook.failurePolicy }}
sideEffects: None
{{- end }}
{{- end }}
{{- end }}

0 comments on commit c194e22

Please sign in to comment.