Skip to content

K8SPG-511 fix variables #1054

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

Merged
merged 6 commits into from
Mar 7, 2025
Merged

K8SPG-511 fix variables #1054

merged 6 commits into from
Mar 7, 2025

Conversation

nmarukovich
Copy link
Contributor

@nmarukovich nmarukovich commented Feb 20, 2025

K8SPG-511 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
In openshift we can't run pg cluster properly because of default fields.
Cause:
There is a bug in OpenShift where it ignores our alm-examples and automatically adds all fields with default values to the CR example.

As a result, extra sections like dataSource appear in the CR. If a user tries to create a cluster with this unintended dataSource section, the cluster gets stuck in the init state, attempting to restore from a backup that likely doesn't exist (since it's usually the first time the cluster is being deployed).
Solution:
Delete default values or turn some values from true to false.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PG version?
  • Does the change support oldest and newest supported Kubernetes version?

@nmarukovich nmarukovich marked this pull request as ready for review February 27, 2025 12:42
@JNKPercona
Copy link
Collaborator

Test name Status
custom-extensions passed
custom-tls passed
demand-backup passed
finalizers passed
init-deploy passed
monitoring passed
one-pod passed
operator-self-healing passed
pitr passed
scaling passed
scheduled-backup passed
self-healing passed
sidecars passed
start-from-backup passed
tablespaces passed
telemetry-transfer passed
upgrade-consistency passed
upgrade-minor passed
users passed
We run 19 out of 19

commit: 6d1234a
image: perconalab/percona-postgresql-operator:PR-1054-6d1234ac3

@hors hors merged commit bbbcd2b into main Mar 7, 2025
17 checks passed
@hors hors deleted the K8SPG-511_fix branch March 7, 2025 07:26
jvpasinatto pushed a commit that referenced this pull request Mar 7, 2025
* fix variables

* fix

* delete default value for pgbackrest repo

---------

Co-authored-by: Viacheslav Sarzhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants