-
Notifications
You must be signed in to change notification settings - Fork 102
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 KUDO to v1 CRDs #1725
Move KUDO to v1 CRDs #1725
Conversation
0ff713d
to
7c357c2
Compare
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes the kube 1.18 warning messages for CRD 👍
Leaves the warning for admissionregistration.k8s.io/v1beta1 MutatingWebhookConfiguration
LGTM!
Left some thoughts / questions but nothing that should stop this from landing!
cmd/manager/main.go
Outdated
@@ -25,7 +25,7 @@ import ( | |||
"strings" | |||
"time" | |||
|
|||
apiextenstionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" | |||
apiextenstionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not an issue... but we have this defined in other places
extv1
apiext1
(which is my preference)
we should standard it. (not necessarily part of this PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
went for apiext1 thanks
@@ -7,6 +7,8 @@ import ( | |||
"fmt" | |||
"log" | |||
|
|||
apiextv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be consistent tho...
@@ -1,5 +1,3 @@ | |||
// +build integration | |||
|
|||
package cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason to remove +build integration
tag? Should the class be renamed to reflect it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, thank you
@@ -63,7 +63,8 @@ func paramDefaults(pf *packages.Files) verifier.Result { | |||
res := verifier.NewResult() | |||
for _, p := range pf.Params.Parameters { | |||
if p.HasDefault() { | |||
if err := p.ValidateDefault(); err != nil { | |||
if err := p. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh... do we really need to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I don't know what happened here :/
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
What this PR does / why we need it:
This moves KUDO to v1 CRDs only (meaning we support only k8s 1.16+).
Fixes #1723