Skip to content

Commit d34e336

Browse files
Add mutating webhook for postgresAutoscaler (#544)
Signed-off-by: Arnob kumar saha <arnob@appscode.com> Signed-off-by: Arnob kumar saha <arnob@appscode.com>
1 parent bb0ae0d commit d34e336

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

charts/kubedb-webhook-server/templates/autoscaler/mutating-webhook.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ webhooks:
8686
admissionReviewVersions: ["v1beta1"]
8787
failurePolicy: Fail
8888
sideEffects: None
89+
- name: postgresautoscalerwebhook.mutators.autoscaling.kubedb.com
90+
clientConfig:
91+
service:
92+
namespace: default
93+
name: kubernetes
94+
path: /apis/mutators.autoscaling.kubedb.com/v1alpha1/postgresautoscalerwebhooks
95+
caBundle: {{ $caCrt }}
96+
rules:
97+
- apiGroups: ["autoscaling.kubedb.com"]
98+
apiVersions: ["*"]
99+
resources: ["postgresautoscalers"]
100+
operations: ["CREATE", "UPDATE"]
101+
admissionReviewVersions: ["v1beta1"]
102+
failurePolicy: Fail
103+
sideEffects: None
89104
- name: pgbouncerautoscalerwebhook.mutators.autoscaling.kubedb.com
90105
clientConfig:
91106
service:

0 commit comments

Comments
 (0)