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

Switch to CreateOrPatch for creation/updates of resources. #11

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

bigkevmcd
Copy link
Collaborator

Switch to using CreateOrPatch for all resources, which means that deleted resources will be recreated.

@bigkevmcd bigkevmcd requested a review from foot October 19, 2023 09:34
Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

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

Works great!

Tested

  • creating
  • deleting
  • interval: 20s, let it run for a while, seems happy.
  • change existing to bad subId: seems to be backing off nicely (no status changes yet ofc), if cluster is connected it leaves it alone
  • start with bad id: cluster not present
  • fix subId in both cases: recovers

@foot
Copy link
Collaborator

foot commented Oct 19, 2023

  • delete gitopscluster: hangs waiting for secret, delete secret, both are gone, and then recreated
  • delete secret: gitopscluster transitions to failing, secret recreated.

@foot foot merged commit 161f1ad into main Oct 19, 2023
3 checks passed
@foot foot deleted the recreate-missing-secret branch October 19, 2023 14:05
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.

2 participants