From e8d0af0e9ca1d3d61f9b36d03c0e39557d3dcaad Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Tue, 6 Jun 2023 16:44:26 +0200 Subject: [PATCH] fix(cnpg): fix webhook port --- charts/operators/cloudnative-pg/Chart.yaml | 2 +- .../templates/_mutatingwebhookconfiguration.tpl | 6 +++--- .../templates/_validatingwebhookconfiguration.tpl | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/operators/cloudnative-pg/Chart.yaml b/charts/operators/cloudnative-pg/Chart.yaml index b9035529c8a..8e609e1e07e 100644 --- a/charts/operators/cloudnative-pg/Chart.yaml +++ b/charts/operators/cloudnative-pg/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/cloudnative-pg - https://cloudnative-pg.io/ type: application -version: 0.0.2 +version: 0.0.3 annotations: truecharts.org/catagories: | - operators diff --git a/charts/operators/cloudnative-pg/templates/_mutatingwebhookconfiguration.tpl b/charts/operators/cloudnative-pg/templates/_mutatingwebhookconfiguration.tpl index 54d022d1f31..8c3d90f10fb 100644 --- a/charts/operators/cloudnative-pg/templates/_mutatingwebhookconfiguration.tpl +++ b/charts/operators/cloudnative-pg/templates/_mutatingwebhookconfiguration.tpl @@ -25,7 +25,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /mutate-postgresql-cnpg-io-v1-backup - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} name: mbackup.kb.io rules: @@ -46,7 +46,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /mutate-postgresql-cnpg-io-v1-cluster - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} name: mcluster.kb.io rules: @@ -67,7 +67,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /mutate-postgresql-cnpg-io-v1-scheduledbackup - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} name: mscheduledbackup.kb.io rules: diff --git a/charts/operators/cloudnative-pg/templates/_validatingwebhookconfiguration.tpl b/charts/operators/cloudnative-pg/templates/_validatingwebhookconfiguration.tpl index a240caa5e05..e16d46ee015 100644 --- a/charts/operators/cloudnative-pg/templates/_validatingwebhookconfiguration.tpl +++ b/charts/operators/cloudnative-pg/templates/_validatingwebhookconfiguration.tpl @@ -25,7 +25,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /validate-postgresql-cnpg-io-v1-backup - port: {{ .Values.service.main.ports.main.port }} + port: 9443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} name: vbackup.kb.io rules: @@ -46,7 +46,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /validate-postgresql-cnpg-io-v1-cluster - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} name: vcluster.kb.io rules: @@ -67,7 +67,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /validate-postgresql-cnpg-io-v1-scheduledbackup - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} name: vscheduledbackup.kb.io rules: @@ -88,7 +88,7 @@ webhooks: name: cnpg-webhook-service namespace: {{ .Release.Namespace }} path: /validate-postgresql-cnpg-io-v1-pooler - port: {{ .Values.service.main.ports.main.port }} + port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} name: vpooler.kb.io rules: