Skip to content

K8SPG-748 update statuses #1220

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

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

K8SPG-748 update statuses #1220

wants to merge 10 commits into from

Conversation

nmarukovich
Copy link
Contributor

@nmarukovich nmarukovich commented Jul 14, 2025

K8SPG-748 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
we need to synchronize statuses from postgres cluster to percona cluster

status:
  conditions:
    - lastTransitionTime: "2025-07-17T14:31:56Z"
      message: ""
      reason: AllConditionsAreTrue
      status: "True"
      type: ReadyForBackup
    - lastTransitionTime: "2025-07-17T14:30:01Z"
      message: pgBackRest dedicated repository host is ready
      observedGeneration: 1
      reason: RepoHostReady
      status: "True"
      type: PGBackRestRepoHostReady
    - lastTransitionTime: "2025-07-17T14:30:19Z"
      message: pgBackRest replica create repo is ready for backups
      observedGeneration: 1
      reason: StanzaCreated
      status: "True"
      type: PGBackRestReplicaRepoReady
    - lastTransitionTime: "2025-07-17T14:31:55Z"
      message: pgBackRest replica creation is now possible
      observedGeneration: 1
      reason: RepoBackupComplete
      status: "True"
      type: PGBackRestReplicaCreate
    - lastTransitionTime: "2025-07-17T14:30:03Z"
      message: Deployment has minimum availability.
      observedGeneration: 1
      reason: MinimumReplicasAvailable
      status: "True"
      type: ProxyAvailable
  host: demand-backup-pgbouncer.kuttl-test-thorough-piranha.svc
  installedCustomExtensions: []
  observedGeneration: 3
  patroniStatus:
    patroni:
      systemIdentifier: "7528058106515730508"
    patroniVersion: 4.0.5
  pgbackrest:
    manualBackup:
      finished: false
      id: demand-backup-full-azure
    repoHost:
      apiVersion: apps/v1
      kind: StatefulSet
      ready: true
    repos:
      - name: repo1
        replicaCreateBackupComplete: true
        repoOptionsHash: bd47857d6
        stanzaCreated: true
      - name: repo3
        repoOptionsHash: cf4fc86fb
        stanzaCreated: true

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

Solution:
Short explanation of the solution we are providing with this PR.

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?

@@ -2,7 +2,6 @@ package pgcluster

import (
"context"

"github.com/pkg/errors"
Copy link
Contributor

Choose a reason for hiding this comment

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

[goimports-reviser] reported by reviewdog 🐶

Suggested change
"github.com/pkg/errors"
"github.com/pkg/errors"

@nmarukovich nmarukovich marked this pull request as ready for review July 18, 2025 08:57
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.

1 participant