Skip to content

[postgres-operator] Update to v1.27.3 - #2226

Merged
Andrei Kvapil (kvaps) merged 2 commits into
cozystack:mainfrom
dmpopoff:main
Mar 18, 2026
Merged

[postgres-operator] Update to v1.27.3#2226
Andrei Kvapil (kvaps) merged 2 commits into
cozystack:mainfrom
dmpopoff:main

Conversation

@dmpopoff

@dmpopoff dmpopof (dmpopoff) commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

What this PR does

upgrades CNPG operator to v1.27.3

Used chart version 0.27.1. Image in default values set to 1.27.3. The default App version for this chart is 1.28.1.

Release note

[postgres-operator] Update to v1.27.3

Summary by CodeRabbit

  • New Features

    • Deployment update strategy and topologySpreadConstraints for operator pods
    • Webhook startupProbe support and new database mutation/validation webhooks
    • Monitoring: added pg_extensions query and target_databases
    • Expanded RBAC to include failoverquorums and image/catalog resources
    • Namespace templating standardized across manifests
  • Bug Fixes

    • Corrected documentation typo
  • Chores

    • Helm chart bumped to v0.26.1 / appVersion 1.27.1; operator image tag set to 1.27.3
    • Added SPDX license headers and updated README badges and docs

@coderabbitai

coderabbitai Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 52e1163b-6d71-4206-8e57-38f1302afaa2

📥 Commits

Reviewing files that changed from the base of the PR and between 1edbb4a and 845192b.

📒 Files selected for processing (7)
  • packages/system/postgres-operator/Makefile
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/README.md
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/crds/crds.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/deployment.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/values.yaml
  • packages/system/postgres-operator/values.yaml
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/values.yaml

📝 Walkthrough

Walkthrough

Bumps cloudnative-pg chart/app versions; adds topologySpreadConstraints, updateStrategy, and webhook startupProbe; expands RBAC (failoverquorums, imagecatalogs, status subresources); adds database admission webhooks; switches namespace rendering to helper; updates monitoring queries and license headers.

Changes

Cohort / File(s) Summary
Chart metadata & docs
packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml, packages/system/postgres-operator/charts/cloudnative-pg/README.md
Bump chart version and appVersion; update badges and README text (typo fix, monitoring query description).
Values & schema
packages/system/postgres-operator/charts/cloudnative-pg/values.yaml, .../values.schema.json
Add topologySpreadConstraints (array), updateStrategy (object) and webhook.startupProbe (object) to values and JSON schema; extend monitoring queries (pg_extensions).
Deployment & runtime
packages/system/postgres-operator/charts/cloudnative-pg/templates/deployment.yaml
Add optional strategy from Values.updateStrategy, render topologySpreadConstraints, add conditional startupProbe, and source WATCH_NAMESPACE via include "cloudnative-pg.namespace" ..
Namespace helper & templates
packages/system/postgres-operator/charts/cloudnative-pg/templates/NOTES.txt, .../_helpers.tpl, .../templates/service.yaml
Replace direct Release.Namespace uses with include "cloudnative-pg.namespace" .; add helper changes and minor header/license updates.
Admission webhooks
packages/system/postgres-operator/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml, .../validatingwebhookconfiguration.yaml
Add new database mutating/validating webhook entries (mdatabase/vdatabase), standardize admissionReviewVersions: [v1], and switch client service namespaces to namespace helper.
RBAC & helpers
packages/system/postgres-operator/charts/cloudnative-pg/templates/_helpers.tpl, .../rbac.yaml
Add RBAC rules for failoverquorums and include failoverquorums and clusters/status, imagecatalogs, clusterimagecatalogs in ClusterRole/Role resources; update namespace fields to use helper.
Monitoring & ConfigMap
packages/system/postgres-operator/charts/cloudnative-pg/templates/monitoring-configmap.yaml, .../values.yaml
Add pg_extensions monitoring query and related targets; header/license line additions only in ConfigMap template.
Licensing & headers
multiple templates (.../templates/config.yaml, podmonitor.yaml, service.yaml, monitoring-configmap.yaml, etc.)
Insert/update copyright headers and SPDX-License-Identifier: Apache-2.0 comments; no functional changes.
Makefile & image tag
packages/system/postgres-operator/Makefile, packages/system/postgres-operator/values.yaml
Pin Helm chart pull to version 0.26.1 in Makefile; update cloudnative-pg image tag to 1.27.3 in top-level values.

