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
Graduate IngressClassNamespacedParams to GA #104636
Graduate IngressClassNamespacedParams to GA #104636
Conversation
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/priority important-soon |
fa8cbc5
to
3b4f369
Compare
Not sure this is strictly required, but may be good to add this field to one of our existing conformance tests to ensure that the field can be set. Maybe somewhere around here: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/network/ingress.go#L606. /triage accepted |
I think it's also typical to remove any feature gate checks at this point since we have |
3b4f369
to
39c9337
Compare
39c9337
to
bb640e7
Compare
0163b6c
to
276b86b
Compare
Thanks! /lgtm |
276b86b
to
f3e2b63
Compare
/approve Needs a new LGTM from Rob |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hbagdi, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f3e2b63
to
ace07d4
Compare
/test pull-kubernetes-integration |
test/e2e/network/ingressclass.go
Outdated
} | ||
if createdIngressClass.Spec.Parameters.Scope == nil || | ||
*createdIngressClass.Spec.Parameters.Scope != "Namespace" { | ||
framework.Failf("Expected IngressClass.spec.parameters.scope to be set to 'Namespace'") |
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.
This could likely use a got %v
extension - would also help clarify why this particular part of the test is failing.
test/e2e/network/ingressclass.go
Outdated
framework.Failf("Expected IngressClass.spec.parameters.scope to be set to 'Namespace'") | ||
} | ||
|
||
framework.ExpectNoError(err) |
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.
this should go just after the call to the function that returns the variable,no?
if createdIngressClass.Spec.Parameters == nil { | ||
framework.Failf("Expected IngressClass.spec.parameters to be set") | ||
} |
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.
the CI job fails here
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/network/ingressclass.go:100
Nov 9 01:49:18.288: Expected IngressClass.spec.parameters to be set
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/internal/leafnodes/runner.go:113
is the ingress version used in the CI supporting it? otherwise we have to modify the job in test-infra to skip this test
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 the ingress version used in the CI supporting it?
I'm not sure if that even matters because the test creates an IngressClass resource (and not an Ingress resource).
I've fixed the test to include a more descriptive error message and fixed the ordering.
Another run should point out the issues.
4f28f9a
to
4cffe5c
Compare
/test pull-kubernetes-e2e-gci-gce-ingress |
4cffe5c
to
d09a8c0
Compare
@robscott CI is green. PTAL. |
Thanks! /lgtm |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This graduates IngressClass.Spec.Parameters.Namespace field to GA.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig network
/cc @robscott