Skip to content

Commit

Permalink
Release cloudnative-pg-v0.19.0
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Oct 19, 2023
1 parent b8a6c21 commit 05e13df
Show file tree
Hide file tree
Showing 8 changed files with 326 additions and 138 deletions.
4 changes: 2 additions & 2 deletions charts/cloudnative-pg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ name: cloudnative-pg
description: CloudNativePG Helm Chart
icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg
type: application
version: "0.18.2"
version: "0.19.0"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning, they should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.20.2"
appVersion: "1.21.0"
sources:
- https://github.com/cloudnative-pg/charts
keywords:
Expand Down
6 changes: 3 additions & 3 deletions charts/cloudnative-pg/README.md

Large diffs are not rendered by default.

337 changes: 248 additions & 89 deletions charts/cloudnative-pg/templates/crds/crds.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ webhooks:
path: /mutate-postgresql-cnpg-io-v1-backup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
name: mbackup.kb.io
name: mbackup.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand All @@ -56,7 +56,7 @@ webhooks:
path: /mutate-postgresql-cnpg-io-v1-cluster
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
name: mcluster.kb.io
name: mcluster.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand All @@ -77,7 +77,7 @@ webhooks:
path: /mutate-postgresql-cnpg-io-v1-scheduledbackup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.mutating.failurePolicy }}
name: mscheduledbackup.kb.io
name: mscheduledbackup.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand Down
74 changes: 42 additions & 32 deletions charts/cloudnative-pg/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ rules:
- update
- watch
- apiGroups:
- ""
- ""
resources:
- secrets/status
- secrets/status
verbs:
- get
- patch
- update
- get
- patch
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -192,17 +192,17 @@ rules:
- list
- update
- apiGroups:
- apps
- apps
resources:
- deployments
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand Down Expand Up @@ -288,32 +288,32 @@ rules:
resources:
- clusters/status
verbs:
- get
- patch
- update
- watch
- get
- patch
- update
- watch
- apiGroups:
- postgresql.cnpg.io
- postgresql.cnpg.io
resources:
- poolers
- poolers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- postgresql.cnpg.io
- postgresql.cnpg.io
resources:
- poolers/finalizers
- poolers/finalizers
verbs:
- update
- update
- apiGroups:
- postgresql.cnpg.io
- postgresql.cnpg.io
resources:
- poolers/status
- poolers/status
verbs:
- get
- patch
Expand Down Expand Up @@ -361,6 +361,16 @@ rules:
- patch
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- create
- get
- list
- patch
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ webhooks:
path: /validate-postgresql-cnpg-io-v1-backup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
name: vbackup.kb.io
name: vbackup.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand All @@ -56,7 +56,7 @@ webhooks:
path: /validate-postgresql-cnpg-io-v1-cluster
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
name: vcluster.kb.io
name: vcluster.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand All @@ -77,7 +77,7 @@ webhooks:
path: /validate-postgresql-cnpg-io-v1-scheduledbackup
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
name: vscheduledbackup.kb.io
name: vscheduledbackup.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand All @@ -98,7 +98,7 @@ webhooks:
path: /validate-postgresql-cnpg-io-v1-pooler
port: {{ .Values.service.port }}
failurePolicy: {{ .Values.webhook.validating.failurePolicy }}
name: vpooler.kb.io
name: vpooler.cnpg.io
rules:
- apiGroups:
- postgresql.cnpg.io
Expand Down
12 changes: 10 additions & 2 deletions charts/cloudnative-pg/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
},
"runAsUser": {
"type": "integer"
},
"seccompProfile": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
},
Expand Down Expand Up @@ -137,10 +145,10 @@
"rbac": {
"type": "object",
"properties": {
"create": {
"aggregateClusterRoles": {
"type": "boolean"
},
"aggregateClusterRoles": {
"create": {
"type": "boolean"
}
}
Expand Down
17 changes: 14 additions & 3 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ containerSecurityContext:
readOnlyRootFilesystem: true
runAsUser: 10001
runAsGroup: 10001
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- "ALL"
Expand Down Expand Up @@ -244,14 +246,16 @@ monitoringQueriesConfigMap:
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"
Expand All @@ -272,7 +276,10 @@ monitoringQueriesConfigMap:
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:
Expand Down Expand Up @@ -453,6 +460,7 @@ monitoringQueriesConfigMap:
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
Expand All @@ -473,6 +481,9 @@ monitoringQueriesConfigMap:
- 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"
Expand Down

0 comments on commit 05e13df

Please sign in to comment.