Sequence Diagram(s)

sequenceDiagram
  participant KAS as Kubernetes API Server
  participant WebhookSvc as cloudnative-pg Service
  participant WebhookPod as webhook Container
  participant Controller as cloudnative-pg Controller
  KAS->>WebhookSvc: Admission POST /mutate or /validate (admissionReview v1)
  WebhookSvc->>WebhookPod: forward admission request
  WebhookPod->>WebhookPod: evaluate rules (db/cluster/backup)
  WebhookPod-->>WebhookSvc: admissionReview response
  WebhookSvc-->>KAS: admissionReview response
  KAS->>Controller: Event / reconcile (resource created/updated)
  Controller->>KAS: update status (may include failoverquorums/status)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • Update CNPG postgres-operator v1.25.0 #575: Modifies the same cloudnative-pg Helm chart files (Chart.yaml, README, templates including helpers, deployment, rbac, webhooks) and introduces the namespace helper and RBAC/template changes.

Suggested labels

enhancement, size:XL

Poem

🐇 I hopped through charts and nudged each line,

Namespaced my burrow, probes set to align,
Webhooks now guard the database gate,
RBAC widened to watch failover's fate,
Metrics hum softly — the cluster feels fine.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title '[postgres-operator] Update to v1.27.3' accurately reflects the main objective of the changeset: upgrading the postgres-operator (CNPG) to version 1.27.3.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.

OpenGrep is compatible with Semgrep configurations. Add an opengrep.yml or semgrep.yml configuration file to your project to enable OpenGrep analysis.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a significant upgrade of the CloudNativePG operator, bringing it to version 1.27.3. The update encompasses not only version bumps for the operator image and Helm chart but also introduces several new features and improvements. These include advanced deployment controls, refined webhook configurations, and extended monitoring capabilities, all aimed at improving the operator's robustness and observability within a Kubernetes environment. The changes also standardize license information across the codebase.

Highlights

  • CloudNativePG Operator Upgrade: The CloudNativePG operator has been upgraded to version 1.27.3, along with an update to the Helm chart version to 0.27.1 and the application version to 1.28.1.
  • New Configuration Options: Introduced new configuration options for deployment update strategy, topology spread constraints, and webhook startup probes, enhancing operator resilience and deployment flexibility.
  • Expanded RBAC and Webhook Definitions: RBAC permissions and webhook configurations have been updated to support new resources such as failoverquorums, imagecatalogs, and clusterimagecatalogs, and to include a new mutating/validating webhook for databases.
  • Enhanced Monitoring Queries: Monitoring queries have been expanded to include a predicate_query for pg_stat_archiver and a new pg_extensions query, providing more comprehensive insights into PostgreSQL instances.
  • Codebase Standardization: Copyright headers across various template files have been updated and SPDX license identifiers (SPDX-License-Identifier: Apache-2.0) have been added for better open-source compliance.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.lock
    • Updated cluster dependency version from 0.0.2 to 0.0.5.
    • Updated digest and generated timestamps.
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml
    • Updated appVersion from 1.25.0 to 1.28.1.
    • Updated chart version from 0.23.0 to 0.27.1.
  • packages/system/postgres-operator/charts/cloudnative-pg/README.md
    • Updated version badges to reflect new chart and app versions.
    • Corrected a typo in the additionalArgs description.
    • Added documentation for topologySpreadConstraints and updateStrategy.
    • Updated webhook configuration documentation to include startupProbe.
    • Expanded monitoring queries section to include pg_extensions and predicate_query for pg_stat_archiver.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/NOTES.txt
    • Refactored namespace reference to use include "cloudnative-pg.namespace" . helper.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/_helpers.tpl
    • Added failoverquorums resource to the operator's RBAC permissions.
    • Added failoverquorums/status resource to the operator's RBAC permissions.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/deployment.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
    • Implemented updateStrategy for the deployment.
    • Updated WATCH_NAMESPACE to use the cloudnative-pg.namespace helper.
    • Changed webhook probe ports to webhook-server.
    • Introduced startupProbe for the webhook.
    • Added support for topologySpreadConstraints in the deployment.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/monitoring-configmap.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
    • Updated namespace references in webhook configurations.
    • Added mutating webhook for databases.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/podmonitor.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/rbac.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
    • Updated namespace references in RBAC configurations.
    • Expanded RBAC rules to include clusters/status, failoverquorums, imagecatalogs, and clusterimagecatalogs.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/service.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/validatingwebhookconfiguration.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
    • Updated namespace references in webhook configurations.
    • Added validating webhook for databases.
  • packages/system/postgres-operator/charts/cloudnative-pg/values.schema.json
    • Updated the schema to include topologySpreadConstraints and updateStrategy.
    • Extended webhook schema to include startupProbe configuration.
  • packages/system/postgres-operator/charts/cloudnative-pg/values.yaml
    • Updated copyright header.
    • Added SPDX license identifier.
    • Set default image.tag to 1.27.3.
    • Added default updateStrategy configuration.
    • Configured default startupProbe values for the webhook.
    • Corrected a comment typo for additionalArgs.
    • Added default topologySpreadConstraints configuration.
    • Updated monitoringQueriesConfigMap.queries to include predicate_query for pg_stat_archiver and a new pg_extensions query.
Activity
  • The author, dmpopoff, created this pull request to upgrade the CloudNativePG operator.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment Gemini (@gemini-code-assist) Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on Gemini (@gemini-code-assist) comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully updates the CloudNativePG operator to version v1.27.3, along with chart version 0.27.1 and app version 1.28.1. The changes include updates to Chart.lock, Chart.yaml, and README.md to reflect the new versions. Additionally, new configurations for startupProbe, updateStrategy, and topologySpreadConstraints have been introduced in values.yaml and their corresponding schema in values.schema.json. RBAC rules and webhook configurations have been extended to support new resources like failoverquorums, imagecatalogs, and clusterimagecatalogs. Several templates (NOTES.txt, deployment.yaml, mutatingwebhookconfiguration.yaml, rbac.yaml, validatingwebhookconfiguration.yaml) have been updated to use the cloudnative-pg.namespace helper for consistency. Copyright headers have been updated, and SPDX license identifiers have been added to various files, improving license clarity. Minor formatting adjustments and a typo correction in README.md also contribute to overall code quality. All changes are consistent with an operator upgrade and introduce valuable new features and improvements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/system/postgres-operator/charts/cloudnative-pg/README.md`:
- Line 60: The table row for monitoringQueriesConfigMap.queries injects the full
YAML (with many | pipe characters) into the cell which breaks Markdown table
parsing; replace the cell value with a short placeholder like "See values.yaml
for full default" and move the entire YAML payload currently embedded in that
cell into a fenced code block (triple backticks, YAML) placed immediately after
the table (or in a "Defaults" section) so the README renders correctly;
specifically update the README entry for monitoringQueriesConfigMap.queries and
add the full YAML as a separate fenced block below the table.

In
`@packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml`:
- Around line 2-3: This change modifies a vendored upstream chart template
(cloudnative-pg config.yaml) directly; instead of editing
packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml by
hand, revert this direct edit and apply the header/comment change via the chart
vendoring/update mechanism (e.g., update the cloudnative-pg dependency or the
chart vendor tooling you use) so the upstream chart is updated cleanly and the
vendored templates remain unmodified.

In `@packages/system/postgres-operator/charts/cloudnative-pg/values.yaml`:
- Around line 29-30: The vendored cloudnative-pg chart should not be edited
directly (remove the hardcoded image.tag "1.27.3" in the vendored values);
instead either vendor a chart version that matches the operator (e.g., use the
cloudnative-pg chart matching operator 1.27.3 rather than chart 0.27.1) or apply
an image override at the umbrella/parent chart layer using the umbrella chart's
values override mechanism (set the cloudnative-pg image.tag via the parent chart
values.yaml or Helm --set for dependencyOverrides) so chart rendering and
operator image remain in sync and you avoid modifying files under the vendored
chart.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 919759f4-08fa-4e97-b38d-66f9e90279eb

📥 Commits

Reviewing files that changed from the base of the PR and between 47dbbb9 and 8ac8542.

⛔ Files ignored due to path filters (1)
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.lock is excluded by !**/*.lock
📒 Files selected for processing (15)
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/README.md
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/NOTES.txt
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/_helpers.tpl
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/crds/crds.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/deployment.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/monitoring-configmap.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/podmonitor.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/rbac.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/service.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/validatingwebhookconfiguration.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/values.schema.json
  • packages/system/postgres-operator/charts/cloudnative-pg/values.yaml

Comment thread packages/system/postgres-operator/charts/cloudnative-pg/README.md Outdated
Comment on lines +2 to +3
# Copyright © contributors to CloudNativePG, established as
# CloudNativePG a Series of LF Projects, LLC.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Avoid direct edits in vendored upstream chart templates

This file is inside a vendored chart (packages/system/postgres-operator/charts/cloudnative-pg/...), so these header/comment changes should be applied through the chart vendoring/update mechanism, not by directly editing vendored YAML files.

As per coding guidelines: **/*.yaml: "Do NOT directly edit upstream Helm charts in vendored charts directory; use proper chart vendoring mechanisms".

Also applies to: 17-18

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml`
around lines 2 - 3, This change modifies a vendored upstream chart template
(cloudnative-pg config.yaml) directly; instead of editing
packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml by
hand, revert this direct edit and apply the header/comment change via the chart
vendoring/update mechanism (e.g., update the cloudnative-pg dependency or the
chart vendor tooling you use) so the upstream chart is updated cleanly and the
vendored templates remain unmodified.

Comment thread packages/system/postgres-operator/charts/cloudnative-pg/values.yaml Outdated

@kvaps Andrei Kvapil (kvaps) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 16, 2026
@kvaps

Copy link
Copy Markdown
Member

dmpopof (@dmpopoff) please fix DCO

git commit -S --amend
git push -f

Signed-off-by: Dmitrii Popov <dmpopof@gmail.com>
@dmpopoff

dmpopof (dmpopoff) commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

"make apply" was successful, desired image deployed. Should the image be specified in the vendor chart values file, which is being used for now or in the package's values?
Example package values:

cloudnative-pg:
  crds:
    create: true
  image:
    tag: "1.27.3"

I suggest using version 1.27.3 for now, as it is more stable; the 1.28 branch includes significant changes that have not yet been fully tested.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
packages/system/postgres-operator/charts/cloudnative-pg/values.yaml (1)

29-30: ⚠️ Potential issue | 🟠 Major

Move the operator tag override out of the vendored chart values.

Line 30 hardcodes image.tag inside the vendored charts/cloudnative-pg values, which should be kept upstream-clean and overridden from the umbrella chart layer instead.

Read-only verification steps
#!/bin/bash
set -euo pipefail

echo "Local vendored chart metadata:"
sed -n '1,40p' packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml | rg -n '^(version|appVersion):'

echo
echo "Local vendored image values:"
sed -n '24,34p' packages/system/postgres-operator/charts/cloudnative-pg/values.yaml

echo
echo "Upstream cloudnative-pg v0.27.1 image defaults:"
curl -fsSL https://raw.githubusercontent.com/cloudnative-pg/charts/cloudnative-pg-v0.27.1/charts/cloudnative-pg/values.yaml \
  | rg -n -A2 -B2 'Overrides the image tag whose default is the chart appVersion|^\s*tag:'

echo
echo "Search for non-vendored override locations in this repo:"
rg -n --type=yaml 'cloudnative-pg:|image:\s*$|tag:\s*"?1\.27\.3"?'

As per coding guidelines: **/*.yaml: "Do NOT directly edit upstream Helm charts in vendored charts directory; use proper chart vendoring mechanisms".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/system/postgres-operator/charts/cloudnative-pg/values.yaml` around
lines 29 - 30, The vendored chart's values.yaml hardcodes image.tag ("tag:
\"1.27.3\"") which must not be edited in-place; remove the hardcoded image.tag
entry from packages/system/postgres-operator/charts/cloudnative-pg/values.yaml
and instead set image.tag in the umbrella/parent chart values (the override
location that deploys cloudnative-pg) so the vendored cloudnative-pg chart
remains upstream-clean; ensure the override uses the same key path (image.tag)
when adding it to the parent chart's values.yaml.
packages/system/postgres-operator/charts/cloudnative-pg/README.md (1)

60-60: ⚠️ Potential issue | 🟡 Minor

Fix broken table row rendering for monitoringQueriesConfigMap.queries (still unresolved).

Line 60 embeds a long YAML payload containing many | tokens inside a Markdown table cell, which breaks column parsing and truncates rendering.

Suggested fix
-| monitoringQueriesConfigMap.queries | string | "<full escaped YAML...>" | A string representation of a YAML defining monitoring queries. |
+| monitoringQueriesConfigMap.queries | string | `"See values.yaml for full default"` | A string representation of YAML defining monitoring queries. |

Then place the full default value in a fenced yaml block immediately below the table (or in a ## Defaults section), so docs render correctly while preserving the full content.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/system/postgres-operator/charts/cloudnative-pg/README.md` at line
60, The table cell for monitoringQueriesConfigMap.queries contains a large YAML
payload with many pipe (|) blocks which breaks Markdown table parsing; remove
the long YAML value from the table row and instead replace the table cell with a
short note (e.g. "See Defaults below") and move the full YAML default into a
separate fenced ```yaml``` block (or a "## Defaults" section) placed immediately
below the table so the file renders correctly; update any surrounding text to
reference monitoringQueriesConfigMap.queries and ensure the moved content is
identical to the original string.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@packages/system/postgres-operator/charts/cloudnative-pg/README.md`:
- Line 60: The table cell for monitoringQueriesConfigMap.queries contains a
large YAML payload with many pipe (|) blocks which breaks Markdown table
parsing; remove the long YAML value from the table row and instead replace the
table cell with a short note (e.g. "See Defaults below") and move the full YAML
default into a separate fenced ```yaml``` block (or a "## Defaults" section)
placed immediately below the table so the file renders correctly; update any
surrounding text to reference monitoringQueriesConfigMap.queries and ensure the
moved content is identical to the original string.

In `@packages/system/postgres-operator/charts/cloudnative-pg/values.yaml`:
- Around line 29-30: The vendored chart's values.yaml hardcodes image.tag ("tag:
\"1.27.3\"") which must not be edited in-place; remove the hardcoded image.tag
entry from packages/system/postgres-operator/charts/cloudnative-pg/values.yaml
and instead set image.tag in the umbrella/parent chart values (the override
location that deploys cloudnative-pg) so the vendored cloudnative-pg chart
remains upstream-clean; ensure the override uses the same key path (image.tag)
when adding it to the parent chart's values.yaml.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d8273a24-a4de-4b89-9e7a-1904f9d6cab2

📥 Commits

Reviewing files that changed from the base of the PR and between 8ac8542 and 1edbb4a.

⛔ Files ignored due to path filters (1)
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.lock is excluded by !**/*.lock
📒 Files selected for processing (15)
  • packages/system/postgres-operator/charts/cloudnative-pg/Chart.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/README.md
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/NOTES.txt
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/_helpers.tpl
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/config.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/crds/crds.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/deployment.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/monitoring-configmap.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/podmonitor.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/rbac.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/service.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/validatingwebhookconfiguration.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/values.schema.json
  • packages/system/postgres-operator/charts/cloudnative-pg/values.yaml
🚧 Files skipped from review as they are similar to previous changes (5)
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/podmonitor.yaml
  • packages/system/postgres-operator/charts/cloudnative-pg/values.schema.json
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/NOTES.txt
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/_helpers.tpl
  • packages/system/postgres-operator/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml

Signed-off-by: Dmitrii Popov <dmpopof@gmail.com>
@dmpopoff

dmpopof (dmpopoff) commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

chart version 0.27.1 is incompatible with operator 1.27.3 because of:

  • new CRDs
  • new admission webhooks probably will prevent DB update/create on 1.27.3
  • Backup spec have breaking change

we should use chart for 1.27.x operator. Fixed in 845192b

@kvaps
Andrei Kvapil (kvaps) merged commit c689367 into cozystack:main Mar 18, 2026
10 of 11 checks passed
IvanHunters added a commit that referenced this pull request Apr 7, 2026
This reverts commit c689367, reversing
changes made to 7ab6283.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants