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

move ContourConfiguration enum validation to controller #4511

Merged
merged 2 commits into from
May 9, 2022

Conversation

skriss
Copy link
Member

@skriss skriss commented May 3, 2022

Removes kubebuilder enum validations from ContourConfiguration
CRD and adds equivalent logic to the Validate() function
called by the controller. This enables new allowed values
to be added without constituting a breaking API change.

Closes #4510.

Signed-off-by: Steve Kriss krisss@vmware.com
Co-authored-by: Nick Young ynick@vmware.com

Removes kubebuilder enum validations from ContourConfiguration
CRD and adds equivalent logic to the Validate() function
called by the controller. This enables new allowed values
to be added without constituting a breaking API change.

Closes projectcontour#4510.

Signed-off-by: Steve Kriss <krisss@vmware.com>
Co-authored-by: Nick Young <ynick@vmware.com>
@skriss skriss requested a review from a team as a code owner May 3, 2022 13:44
@skriss skriss requested review from tsaarni, sunjayBhatia and youngnick and removed request for a team May 3, 2022 13:44
@skriss skriss added the release-note/small A small change that needs one line of explanation in the release notes. label May 3, 2022
Signed-off-by: Steve Kriss <krisss@vmware.com>
@codecov
Copy link

codecov bot commented May 3, 2022

Codecov Report

Merging #4511 (b4727ac) into main (93d8020) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head b4727ac differs from pull request most recent head fca0fba. Consider uploading reports for the commit fca0fba to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4511      +/-   ##
==========================================
- Coverage   76.77%   76.75%   -0.02%     
==========================================
  Files         139      139              
  Lines       12728    12728              
==========================================
- Hits         9772     9770       -2     
- Misses       2702     2704       +2     
  Partials      254      254              
Impacted Files Coverage Δ
pkg/config/ciphersuites.go 100.00% <100.00%> (ø)
internal/sorter/sorter.go 97.57% <0.00%> (-1.22%) ⬇️

@skriss skriss merged commit 46fa79d into projectcontour:main May 9, 2022
skriss added a commit to skriss/contour that referenced this pull request May 9, 2022
…ur#4511)

Removes kubebuilder enum validations from ContourConfiguration
CRD and adds equivalent logic to the Validate() function
called by the controller. This enables new allowed values
to be added without constituting a breaking API change.

Closes projectcontour#4510.

Signed-off-by: Steve Kriss <krisss@vmware.com>
Co-authored-by: Nick Young <ynick@vmware.com>
skriss added a commit that referenced this pull request May 9, 2022
Removes kubebuilder enum validations from ContourConfiguration
CRD and adds equivalent logic to the Validate() function
called by the controller. This enables new allowed values
to be added without constituting a breaking API change.

Closes #4510.

Signed-off-by: Steve Kriss <krisss@vmware.com>
Co-authored-by: Nick Young <ynick@vmware.com>
@skriss skriss deleted the contourconfig-drop-enums branch May 9, 2022 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/small A small change that needs one line of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove kubebuilder enum validations from ContourConfiguration
2 participants