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

Fail to set plugins (or any other necessary cli commands) should result in ReconcileSuccess set to false #598

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

ChunyiLyu
Copy link
Contributor

Summary Of Changes

When Reconcilie() fails to set plugins, feature flags, or rebalance when necessary:

  • publish failedReconcile warning events
  • set ReconcileSuccess to false

Additional Context

Removed an integration test because pods are never successfully created in envTest and plugins cannot be successfully set, so ReconcileSuccess can never be set to true in integration tests.

Local Testing

All tests passing locally

- ReconcileSuccess was set to true when set plugins command
failed
- ReconcileSuccess will only be set to true if all necessary
commands (set plugins, feature flags, rebalance) are
run successfullly
Copy link
Collaborator

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

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

Small change suggested. Overall looks good 👌

controllers/reconcile_cli.go Outdated Show resolved Hide resolved
controllers/reconcile_cli.go Outdated Show resolved Hide resolved
controllers/reconcile_cli.go Outdated Show resolved Hide resolved
- also adds msg to returned errors since error will
be used as ReconcileSuccess status condition messages
@ChunyiLyu ChunyiLyu merged commit 07dc59a into main Feb 10, 2021
@ChunyiLyu ChunyiLyu deleted the failed-set-plugins branch March 1, 2021 10:16
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.

None yet

3 participants