Skip to content
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

K8SPG-725 add resources block to repoHost in CR #1107

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nmarukovich
Copy link
Contributor

@nmarukovich nmarukovich commented Mar 25, 2025

K8SPG-725 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
During the initialization of a postgres cluster, the Operator generates a repoHost StatefulSet without a resources block.
When a ResourceQuota is enforced in the namespace, the missing resources block prevents pod creation

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Add resource block in CR.

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
Copy link
Contributor Author

@jvpasinatto thanks. He already added the values to helm <3

@@ -383,6 +383,10 @@ spec:
# repo3-path: /pgbackrest/postgres-operator/cluster1-multi-repo/repo3
# repo4-path: /pgbackrest/postgres-operator/cluster1-multi-repo/repo4
repoHost:
# resources:
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add it to some of our e2e test

@egegunes egegunes added this to the 2.7.0 milestone Mar 31, 2025
@nmarukovich nmarukovich requested a review from hors April 1, 2025 14:53
@JNKPercona
Copy link
Collaborator

Test name Status
custom-extensions failure
custom-tls passed
demand-backup passed
finalizers passed
init-deploy passed
monitoring passed
monitoring-pmm3 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 20 out of 20

commit: 99d5e3b
image: perconalab/percona-postgresql-operator:PR-1107-99d5e3b4d

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.

4 participants