diff --git a/operators/cloudnative-pg/2.0.8/app-changelog.md b/operators/cloudnative-pg/2.0.8/app-changelog.md deleted file mode 100644 index 8c01251f3e..0000000000 --- a/operators/cloudnative-pg/2.0.8/app-changelog.md +++ /dev/null @@ -1,4 +0,0 @@ - - -## [cloudnative-pg-2.0.8](https://github.com/truecharts/charts/compare/cloudnative-pg-2.0.7...cloudnative-pg-2.0.8) (2023-11-07) - diff --git a/operators/cloudnative-pg/2.0.8/CHANGELOG.md b/operators/cloudnative-pg/2.0.9/CHANGELOG.md similarity index 91% rename from operators/cloudnative-pg/2.0.8/CHANGELOG.md rename to operators/cloudnative-pg/2.0.9/CHANGELOG.md index ae5ebfea21..0f30b4d059 100644 --- a/operators/cloudnative-pg/2.0.8/CHANGELOG.md +++ b/operators/cloudnative-pg/2.0.9/CHANGELOG.md @@ -4,6 +4,15 @@ +## [cloudnative-pg-2.0.9](https://github.com/truecharts/charts/compare/cloudnative-pg-2.0.8...cloudnative-pg-2.0.9) (2023-11-07) + +### Fix + +- update cnpg helm chart for recent cnpg changes ([#14425](https://github.com/truecharts/charts/issues/14425)) + + + + ## [cloudnative-pg-2.0.8](https://github.com/truecharts/charts/compare/cloudnative-pg-2.0.7...cloudnative-pg-2.0.8) (2023-11-07) @@ -88,12 +97,3 @@ ### Chore - update helm general non-major ([#10069](https://github.com/truecharts/charts/issues/10069)) - - - - -## [cloudnative-pg-1.0.3](https://github.com/truecharts/charts/compare/cloudnative-pg-1.0.2...cloudnative-pg-1.0.3) (2023-06-13) - -### Chore - -- update helm chart common to 12.14.2 ([#9599](https://github.com/truecharts/charts/issues/9599)) diff --git a/operators/cloudnative-pg/2.0.8/Chart.yaml b/operators/cloudnative-pg/2.0.9/Chart.yaml similarity index 98% rename from operators/cloudnative-pg/2.0.8/Chart.yaml rename to operators/cloudnative-pg/2.0.9/Chart.yaml index 761db41ea7..75bfe801e9 100644 --- a/operators/cloudnative-pg/2.0.8/Chart.yaml +++ b/operators/cloudnative-pg/2.0.9/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/cloudnative-pg - https://cloudnative-pg.io/ type: application -version: 2.0.8 +version: 2.0.9 annotations: truecharts.org/category: operators truecharts.org/SCALE-support: "true" diff --git a/operators/cloudnative-pg/2.0.8/LICENSE b/operators/cloudnative-pg/2.0.9/LICENSE similarity index 100% rename from operators/cloudnative-pg/2.0.8/LICENSE rename to operators/cloudnative-pg/2.0.9/LICENSE diff --git a/operators/cloudnative-pg/2.0.8/README.md b/operators/cloudnative-pg/2.0.9/README.md similarity index 100% rename from operators/cloudnative-pg/2.0.8/README.md rename to operators/cloudnative-pg/2.0.9/README.md diff --git a/operators/cloudnative-pg/2.0.9/app-changelog.md b/operators/cloudnative-pg/2.0.9/app-changelog.md new file mode 100644 index 0000000000..074d29e9d0 --- /dev/null +++ b/operators/cloudnative-pg/2.0.9/app-changelog.md @@ -0,0 +1,9 @@ + + +## [cloudnative-pg-2.0.9](https://github.com/truecharts/charts/compare/cloudnative-pg-2.0.8...cloudnative-pg-2.0.9) (2023-11-07) + +### Fix + +- update cnpg helm chart for recent cnpg changes ([#14425](https://github.com/truecharts/charts/issues/14425)) + + \ No newline at end of file diff --git a/operators/cloudnative-pg/2.0.8/app-readme.md b/operators/cloudnative-pg/2.0.9/app-readme.md similarity index 100% rename from operators/cloudnative-pg/2.0.8/app-readme.md rename to operators/cloudnative-pg/2.0.9/app-readme.md diff --git a/operators/cloudnative-pg/2.0.8/charts/common-14.2.3.tgz b/operators/cloudnative-pg/2.0.9/charts/common-14.2.3.tgz similarity index 100% rename from operators/cloudnative-pg/2.0.8/charts/common-14.2.3.tgz rename to operators/cloudnative-pg/2.0.9/charts/common-14.2.3.tgz diff --git a/operators/cloudnative-pg/2.0.8/ix_values.yaml b/operators/cloudnative-pg/2.0.9/ix_values.yaml similarity index 96% rename from operators/cloudnative-pg/2.0.8/ix_values.yaml rename to operators/cloudnative-pg/2.0.9/ix_values.yaml index f9aa8f6203..4465783867 100644 --- a/operators/cloudnative-pg/2.0.8/ix_values.yaml +++ b/operators/cloudnative-pg/2.0.9/ix_values.yaml @@ -417,6 +417,16 @@ rbac: - patch - update - watch + - apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshots + verbs: + - create + - get + - list + - patch + - watch serviceAccount: main: @@ -543,14 +553,16 @@ configmap: description: "Time at which postgres started (based on epoch)" pg_replication: - query: "SELECT CASE WHEN NOT pg_catalog.pg_is_in_recovery() + query: "SELECT CASE WHEN ( + NOT pg_catalog.pg_is_in_recovery() + OR pg_catalog.pg_last_wal_receive_lsn() = pg_catalog.pg_last_wal_replay_lsn()) THEN 0 ELSE GREATEST (0, EXTRACT(EPOCH FROM (now() - pg_catalog.pg_last_xact_replay_timestamp()))) END AS lag, pg_catalog.pg_is_in_recovery() AS in_recovery, EXISTS (TABLE pg_stat_wal_receiver) AS is_wal_receiver_up, - (SELECT count(*) FROM pg_stat_replication) AS streaming_replicas" + (SELECT count(*) FROM pg_catalog.pg_stat_replication) AS streaming_replicas" metrics: - lag: usage: "GAUGE" @@ -571,7 +583,10 @@ configmap: slot_type, database, active, - pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), restart_lsn) + (CASE pg_catalog.pg_is_in_recovery() + WHEN TRUE THEN pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_last_wal_receive_lsn(), restart_lsn) + ELSE pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), restart_lsn) + END) as pg_wal_lsn_diff FROM pg_catalog.pg_replication_slots WHERE NOT temporary metrics: @@ -752,6 +767,7 @@ configmap: SELECT usename , COALESCE(application_name, '') AS application_name , COALESCE(client_addr::text, '') AS client_addr + , COALESCE(client_port::text, '') AS client_port , EXTRACT(EPOCH FROM backend_start) AS backend_start , COALESCE(pg_catalog.age(backend_xmin), 0) AS backend_xmin_age , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), sent_lsn) AS sent_diff_bytes @@ -772,6 +788,9 @@ configmap: - client_addr: usage: "LABEL" description: "Client IP address" + - client_port: + usage: "LABEL" + description: "Client TCP port" - backend_start: usage: "COUNTER" description: "Time when this process was started" diff --git a/operators/cloudnative-pg/2.0.8/questions.yaml b/operators/cloudnative-pg/2.0.9/questions.yaml similarity index 100% rename from operators/cloudnative-pg/2.0.8/questions.yaml rename to operators/cloudnative-pg/2.0.9/questions.yaml diff --git a/operators/cloudnative-pg/2.0.8/templates/NOTES.txt b/operators/cloudnative-pg/2.0.9/templates/NOTES.txt similarity index 100% rename from operators/cloudnative-pg/2.0.8/templates/NOTES.txt rename to operators/cloudnative-pg/2.0.9/templates/NOTES.txt diff --git a/operators/cloudnative-pg/2.0.8/templates/_mutatingwebhookconfiguration.tpl b/operators/cloudnative-pg/2.0.9/templates/_mutatingwebhookconfiguration.tpl similarity index 96% rename from operators/cloudnative-pg/2.0.8/templates/_mutatingwebhookconfiguration.tpl rename to operators/cloudnative-pg/2.0.9/templates/_mutatingwebhookconfiguration.tpl index 8c3d90f10f..073df3dba7 100644 --- a/operators/cloudnative-pg/2.0.8/templates/_mutatingwebhookconfiguration.tpl +++ b/operators/cloudnative-pg/2.0.9/templates/_mutatingwebhookconfiguration.tpl @@ -27,7 +27,7 @@ webhooks: path: /mutate-postgresql-cnpg-io-v1-backup port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} - name: mbackup.kb.io + name: mbackup.cnpg.io rules: - apiGroups: - postgresql.cnpg.io @@ -48,7 +48,7 @@ webhooks: path: /mutate-postgresql-cnpg-io-v1-cluster port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} - name: mcluster.kb.io + name: mcluster.cnpg.io rules: - apiGroups: - postgresql.cnpg.io @@ -69,7 +69,7 @@ webhooks: path: /mutate-postgresql-cnpg-io-v1-scheduledbackup port: 443 failurePolicy: {{ .Values.webhook.mutating.failurePolicy }} - name: mscheduledbackup.kb.io + name: mscheduledbackup.cnpg.io rules: - apiGroups: - postgresql.cnpg.io diff --git a/operators/cloudnative-pg/2.0.8/templates/_validatingwebhookconfiguration.tpl b/operators/cloudnative-pg/2.0.9/templates/_validatingwebhookconfiguration.tpl similarity index 96% rename from operators/cloudnative-pg/2.0.8/templates/_validatingwebhookconfiguration.tpl rename to operators/cloudnative-pg/2.0.9/templates/_validatingwebhookconfiguration.tpl index e16d46ee01..581be43d75 100644 --- a/operators/cloudnative-pg/2.0.8/templates/_validatingwebhookconfiguration.tpl +++ b/operators/cloudnative-pg/2.0.9/templates/_validatingwebhookconfiguration.tpl @@ -27,7 +27,7 @@ webhooks: path: /validate-postgresql-cnpg-io-v1-backup port: 9443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} - name: vbackup.kb.io + name: vbackup.cnpg.io rules: - apiGroups: - postgresql.cnpg.io @@ -48,7 +48,7 @@ webhooks: path: /validate-postgresql-cnpg-io-v1-cluster port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} - name: vcluster.kb.io + name: vcluster.cnpg.io rules: - apiGroups: - postgresql.cnpg.io @@ -69,7 +69,7 @@ webhooks: path: /validate-postgresql-cnpg-io-v1-scheduledbackup port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} - name: vscheduledbackup.kb.io + name: vscheduledbackup.cnpg.io rules: - apiGroups: - postgresql.cnpg.io @@ -90,7 +90,7 @@ webhooks: path: /validate-postgresql-cnpg-io-v1-pooler port: 443 failurePolicy: {{ .Values.webhook.validating.failurePolicy }} - name: vpooler.kb.io + name: vpooler.cnpg.io rules: - apiGroups: - postgresql.cnpg.io diff --git a/operators/cloudnative-pg/2.0.8/templates/common.yaml b/operators/cloudnative-pg/2.0.9/templates/common.yaml similarity index 100% rename from operators/cloudnative-pg/2.0.8/templates/common.yaml rename to operators/cloudnative-pg/2.0.9/templates/common.yaml diff --git a/operators/cloudnative-pg/2.0.8/templates/crds.yaml b/operators/cloudnative-pg/2.0.9/templates/crds.yaml similarity index 100% rename from operators/cloudnative-pg/2.0.8/templates/crds.yaml rename to operators/cloudnative-pg/2.0.9/templates/crds.yaml diff --git a/operators/cloudnative-pg/2.0.8/values.yaml b/operators/cloudnative-pg/2.0.9/values.yaml similarity index 100% rename from operators/cloudnative-pg/2.0.8/values.yaml rename to operators/cloudnative-pg/2.0.9/values.yaml