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

🌱 Change the status into progressing if the upgraded pg instance is not ready #1358

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

Conversation

yanmxa
Copy link
Member

@yanmxa yanmxa commented Feb 7, 2025

Summary

Related issue(s)

Fixes #

Tests

  • Unit/function tests have been added and incorporated into make unit-tests.
  • Integration tests have been added and incorporated into make integration-test.
  • E2E tests have been added and incorporated into make e2e-test-all.
  • List other manual tests you have done.

Signed-off-by: myan <[email protected]>
@yanmxa yanmxa changed the title 🌱 Change the mgh status into progressing if the upgraded pg instance is not ready 🌱 Change the status into progressing if the upgraded pg instance is not ready Feb 7, 2025
@ldpliu
Copy link
Contributor

ldpliu commented Feb 7, 2025

/lgtm

Copy link

openshift-ci bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ldpliu, yanmxa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

// Deprecated: The built-in PostgreSQL name `multicluster-global-hub-postgres` has been changed to
// `multicluster-global-hub-postgresql` starting from Global Hub release 2.13.
if dcs.Name != "multicluster-global-hub-postgres" && !desiredComponents.Has(dcs.Name) {
log.Warnf("processing components: unsupported %s", dcs.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not we need to log warning for unsupported component?

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems we don't need to log the information, the component all created by ourself

Copy link
Contributor

Choose a reason for hiding this comment

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

@ldpliu Do you remember why we add this logic in the past?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

in the upgrade environment, the component should also contain multicluster-global-hub-postgres. We may need to ignore this one since we won't use it. Does it make sense?

// Deprecated: The built-in PostgreSQL name `multicluster-global-hub-postgres` has been changed to
// `multicluster-global-hub-postgresql` starting from Global Hub release 2.13.
// If the new instance is not ready, we should keep the phase as progressing.
newPgIsnstance := false
Copy link
Contributor

Choose a reason for hiding this comment

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

/s/newPgIsnstance/newPgInstance/g

Signed-off-by: myan <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm label Feb 7, 2025
Copy link

openshift-ci bot commented Feb 7, 2025

New changes are detected. LGTM label has been removed.

@yanmxa yanmxa requested review from clyang82 and ldpliu February 7, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants