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

Add pgresql spec sync with Instaclustr Console #399

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Add pgresql spec sync with Instaclustr Console #399

merged 1 commit into from
Apr 4, 2023

Conversation

ribaraka
Copy link
Contributor

@ribaraka ribaraka commented Apr 4, 2023

No description provided.

@ribaraka ribaraka added the enhancement New feature or request label Apr 4, 2023
@ribaraka ribaraka self-assigned this Apr 4, 2023
if k.DeletionTimestamp != nil &&
(len(k.Spec.TwoFactorDelete) != 0 &&
k.Annotations[models.DeletionConfirmed] != models.True) {
// skip validation when get cluster specification update from Instaclustr UI
Copy link
Collaborator

Choose a reason for hiding this comment

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

skip validation when get cluster specification update from Instaclustr UI -> skip validation when we receive cluster specification update from the Instaclustr UI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to

// skip validation when we receive cluster specification update from the Instaclustr Console.

@@ -821,24 +852,23 @@ func (r *PostgreSQLReconciler) newWatchStatusJob(pg *clustersv1alpha1.PostgreSQL
return err
}

if pg.Status.CurrentClusterOperationStatus == models.NoOperation &&
if instaPG.Status.CurrentClusterOperationStatus == models.NoOperation &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's use only one name for the "instaPostgreSQL" variable to make the code consistent

Copy link
Contributor Author

@ribaraka ribaraka Apr 4, 2023

Choose a reason for hiding this comment

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

renamed accordingly to pg iPg

@ribaraka ribaraka merged commit 30c9176 into main Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants