chore(deps): update dependency cloudnative-pg/cloudnative-pg to v1.21.0 #47

Merged
renovator merged 1 commits from renovate/crds-catalog into main 2023-10-12 00:07:58 +02:00
Member

This PR contains the following updates:

Package Update Change
cloudnative-pg/cloudnative-pg minor v1.20.3 -> v1.21.0

Release Notes

cloudnative-pg/cloudnative-pg (cloudnative-pg/cloudnative-pg)

v1.21.0: Release 1.21.0

Compare Source

Release date: Oct 11, 2023

!!! Important "Important changes from previous versions" This release contains a few changes to the default settings of CloudNativePG with the goal to improve general stability and security through predefined values. If you are upgrading from a previous version, please carefully read the "Important Changes" section below, as well as the upgrade documentation.

Features:

  • Volume Snapshot support for backup and recovery: leverage the standard Kubernetes API on Volume Snapshots to take advantage of capabilities like incremental and differential copy for both backup and recovery operations. This first step, covering cold backups from a standby, will continue in 1.22 with support for hot backups using the PostgreSQL API and tablespaces.

  • OLM installation method: introduce support for Operator Lifecycle Manager via OperatorHub.io for the latest patch version of the latest minor release through the stable channel. Many thanks to EDB for donating the bundle of their "EDB Postgres for Kubernetes" operator and adapting it for CloudNativePG.

Important Changes:

  • Change the default value of stopDelay to 1800 seconds instead of 30 seconds (#​2848)
  • Introduce a new parameter, called smartShutdownTimeout, to control the window of time reserved for the smart shutdown of Postgres to complete; the general formula to compute the overall timeout to stop Postgres is max(stopDelay - smartShutdownTimeout, 30) (#​2848)
  • Change the default value of startDelay to 3600, instead of 30 seconds (#​2847)
  • Replace the livenessProbe initial delay with a more proper Kubernetes startup probe to deal with the start of a Postgres server (#​2847)
  • Change the default value of switchoverDelay to 3600 seconds instead of 4000000 seconds (#​2846)
  • Disable superuser access by default for security (#​2905)
  • Enable replication slots for HA by default (#​2903)
  • Stop supporting the postgresql label - replaced by cnpg.io/cluster in 1.18 (#​2744)

Security:

  • Add a default seccompProfile to the operator deployment (#​2926)

Enhancements:

  • Enable bootstrap of a replica cluster from a consistent set of volume snapshots (#​2647)
  • Enable full and Point In Time recovery from a consistent set of volume snapshots (#​2390)
  • Introduce the cnpg.io/coredumpFilter annotation to control the content of a core dump generated in the unlikely event of a PostgreSQL crash, by default set to exclude shared memory segments from the dump (#​2733)
  • Allow to configure ephemeral-storage limits for the shared memory and temporary data ephemeral volumes (#​2830)
  • Validate resource limits and requests through the webhook (#​2663)
  • Ensure that PostgreSQL's shared_buffers are coherent with the pods' allocated memory resources (#​2840)
  • Add uri and jdbc-uri fields in the credential secrets to facilitate developers when connecting their applications to the database (#​2186)
  • Add a new phase Waiting for the instances to become active for finer control of a cluster's state waiting for the replicas to be ready (#​2612)
  • Improve detection of Pod rollout conditions through the podSpec annotation (#​2243)
  • Add primary timestamp and uptime to the kubectl plugin's status command (#​2953)

Fixes:

  • Ensure that the primary instance is always recreated first by prioritizing ready PVCs with a primary role (#​2544)

  • Honor the cnpg.io/skipEmptyWalArchiveCheck annotation during recovery to bypass the check for an empty WAL archive (#​2731)

  • Prevent a cluster from being stuck when the PostgreSQL server is down but the pod is up on the primary (#​2966)

  • Avoid treating the designated primary in a replica cluster as a regular HA replica when replication slots are enabled (#​2960)

  • Reconcile services every time the selectors change or when labels/annotations need to be changed (#​2918)

  • Defaults to app both the owner and database during recovery bootstrap (#​2957)

  • Avoid write-read concurrency on cached cluster (#​2884)

  • Remove empty items, make them unique and sort in the ResourceName sections of the generated roles (#​2875)

  • Ensure that the ContinuousArchiving condition is properly set to 'failed' in case of errors (#​2625)

  • Make the Backup resource reconciliation cycle more resilient on interruptions by stopping only if the backup is completed or failed (#​2591)

  • Reconcile PodMonitor labels and annotations (#​2583)

  • Fix backup failure due to missing RBAC resourceNames on the Role object (#​2956)

  • Observability:

    • Add TCP port label to default pg_stat_replication metric (#​2961)
    • Fix the pg_wal_stat default metric for Prometheus (#​2569)
    • Improve the pg_replication default metric for Prometheus (#​2744 and #​2750)
    • Use alertInstanceLabelFilter instead of alertName in the provided Grafana dashboard
    • Enforce standard_conforming_strings in metric collection (#​2888)

Changes:

  • Set the default operand image to PostgreSQL 16.0
  • Fencing now uses PostgreSQL's fast shutdown instead of smart shutdown to halt an instance (#​3051)
  • Rename webhooks from kb.io to cnpg.io group (#​2851)
  • Replace the cnpg snapshot command with cnpg backup -m volumeSnapshot for the kubectl plugin
  • Let the cnpg hibernate plugin command use the ClusterManifestAnnotationName and PgControldataAnnotationName annotations on PVCs (#​2657)
  • Add the cnpg.io/instanceRole label while deprecating the existing role label (#​2915)

Technical enhancements:

  • Replace k8s-api-docgen with gen-crd-api-reference-docs to automatically build the API reference documentation (#​2606)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [cloudnative-pg/cloudnative-pg](https://github.com/cloudnative-pg/cloudnative-pg) | minor | `v1.20.3` -> `v1.21.0` | --- ### Release Notes <details> <summary>cloudnative-pg/cloudnative-pg (cloudnative-pg/cloudnative-pg)</summary> ### [`v1.21.0`](https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.21.0): Release 1.21.0 [Compare Source](https://github.com/cloudnative-pg/cloudnative-pg/compare/v1.20.3...v1.21.0) **Release date:** Oct 11, 2023 !!! Important "Important changes from previous versions" This release contains a few changes to the default settings of CloudNativePG with the goal to improve general stability and security through predefined values. If you are upgrading from a previous version, please carefully read the "Important Changes" section below, as well as the [upgrade documentation](installation_upgrade.md). Features: - **Volume Snapshot support for backup and recovery:** leverage the standard Kubernetes API on Volume Snapshots to take advantage of capabilities like incremental and differential copy for both backup and recovery operations. This first step, covering cold backups from a standby, will continue in 1.22 with support for hot backups using the PostgreSQL API and tablespaces. - **OLM installation method**: introduce support for Operator Lifecycle Manager via OperatorHub.io for the latest patch version of the latest minor release through the *stable* channel. Many thanks to EDB for donating the bundle of their "EDB Postgres for Kubernetes" operator and adapting it for CloudNativePG. Important Changes: - Change the default value of `stopDelay` to 1800 seconds instead of 30 seconds ([#&#8203;2848](https://github.com/cloudnative-pg/cloudnative-pg/issues/2848)) - Introduce a new parameter, called `smartShutdownTimeout`, to control the window of time reserved for the smart shutdown of Postgres to complete; the general formula to compute the overall timeout to stop Postgres is `max(stopDelay - smartShutdownTimeout, 30)` ([#&#8203;2848](https://github.com/cloudnative-pg/cloudnative-pg/issues/2848)) - Change the default value of `startDelay` to 3600, instead of 30 seconds ([#&#8203;2847](https://github.com/cloudnative-pg/cloudnative-pg/issues/2847)) - Replace the livenessProbe initial delay with a more proper Kubernetes startup probe to deal with the start of a Postgres server ([#&#8203;2847](https://github.com/cloudnative-pg/cloudnative-pg/issues/2847)) - Change the default value of `switchoverDelay` to 3600 seconds instead of [`4000000`](https://github.com/cloudnative-pg/cloudnative-pg/commit/40000000) seconds ([#&#8203;2846](https://github.com/cloudnative-pg/cloudnative-pg/issues/2846)) - Disable superuser access by default for security ([#&#8203;2905](https://github.com/cloudnative-pg/cloudnative-pg/issues/2905)) - Enable replication slots for HA by default ([#&#8203;2903](https://github.com/cloudnative-pg/cloudnative-pg/issues/2903)) - Stop supporting the `postgresql` label - replaced by `cnpg.io/cluster` in 1.18 ([#&#8203;2744](https://github.com/cloudnative-pg/cloudnative-pg/issues/2744)) Security: - Add a default `seccompProfile` to the operator deployment ([#&#8203;2926](https://github.com/cloudnative-pg/cloudnative-pg/issues/2926)) Enhancements: - Enable bootstrap of a replica cluster from a consistent set of volume snapshots ([#&#8203;2647](https://github.com/cloudnative-pg/cloudnative-pg/issues/2647)) - Enable full and Point In Time recovery from a consistent set of volume snapshots ([#&#8203;2390](https://github.com/cloudnative-pg/cloudnative-pg/issues/2390)) - Introduce the `cnpg.io/coredumpFilter` annotation to control the content of a core dump generated in the unlikely event of a PostgreSQL crash, by default set to exclude shared memory segments from the dump ([#&#8203;2733](https://github.com/cloudnative-pg/cloudnative-pg/issues/2733)) - Allow to configure ephemeral-storage limits for the shared memory and temporary data ephemeral volumes ([#&#8203;2830](https://github.com/cloudnative-pg/cloudnative-pg/issues/2830)) - Validate resource limits and requests through the webhook ([#&#8203;2663](https://github.com/cloudnative-pg/cloudnative-pg/issues/2663)) - Ensure that PostgreSQL's `shared_buffers` are coherent with the pods' allocated memory resources ([#&#8203;2840](https://github.com/cloudnative-pg/cloudnative-pg/issues/2840)) - Add `uri` and `jdbc-uri` fields in the credential secrets to facilitate developers when connecting their applications to the database ([#&#8203;2186](https://github.com/cloudnative-pg/cloudnative-pg/issues/2186)) - Add a new phase `Waiting for the instances to become active` for finer control of a cluster's state waiting for the replicas to be ready ([#&#8203;2612](https://github.com/cloudnative-pg/cloudnative-pg/issues/2612)) - Improve detection of Pod rollout conditions through the `podSpec` annotation ([#&#8203;2243](https://github.com/cloudnative-pg/cloudnative-pg/issues/2243)) - Add primary timestamp and uptime to the kubectl plugin's `status` command ([#&#8203;2953](https://github.com/cloudnative-pg/cloudnative-pg/issues/2953)) Fixes: - Ensure that the primary instance is always recreated first by prioritizing ready PVCs with a primary role ([#&#8203;2544](https://github.com/cloudnative-pg/cloudnative-pg/issues/2544)) - Honor the `cnpg.io/skipEmptyWalArchiveCheck` annotation during recovery to bypass the check for an empty WAL archive ([#&#8203;2731](https://github.com/cloudnative-pg/cloudnative-pg/issues/2731)) - Prevent a cluster from being stuck when the PostgreSQL server is down but the pod is up on the primary ([#&#8203;2966](https://github.com/cloudnative-pg/cloudnative-pg/issues/2966)) - Avoid treating the designated primary in a replica cluster as a regular HA replica when replication slots are enabled ([#&#8203;2960](https://github.com/cloudnative-pg/cloudnative-pg/issues/2960)) - Reconcile services every time the selectors change or when labels/annotations need to be changed ([#&#8203;2918](https://github.com/cloudnative-pg/cloudnative-pg/issues/2918)) - Defaults to `app` both the owner and database during recovery bootstrap ([#&#8203;2957](https://github.com/cloudnative-pg/cloudnative-pg/issues/2957)) - Avoid write-read concurrency on cached cluster ([#&#8203;2884](https://github.com/cloudnative-pg/cloudnative-pg/issues/2884)) - Remove empty items, make them unique and sort in the `ResourceName` sections of the generated roles ([#&#8203;2875](https://github.com/cloudnative-pg/cloudnative-pg/issues/2875)) - Ensure that the `ContinuousArchiving` condition is properly set to 'failed' in case of errors ([#&#8203;2625](https://github.com/cloudnative-pg/cloudnative-pg/issues/2625)) - Make the `Backup` resource reconciliation cycle more resilient on interruptions by stopping only if the backup is completed or failed ([#&#8203;2591](https://github.com/cloudnative-pg/cloudnative-pg/issues/2591)) - Reconcile PodMonitor `labels` and `annotations` ([#&#8203;2583](https://github.com/cloudnative-pg/cloudnative-pg/issues/2583)) - Fix backup failure due to missing RBAC `resourceNames` on the `Role` object ([#&#8203;2956](https://github.com/cloudnative-pg/cloudnative-pg/issues/2956)) - Observability: - Add TCP port label to default `pg_stat_replication` metric ([#&#8203;2961](https://github.com/cloudnative-pg/cloudnative-pg/issues/2961)) - Fix the `pg_wal_stat` default metric for Prometheus ([#&#8203;2569](https://github.com/cloudnative-pg/cloudnative-pg/issues/2569)) - Improve the `pg_replication` default metric for Prometheus ([#&#8203;2744](https://github.com/cloudnative-pg/cloudnative-pg/issues/2744) and [#&#8203;2750](https://github.com/cloudnative-pg/cloudnative-pg/issues/2750)) - Use `alertInstanceLabelFilter` instead of `alertName` in the provided Grafana dashboard - Enforce `standard_conforming_strings` in metric collection ([#&#8203;2888](https://github.com/cloudnative-pg/cloudnative-pg/issues/2888)) Changes: - Set the default operand image to PostgreSQL 16.0 - Fencing now uses PostgreSQL's fast shutdown instead of smart shutdown to halt an instance ([#&#8203;3051](https://github.com/cloudnative-pg/cloudnative-pg/issues/3051)) - Rename webhooks from kb.io to cnpg.io group ([#&#8203;2851](https://github.com/cloudnative-pg/cloudnative-pg/issues/2851)) - Replace the `cnpg snapshot` command with `cnpg backup -m volumeSnapshot` for the `kubectl` plugin - Let the `cnpg hibernate` plugin command use the `ClusterManifestAnnotationName` and `PgControldataAnnotationName` annotations on PVCs ([#&#8203;2657](https://github.com/cloudnative-pg/cloudnative-pg/issues/2657)) - Add the `cnpg.io/instanceRole` label while deprecating the existing `role` label ([#&#8203;2915](https://github.com/cloudnative-pg/cloudnative-pg/issues/2915)) Technical enhancements: - Replace `k8s-api-docgen` with `gen-crd-api-reference-docs` to automatically build the API reference documentation ([#&#8203;2606](https://github.com/cloudnative-pg/cloudnative-pg/issues/2606)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMy4wIiwidXBkYXRlZEluVmVyIjoiMzcuMTMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
renovator added 1 commit 2023-10-12 00:02:31 +02:00
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
5ebed6f38b
chore(deps): update dependency cloudnative-pg/cloudnative-pg to v1.21.0
renovator scheduled this pull request to auto merge when all checks succeed 2023-10-12 00:02:32 +02:00
renovator merged commit 5ebed6f38b into main 2023-10-12 00:07:58 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infra/crds-catalog#47
No description provided.