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

Retry on updating already existing CRD definitions #2540

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

hairyhum
Copy link
Contributor

Change Overview

When updating existing CRD definition we can run into conflict error. This happens often in the test cases. For example: https://github.com/kanisterio/kanister/actions/runs/7146506992/job/19464663550#step:7:753

Added RetryOnConflict from client-go with default parameters for update operation.
This should be good enough to reduce test flakes and should not impact the live installations.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • πŸ› Bugfix
  • 🌻 Feature
  • πŸ—ΊοΈ Documentation
  • πŸ€– Test

Test Plan

  • πŸ’ͺ Manual
  • ⚑ Unit test
  • πŸ’š E2E

When updating existing CRD definition we can run into conflict error.
This happens often in the test cases.

Added `RetryOnConflict` from `client-go` with default parameters for
update operation.
This should be good enough to reduce test flakes and should not impact
the live installations.
@infraq infraq added this to In Progress in Kanister Dec 14, 2023
@viveksinghggits
Copy link
Contributor

Looks good to me, thanks @hairyhum . @kale-amruta was also planning to make the same fix.

Kanister automation moved this from In Progress to Reviewer approved Dec 14, 2023
@hairyhum hairyhum added the kueue label Dec 14, 2023
@mergify mergify bot merged commit c9b2f86 into master Dec 14, 2023
15 checks passed
Kanister automation moved this from Reviewer approved to Done Dec 14, 2023
@mergify mergify bot deleted the crd-update-retry branch December 14, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants