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

runtime/events: fix Severity validation marker value #159

Merged
merged 1 commit into from
Oct 10, 2021

Conversation

darkowlzz
Copy link
Contributor

Fix the Event.Severity validation marker value.
Also, run controller-gen schemapatch to evaluate all the kubebuilder
markers before generating code.

NOTE: This was introduced in #147 and wasn't caught by any of the validations.
I tried using controller-gen to evaluate the markers in order to catch such issues in the
future and was able to do so using schemapatcher. Running controller-gen
schemapatch as part of generate now evaluates all the go code with kubebuilder
markers. Tested by introducing invalid marker values in apis/kustomize and
apis/metadata.

Also, run controller-gen schemapatch to evaluate all the kubebuilder
markers before generating code.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @darkowlzz

@stefanprodan stefanprodan merged commit 6c1a229 into fluxcd:main Oct 10, 2021
@darkowlzz darkowlzz deleted the ct-marker-evaluation branch October 10, 2021 07:00
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