Skip to content

chore(chart-deps): update cloudnative-pg to version 0.23.2 #1985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
222368e
chore(chart-deps): update cloudnative-pg to version 0.23.2
svcAPLBot Mar 6, 2025
f32daff
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 16, 2025
1430dce
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 17, 2025
a8126da
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 17, 2025
27afe86
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 17, 2025
0adc7e0
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 17, 2025
068b075
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 22, 2025
6604395
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 23, 2025
6c06dbc
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 24, 2025
45e3b99
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 24, 2025
e2559ac
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 25, 2025
858fafb
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 25, 2025
2807639
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 25, 2025
3b56860
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 25, 2025
4350e26
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 28, 2025
055e95c
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 28, 2025
4ce7f27
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 28, 2025
1064605
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 28, 2025
0484e18
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 29, 2025
dac4bc3
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 29, 2025
8ff1b59
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 29, 2025
a9bbf6b
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 30, 2025
3df76b2
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 30, 2025
ebb65cd
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot Apr 30, 2025
e40b3a9
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 6, 2025
4e3401f
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 6, 2025
8f345fe
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 7, 2025
123d80b
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 8, 2025
9eb2c1c
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 8, 2025
3a76f86
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 9, 2025
614696f
Merge remote-tracking branch 'origin/main' into ci-update-cloudnative…
svcAPLBot May 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/chart-index/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
version: v1.17.1
repository: https://charts.jetstack.io
- name: cloudnative-pg
version: 0.23.0
version: 0.23.2
repository: https://cloudnative-pg.github.io/charts
- name: external-dns
version: 8.7.8
Expand Down
4 changes: 2 additions & 2 deletions charts/cloudnative-pg/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.25.0
appVersion: 1.25.1
dependencies:
- alias: monitoring
condition: monitoring.grafanaDashboard.create
Expand All @@ -22,4 +22,4 @@ name: cloudnative-pg
sources:
- https://github.com/cloudnative-pg/charts
type: application
version: 0.23.0
version: 0.23.2
5 changes: 3 additions & 2 deletions charts/cloudnative-pg/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloudnative-pg

![Version: 0.23.0](https://img.shields.io/badge/Version-0.23.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.25.0](https://img.shields.io/badge/AppVersion-1.25.0-informational?style=flat-square)
![Version: 0.23.2](https://img.shields.io/badge/Version-0.23.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.25.1](https://img.shields.io/badge/AppVersion-1.25.1-informational?style=flat-square)

CloudNativePG Operator Helm Chart

Expand Down Expand Up @@ -77,5 +77,6 @@ CloudNativePG Operator Helm Chart
| serviceAccount.create | bool | `true` | Specifies whether the service account should be created. |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| tolerations | list | `[]` | Tolerations for the operator to be installed. |
| webhook | object | `{"livenessProbe":{"initialDelaySeconds":3},"mutating":{"create":true,"failurePolicy":"Fail"},"port":9443,"readinessProbe":{"initialDelaySeconds":3},"validating":{"create":true,"failurePolicy":"Fail"}}` | The webhook configuration. |
| updateStrategy | object | `{}` | Update strategy for the operator. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy For example: type: RollingUpdate rollingUpdate: maxSurge: 25% maxUnavailable: 25% |
| webhook | object | `{"livenessProbe":{"initialDelaySeconds":3},"mutating":{"create":true,"failurePolicy":"Fail"},"port":9443,"readinessProbe":{"initialDelaySeconds":3},"startupProbe":{"failureThreshold":6,"periodSeconds":5},"validating":{"create":true,"failurePolicy":"Fail"}}` | The webhook configuration. |

4 changes: 2 additions & 2 deletions charts/cloudnative-pg/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

CloudNativePG operator should be installed in namespace "{{ .Release.Namespace }}".
CloudNativePG operator should be installed in namespace "{{ include "cloudnative-pg.namespace" . }}".
You can now create a PostgreSQL cluster with 3 nodes as follows:

cat <<EOF | kubectl apply -f -
Expand All @@ -9,7 +9,7 @@ kind: Cluster
metadata:
name: cluster-example
{{if not .Values.config.clusterWide -}}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
{{- end }}
spec:
instances: 3
Expand Down
31 changes: 22 additions & 9 deletions charts/cloudnative-pg/templates/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: backups.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -445,7 +445,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: clusterimagecatalogs.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -527,7 +527,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: clusters.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -3467,6 +3467,12 @@ spec:
default: true
description: Enabled is true if this plugin will be used
type: boolean
isWALArchiver:
default: false
description: |-
Only one plugin can be declared as WALArchiver.
Cannot be active if ".spec.backup.barmanObjectStore" configuration is present.
type: boolean
name:
description: Name is the plugin name
type: string
Expand Down Expand Up @@ -4493,6 +4499,12 @@ spec:
default: true
description: Enabled is true if this plugin will be used
type: boolean
isWALArchiver:
default: false
description: |-
Only one plugin can be declared as WALArchiver.
Cannot be active if ".spec.backup.barmanObjectStore" configuration is present.
type: boolean
name:
description: Name is the plugin name
type: string
Expand Down Expand Up @@ -6943,7 +6955,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: databases.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -7206,7 +7218,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: imagecatalogs.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -7287,7 +7299,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: poolers.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -16066,6 +16078,7 @@ spec:
enum:
- rw
- ro
- r
type: string
required:
- cluster
Expand Down Expand Up @@ -16146,7 +16159,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: publications.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -16342,7 +16355,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: scheduledbackups.postgresql.cnpg.io
spec:
Expand Down Expand Up @@ -16534,7 +16547,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.5
controller-gen.kubebuilder.io/version: v0.17.2
helm.sh/resource-policy: keep
name: subscriptions.postgresql.cnpg.io
spec:
Expand Down
17 changes: 16 additions & 1 deletion charts/cloudnative-pg/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
selector:
matchLabels:
{{- include "cloudnative-pg.selectorLabels" . | nindent 6 }}
{{- if .Values.updateStrategy }}
strategy:
{{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}
template:
metadata:
annotations:
Expand Down Expand Up @@ -84,7 +88,7 @@ spec:
value: "{{ .Values.monitoringQueriesConfigMap.name }}"
{{- if not .Values.config.clusterWide }}
- name: WATCH_NAMESPACE
value: "{{ .Release.Namespace }}"
value: "{{ include "cloudnative-pg.namespace" . }}"
{{- end }}
{{- if .Values.additionalEnv }}
{{- tpl (.Values.additionalEnv | toYaml) . | nindent 8 }}
Expand Down Expand Up @@ -119,6 +123,17 @@ spec:
{{- toYaml .Values.resources | nindent 10 }}
securityContext:
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
startupProbe:
{{- if .Values.webhook.startupProbe.failureThreshold }}
failureThreshold: {{ .Values.webhook.startupProbe.failureThreshold }}
{{- end }}
httpGet:
path: /readyz
port: {{ .Values.webhook.port }}
scheme: HTTPS
{{- if .Values.webhook.startupProbe.periodSeconds }}
periodSeconds: {{ .Values.webhook.startupProbe.periodSeconds }}
{{- end }}
volumeMounts:
- mountPath: /controller
name: scratch-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /mutate-postgresql-cnpg-io-v1-backup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
Expand All @@ -52,7 +52,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /mutate-postgresql-cnpg-io-v1-cluster
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
Expand All @@ -73,7 +73,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /mutate-postgresql-cnpg-io-v1-scheduledbackup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
Expand Down
4 changes: 2 additions & 2 deletions charts/cloudnative-pg/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "cloudnative-pg.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
{{/*
If we're doing a single-namespace installation
we create a Role with the common rules for the operator,
Expand Down Expand Up @@ -108,7 +108,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "cloudnative-pg.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /validate-postgresql-cnpg-io-v1-backup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
Expand All @@ -52,7 +52,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /validate-postgresql-cnpg-io-v1-cluster
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
Expand All @@ -73,7 +73,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /validate-postgresql-cnpg-io-v1-scheduledbackup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
Expand All @@ -94,7 +94,7 @@ webhooks:
clientConfig:
service:
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
namespace: {{ include "cloudnative-pg.namespace" . }}
path: /validate-postgresql-cnpg-io-v1-pooler
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
Expand Down
14 changes: 14 additions & 0 deletions charts/cloudnative-pg/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@
"tolerations": {
"type": "array"
},
"updateStrategy": {
"type": "object"
},
"webhook": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -279,6 +282,17 @@
}
}
},
"startupProbe": {
"type": "object",
"properties": {
"failureThreshold": {
"type": "integer"
},
"periodSeconds": {
"type": "integer"
}
}
},
"validating": {
"type": "object",
"properties": {
Expand Down
12 changes: 12 additions & 0 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ namespaceOverride: ""
hostNetwork: false
dnsPolicy: ""

# -- Update strategy for the operator.
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
# For example:
# type: RollingUpdate
# rollingUpdate:
# maxSurge: 25%
# maxUnavailable: 25%
updateStrategy: {}

crds:
# -- Specifies whether the CRDs should be created when installing the chart.
create: true
Expand All @@ -50,6 +59,9 @@ webhook:
initialDelaySeconds: 3
readinessProbe:
initialDelaySeconds: 3
startupProbe:
failureThreshold: 6
periodSeconds: 5

# Operator configuration.
config:
Expand Down