Skip to content

chore(chart-deps): update cloudnative-pg to version 0.23.1 #1983

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 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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.1
repository: https://cloudnative-pg.github.io/charts
- name: external-dns
version: 8.3.9
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudnative-pg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ name: cloudnative-pg
sources:
- https://github.com/cloudnative-pg/charts
type: application
version: 0.23.0
version: 0.23.1
3 changes: 2 additions & 1 deletion 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.1](https://img.shields.io/badge/Version-0.23.1-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)

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. |
| 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},"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
6 changes: 5 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
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
3 changes: 3 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
9 changes: 9 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 Down