Skip to content

Force a check on controller-gen version#2902

Merged
t-eckert merged 1 commit intomainfrom
force-correct-controller-gen
Sep 7, 2023
Merged

Force a check on controller-gen version#2902
t-eckert merged 1 commit intomainfrom
force-correct-controller-gen

Conversation

@t-eckert
Copy link
Contributor

@t-eckert t-eckert commented Sep 5, 2023

Changes proposed in this PR:

  • Adds a check that the controller-gen binary is the correct version before generating CRDs

How I've tested this PR:

  • I ran this with no controller-gen binary installed and the Makefile installed the correct version for me.
Screenshot 2023-09-05 at 1 48 42 PM
  • I ran this with the correct controller-gen binary installed and the Makefile used it.
  • I ran this with an incorrect version of the controller-gen binary installed and the Makefile stopped me and told me how to fix the problem.
Screenshot 2023-09-05 at 1 43 51 PM

How I expect reviewers to test this PR:

Checklist:

@t-eckert t-eckert requested review from DanStough and lkysow September 5, 2023 17:52
@t-eckert t-eckert added pr/no-changelog PR does not need a corresponding .changelog entry pr/no-backport signals that a PR will not contain a backport label labels Sep 5, 2023
Copy link
Contributor

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

Great work!

Copy link
Contributor

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

🎉

@t-eckert t-eckert merged commit 516d762 into main Sep 7, 2023
@t-eckert t-eckert deleted the force-correct-controller-gen branch September 7, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/no-backport signals that a PR will not contain a backport label pr/no-changelog PR does not need a corresponding .changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants