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

Update controller-gen to v0.9.0 #801

Merged
merged 3 commits into from
May 25, 2022
Merged

Conversation

chrismuellner
Copy link
Collaborator

Description

CRD was generated using an outdated version of controller-gen.

Removed +kubebuilder:validation:MaxProperties=1 annotation for OneAgentSpec which as incompatible.

How can this be tested?

Upgrade controller-gen and check if the generated CRD is the same:

  1. go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0
  2. make manifests

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly

@chrismuellner chrismuellner added the core Changes to core functionality of the Operator label May 25, 2022
@chrismuellner chrismuellner requested a review from a team as a code owner May 25, 2022 14:06
@chrismuellner chrismuellner enabled auto-merge (squash) May 25, 2022 14:06
Makefile Outdated Show resolved Hide resolved
Co-authored-by: Michał Grzybek <35979436+mjgrzybek@users.noreply.github.com>
@mjgrzybek
Copy link
Contributor

I don't think Makefile should install tools. I'd leave it just checking if tool is available.
Now it only installs it, but doesn't check if already existing one is in correct version.
Update is required to be done manually anyway.

@chrismuellner
Copy link
Collaborator Author

Those checks are generated when the project is generated with operator-sdk.
May be different now than when this Makefile was first generated.

@0sewa0
Copy link
Contributor

0sewa0 commented May 25, 2022

I don't think Makefile should install tools.

I agree, but I think the main purpose of it is for the CI

@mjgrzybek
Copy link
Contributor

Ok, so now let's just bump version and we can discuss it when refactoring Makefile.

@chrismuellner chrismuellner merged commit 2682e3c into master May 25, 2022
@chrismuellner chrismuellner deleted the feature/update-controllergen branch May 25, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core functionality of the Operator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants