-
Notifications
You must be signed in to change notification settings - Fork 0
feat(helm): update chart cloudnative-pg to 0.27.0 #279
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
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/cloudnative-pg-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- kubernetes/apps/database/cloudnative-pg/app Kustomization: flux-system/cluster-apps-cloudnative-pg HelmRelease: database/cloudnative-pg
+++ kubernetes/apps/database/cloudnative-pg/app Kustomization: flux-system/cluster-apps-cloudnative-pg HelmRelease: database/cloudnative-pg
@@ -12,13 +12,13 @@
spec:
chart: cloudnative-pg
sourceRef:
kind: HelmRepository
name: cloudnative-pg
namespace: flux-system
- version: 0.21.5
+ version: 0.26.0
dependsOn:
- name: local-path-provisioner
namespace: kube-system
install:
remediation:
retries: 3 |
--- HelmRelease: database/cloudnative-pg ServiceAccount: database/cloudnative-pg
+++ HelmRelease: database/cloudnative-pg ServiceAccount: database/cloudnative-pg
@@ -1,10 +1,11 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloudnative-pg
+ namespace: database
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
--- HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-controller-manager-config
+++ HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-controller-manager-config
@@ -1,11 +1,12 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cnpg-controller-manager-config
+ namespace: database
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
data:
INHERITED_ANNOTATIONS: kyverno.io/ignore
--- HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-default-monitoring
+++ HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-default-monitoring
@@ -1,11 +1,12 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cnpg-default-monitoring
+ namespace: database
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
cnpg.io/reload: ''
data:
@@ -83,12 +84,13 @@
query: |
SELECT datname
, pg_catalog.pg_database_size(datname) AS size_bytes
, pg_catalog.age(datfrozenxid) AS xid_age
, pg_catalog.mxid_age(datminmxid) AS mxid_age
FROM pg_catalog.pg_database
+ WHERE datallowconn
metrics:
- datname:
usage: "LABEL"
description: "Name of the database"
- size_bytes:
usage: "GAUGE"
@@ -246,12 +248,77 @@
- buffers_backend_fsync:
usage: "COUNTER"
description: "Number of times a backend had to execute its own fsync call (normally the background writer handles those even when the backend does its own write)"
- buffers_alloc:
usage: "COUNTER"
description: "Number of buffers allocated"
+
+ pg_stat_bgwriter_17:
+ runonserver: ">=17.0.0"
+ name: pg_stat_bgwriter
+ query: |
+ SELECT buffers_clean
+ , maxwritten_clean
+ , buffers_alloc
+ , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time
+ FROM pg_catalog.pg_stat_bgwriter
+ metrics:
+ - buffers_clean:
+ usage: "COUNTER"
+ description: "Number of buffers written by the background writer"
+ - maxwritten_clean:
+ usage: "COUNTER"
+ description: "Number of times the background writer stopped a cleaning scan because it had written too many buffers"
+ - buffers_alloc:
+ usage: "COUNTER"
+ description: "Number of buffers allocated"
+ - stats_reset_time:
+ usage: "GAUGE"
+ description: "Time at which these statistics were last reset"
+
+ pg_stat_checkpointer:
+ runonserver: ">=17.0.0"
+ query: |
+ SELECT num_timed AS checkpoints_timed
+ , num_requested AS checkpoints_req
+ , restartpoints_timed
+ , restartpoints_req
+ , restartpoints_done
+ , write_time
+ , sync_time
+ , buffers_written
+ , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time
+ FROM pg_catalog.pg_stat_checkpointer
+ metrics:
+ - checkpoints_timed:
+ usage: "COUNTER"
+ description: "Number of scheduled checkpoints that have been performed"
+ - checkpoints_req:
+ usage: "COUNTER"
+ description: "Number of requested checkpoints that have been performed"
+ - restartpoints_timed:
+ usage: "COUNTER"
+ description: "Number of scheduled restartpoints due to timeout or after a failed attempt to perform it"
+ - restartpoints_req:
+ usage: "COUNTER"
+ description: "Number of requested restartpoints that have been performed"
+ - restartpoints_done:
+ usage: "COUNTER"
+ description: "Number of restartpoints that have been performed"
+ - write_time:
+ usage: "COUNTER"
+ description: "Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are written to disk, in milliseconds"
+ - sync_time:
+ usage: "COUNTER"
+ description: "Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are synchronized to disk, in milliseconds"
+ - buffers_written:
+ usage: "COUNTER"
+ description: "Number of buffers written during checkpoints and restartpoints"
+ - stats_reset_time:
+ usage: "GAUGE"
+ description: "Time at which these statistics were last reset"
pg_stat_database:
query: |
SELECT datname
, xact_commit
, xact_rollback
@@ -389,6 +456,38 @@
usage: "LABEL"
description: "Name of the setting"
- setting:
usage: "GAUGE"
description: "Setting value"
+ pg_extensions:
+ query: |
+ SELECT
+ current_database() as datname,
+ name as extname,
+ default_version,
+ installed_version,
+ CASE
+ WHEN default_version = installed_version THEN 0
+ ELSE 1
+ END AS update_available
+ FROM pg_catalog.pg_available_extensions
+ WHERE installed_version IS NOT NULL
+ metrics:
+ - datname:
+ usage: "LABEL"
+ description: "Name of the database"
+ - extname:
+ usage: "LABEL"
+ description: "Extension name"
+ - default_version:
+ usage: "LABEL"
+ description: "Default version"
+ - installed_version:
+ usage: "LABEL"
+ description: "Installed version"
+ - update_available:
+ usage: "GAUGE"
+ description: "An update is available"
+ target_databases:
+ - '*'
+
--- HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg
+++ HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg
@@ -8,25 +8,52 @@
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
rules:
- apiGroups:
- ''
resources:
+ - nodes
+ verbs:
+ - get
+ - list
+ - watch
+- apiGroups:
+ - admissionregistration.k8s.io
+ resources:
+ - mutatingwebhookconfigurations
+ - validatingwebhookconfigurations
+ verbs:
+ - get
+ - patch
+- apiGroups:
+ - postgresql.cnpg.io
+ resources:
+ - clusterimagecatalogs
+ verbs:
+ - get
+ - list
+ - watch
+- apiGroups:
+ - ''
+ resources:
- configmaps
+ - secrets
+ - services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ''
resources:
- configmaps/status
+ - secrets/status
verbs:
- get
- patch
- update
- apiGroups:
- ''
@@ -35,42 +62,14 @@
verbs:
- create
- patch
- apiGroups:
- ''
resources:
- - nodes
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - ''
- resources:
- persistentvolumeclaims
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - watch
-- apiGroups:
- - ''
- resources:
- pods
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - watch
-- apiGroups:
- - ''
- resources:
- pods/exec
verbs:
- create
- delete
- get
- list
@@ -82,79 +81,21 @@
- pods/status
verbs:
- get
- apiGroups:
- ''
resources:
- - secrets
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
- - watch
-- apiGroups:
- - ''
- resources:
- - secrets/status
- verbs:
- - get
- - patch
- - update
-- apiGroups:
- - ''
- resources:
- serviceaccounts
verbs:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- - ''
- resources:
- - services
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
- - watch
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - mutatingwebhookconfigurations
- verbs:
- - get
- - list
- - patch
- - update
-- apiGroups:
- - admissionregistration.k8s.io
- resources:
- - validatingwebhookconfigurations
- verbs:
- - get
- - list
- - patch
- - update
-- apiGroups:
- - apiextensions.k8s.io
- resources:
- - customresourcedefinitions
- verbs:
- - get
- - list
- - update
-- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
@@ -206,132 +147,78 @@
- update
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- backups
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
+ - clusters
+ - databases
+ - poolers
+ - publications
+ - scheduledbackups
+ - subscriptions
+ verbs:
+ - create
+ - delete
+ - get
+ - list
+ - patch
+ - update
+ - watch
+- apiGroups:
+ - postgresql.cnpg.io
+ resources:
+ - failoverquorums
+ verbs:
+ - create
+ - delete
+ - get
+ - list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- backups/status
- verbs:
- - get
- - patch
- - update
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - clusterimagecatalogs
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - clusters
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
+ - databases/status
+ - publications/status
+ - scheduledbackups/status
+ - subscriptions/status
+ verbs:
+ - get
+ - patch
+ - update
+- apiGroups:
+ - postgresql.cnpg.io
+ resources:
+ - imagecatalogs
+ verbs:
+ - get
+ - list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters/finalizers
+ - poolers/finalizers
verbs:
- update
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters/status
- verbs:
- - get
- - patch
- - update
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - imagecatalogs
- verbs:
- - get
- - list
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - poolers
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - poolers/finalizers
- verbs:
- - update
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- poolers/status
- verbs:
- - get
- - patch
- - update
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - scheduledbackups
- verbs:
- - create
- - delete
- - get
- - list
- - patch
- - update
- - watch
-- apiGroups:
- - postgresql.cnpg.io
- resources:
- - scheduledbackups/status
- verbs:
- - get
- - patch
- - update
+ - failoverquorums/status
+ verbs:
+ - get
+ - patch
+ - update
+ - watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
- verbs:
- - create
- - get
- - list
- - patch
- - update
- - watch
-- apiGroups:
- - rbac.authorization.k8s.io
- resources:
- roles
verbs:
- create
- get
- list
- patch
--- HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg-view
+++ HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg-view
@@ -10,13 +10,19 @@
rules:
- apiGroups:
- postgresql.cnpg.io
resources:
- backups
- clusters
+ - databases
+ - failoverquorums
- poolers
+ - publications
- scheduledbackups
+ - imagecatalogs
+ - clusterimagecatalogs
+ - subscriptions
verbs:
- get
- list
- watch
--- HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg-edit
+++ HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg-edit
@@ -10,14 +10,20 @@
rules:
- apiGroups:
- postgresql.cnpg.io
resources:
- backups
- clusters
+ - databases
+ - failoverquorums
- poolers
+ - publications
- scheduledbackups
+ - imagecatalogs
+ - clusterimagecatalogs
+ - subscriptions
verbs:
- create
- delete
- deletecollection
- patch
- update
--- HelmRelease: database/cloudnative-pg Service: database/cnpg-webhook-service
+++ HelmRelease: database/cloudnative-pg Service: database/cnpg-webhook-service
@@ -1,11 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: cnpg-webhook-service
+ namespace: database
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
--- HelmRelease: database/cloudnative-pg Deployment: database/cloudnative-pg
+++ HelmRelease: database/cloudnative-pg Deployment: database/cloudnative-pg
@@ -1,45 +1,50 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudnative-pg
+ namespace: database
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
template:
metadata:
+ annotations:
+ checksum/rbac: 73766bf3c04fa70e1339fb6d0e91ade2c30bf47161987e7dcf94f10de4480ef0
+ checksum/monitoring-config: 746b2505c848ef2697d9f75d24345f2cf394d4c215b6ec56446094f89e788dd3
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
spec:
containers:
- args:
- controller
- --leader-elect
+ - --max-concurrent-reconciles=10
- --config-map-name=cnpg-controller-manager-config
- --webhook-port=9443
command:
- /manager
env:
- name: OPERATOR_IMAGE_NAME
- value: ghcr.io/cloudnative-pg/cloudnative-pg:1.23.2
+ value: ghcr.io/cloudnative-pg/cloudnative-pg:1.27.0
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MONITORING_QUERIES_CONFIGMAP
value: cnpg-default-monitoring
- image: ghcr.io/cloudnative-pg/cloudnative-pg:1.23.2
+ image: ghcr.io/cloudnative-pg/cloudnative-pg:1.27.0
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /readyz
port: 9443
scheme: HTTPS
@@ -66,12 +71,19 @@
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10001
runAsUser: 10001
seccompProfile:
type: RuntimeDefault
+ startupProbe:
+ failureThreshold: 6
+ httpGet:
+ path: /readyz
+ port: 9443
+ scheme: HTTPS
+ periodSeconds: 5
volumeMounts:
- mountPath: /controller
name: scratch-data
- mountPath: /run/secrets/cnpg.io/webhook
name: webhook-certificates
securityContext:
--- HelmRelease: database/cloudnative-pg MutatingWebhookConfiguration: database/cnpg-mutating-webhook-configuration
+++ HelmRelease: database/cloudnative-pg MutatingWebhookConfiguration: database/cnpg-mutating-webhook-configuration
@@ -53,12 +53,33 @@
- admissionReviewVersions:
- v1
clientConfig:
service:
name: cnpg-webhook-service
namespace: database
+ path: /mutate-postgresql-cnpg-io-v1-database
+ port: 443
+ failurePolicy: Fail
+ name: mdatabase.cnpg.io
+ rules:
+ - apiGroups:
+ - postgresql.cnpg.io
+ apiVersions:
+ - v1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - databases
+ sideEffects: None
+- admissionReviewVersions:
+ - v1
+ clientConfig:
+ service:
+ name: cnpg-webhook-service
+ namespace: database
path: /mutate-postgresql-cnpg-io-v1-scheduledbackup
port: 443
failurePolicy: Fail
name: mscheduledbackup.cnpg.io
rules:
- apiGroups:
--- HelmRelease: database/cloudnative-pg ValidatingWebhookConfiguration: database/cnpg-validating-webhook-configuration
+++ HelmRelease: database/cloudnative-pg ValidatingWebhookConfiguration: database/cnpg-validating-webhook-configuration
@@ -74,12 +74,33 @@
- admissionReviewVersions:
- v1
clientConfig:
service:
name: cnpg-webhook-service
namespace: database
+ path: /validate-postgresql-cnpg-io-v1-database
+ port: 443
+ failurePolicy: Fail
+ name: vdatabase.cnpg.io
+ rules:
+ - apiGroups:
+ - postgresql.cnpg.io
+ apiVersions:
+ - v1
+ operations:
+ - CREATE
+ - UPDATE
+ resources:
+ - databases
+ sideEffects: None
+- admissionReviewVersions:
+ - v1
+ clientConfig:
+ service:
+ name: cnpg-webhook-service
+ namespace: database
path: /validate-postgresql-cnpg-io-v1-pooler
port: 443
failurePolicy: Fail
name: vpooler.cnpg.io
rules:
- apiGroups: |
26cc97e to
e716cc9
Compare
e716cc9 to
19b6c49
Compare
19b6c49 to
99962bc
Compare
e01a2e1 to
0d99475
Compare
0d99475 to
0c36a01
Compare
0c36a01 to
cdbb421
Compare
cdbb421 to
c7a2ff1
Compare
c7a2ff1 to
d41a18a
Compare
d41a18a to
bb50d3b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.21.5→0.27.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
cloudnative-pg/charts (cloudnative-pg)
v0.27.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
New Contributors
Full Changelog: cloudnative-pg/charts@cluster-v0.4.0...cloudnative-pg-v0.27.0
v0.26.1Compare Source
CloudNativePG Operator Helm Chart
What's Changed
New Contributors
Full Changelog: cloudnative-pg/charts@plugin-barman-cloud-v0.2.0...cloudnative-pg-v0.26.1
v0.26.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.25.0...cloudnative-pg-v0.26.0
v0.25.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
New Contributors
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.24.0...cloudnative-pg-v0.25.0
v0.24.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
charts/cluster/docs/recovery.mdby @atimofeev in #581New Contributors
Full Changelog: cloudnative-pg/charts@cluster-v0.3.1...cloudnative-pg-v0.24.0
v0.23.2Compare Source
CloudNativePG Operator Helm Chart
What's Changed
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.23.1...cloudnative-pg-v0.23.2
v0.23.1Compare Source
CloudNativePG Operator Helm Chart
What's Changed
New Contributors
Full Changelog: cloudnative-pg/charts@cluster-v0.23.0...cloudnative-pg-v0.23.1
v0.23.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
New Contributors
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.23.0-rc1...cloudnative-pg-v0.23.0
v0.22.1Compare Source
CloudNativePG Operator Helm Chart
What's Changed
Full Changelog: cloudnative-pg/charts@cluster-v0.0.11...cloudnative-pg-v0.22.1
v0.22.0Compare Source
CloudNativePG Operator Helm Chart
What's Changed
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.21.6...cloudnative-pg-v0.22.0
v0.21.6Compare Source
CloudNativePG Operator Helm Chart
What's Changed
hostNetworkin chart by @marckhair in #324New Contributors
Full Changelog: cloudnative-pg/charts@cloudnative-pg-v0.21.5...cloudnative-pg-v0.21.6
Configuration
📅 Schedule: Branch creation - "on saturday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.