-
Notifications
You must be signed in to change notification settings - Fork 632
Issue 3940: Move BackendTLSPolicy to standard #4074
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
Issue 3940: Move BackendTLSPolicy to standard #4074
Conversation
85ac3a5 to
3a6af30
Compare
snorwin
left a comment
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.
Do we want to include both v1alpha3 and v1 APIs, at least on the experimental channel, or was it always intended as a hard cut when graduating a new resource? Otherwise, the upgrade process might become quite challenging.
|
Is the documentation, e.g., https://github.com/candita/gateway-api/blob/3a6af30be82124d1506eaa415a80354044ce1510/site-src/api-types/backendtlspolicy.md, updated after the release is published? |
shaneutt
left a comment
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 talked about this on the community call today, and there was agreement that we would like to leave the v1alpha3 version of the API in place for now since we've historically tried to do that.
So basically the ask from the group is: could we please copy the types back to v1alpha3 so we have both? Note that other APIs that exist in both versions often use the Go types from v1, so we should do that here, and there's some prior art for that sprinkled throughout.
|
This is also probably missing to be moved/fixed: https://github.com/kubernetes-sigs/gateway-api/tree/main/examples/experimental/v1alpha3 I think all of our tests should be pointing to v1, even we keeping the old v1alpha3 |
|
Some more other places missing an update:
|
9a27ccc to
d486f87
Compare
|
@snorwin In response to #4074 (comment), I will work next on updating the docs. |
d486f87 to
1e1c666
Compare
config/crd/experimental/gateway.networking.k8s.io_backendtlspolicies.yaml
Show resolved
Hide resolved
shaneutt
left a comment
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.
rikatz
left a comment
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.
/lgtm
/hold
Hold for Rob or Nick final review
robscott
left a comment
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.
Thanks @candita!
|
@candita We need one more thing in this PR - all BackendTLSPolicy conformance tests should be bumped to use the v1 API. |
Copy: apis/v1alpha3/backendtlspolicy_types.go -> apis/v1/backendtlspolicy_types.go apis/v1alpha2/policy_types.go -> apis/v1/policy_types.go Update: apis/v1alpha2/policy_types.go apis/v1alpha3/backendtlspolicy_types.go config/crd/kustomization.yaml conformance/tests/backendtlspolicy-conflict-resolution.go conformance/tests/backendtlspolicy-conflict-resolution.yaml conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.go conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.yaml conformance/tests/backendtlspolicy-invalid-kind.go conformance/tests/backendtlspolicy-invalid-kind.yaml conformance/tests/backendtlspolicy-observed-generation-bump.go conformance/tests/backendtlspolicy-observed-generation-bump.yaml conformance/tests/backendtlspolicy-san.go conformance/tests/backendtlspolicy-san.yaml conformance/tests/backendtlspolicy.go conformance/tests/backendtlspolicy.yaml conformance/utils/kubernetes/helpers.go examples/standard/backendtlspolicy/backendtlspolicy-ca-certs.yaml examples/standard/backendtlspolicy/backendtlspolicy-system-certs.yaml pkg/features/backendtlspolicy.go pkg/generator/main.go pkg/test/cel/backendtlspolicy_test.go site-src/guides/tls.md Delete: examples/experimental/v1alpha3/backendtlspolicy-ca-certs.yaml examples/experimental/v1alpha3/backendtlspolicy-system-certs.yaml Regenerate the remaining files: rm -rf pkg/client make generate hack/../hack/verify-golint.sh (if needed)
1e1c666 to
4566f54
Compare
robscott
left a comment
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.
Thanks @candita!
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: candita, rikatz, robscott, shaneutt, snorwin 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 |
|
/hold cancel |
Copy: apis/v1alpha3/backendtlspolicy_types.go -> apis/v1/backendtlspolicy_types.go apis/v1alpha2/policy_types.go -> apis/v1/policy_types.go Update: apis/v1alpha2/policy_types.go apis/v1alpha3/backendtlspolicy_types.go config/crd/kustomization.yaml conformance/tests/backendtlspolicy-conflict-resolution.go conformance/tests/backendtlspolicy-conflict-resolution.yaml conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.go conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.yaml conformance/tests/backendtlspolicy-invalid-kind.go conformance/tests/backendtlspolicy-invalid-kind.yaml conformance/tests/backendtlspolicy-observed-generation-bump.go conformance/tests/backendtlspolicy-observed-generation-bump.yaml conformance/tests/backendtlspolicy-san.go conformance/tests/backendtlspolicy-san.yaml conformance/tests/backendtlspolicy.go conformance/tests/backendtlspolicy.yaml conformance/utils/kubernetes/helpers.go examples/standard/backendtlspolicy/backendtlspolicy-ca-certs.yaml examples/standard/backendtlspolicy/backendtlspolicy-system-certs.yaml pkg/features/backendtlspolicy.go pkg/generator/main.go pkg/test/cel/backendtlspolicy_test.go site-src/guides/tls.md Delete: examples/experimental/v1alpha3/backendtlspolicy-ca-certs.yaml examples/experimental/v1alpha3/backendtlspolicy-system-certs.yaml Regenerate the remaining files: rm -rf pkg/client make generate hack/../hack/verify-golint.sh (if needed)
|
/cherry-pick release-1.4 |
|
@robscott: #4074 failed to apply on top of branch "release-1.4": In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Copy: apis/v1alpha3/backendtlspolicy_types.go -> apis/v1/backendtlspolicy_types.go apis/v1alpha2/policy_types.go -> apis/v1/policy_types.go Update: apis/v1alpha2/policy_types.go apis/v1alpha3/backendtlspolicy_types.go config/crd/kustomization.yaml conformance/tests/backendtlspolicy-conflict-resolution.go conformance/tests/backendtlspolicy-conflict-resolution.yaml conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.go conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.yaml conformance/tests/backendtlspolicy-invalid-kind.go conformance/tests/backendtlspolicy-invalid-kind.yaml conformance/tests/backendtlspolicy-observed-generation-bump.go conformance/tests/backendtlspolicy-observed-generation-bump.yaml conformance/tests/backendtlspolicy-san.go conformance/tests/backendtlspolicy-san.yaml conformance/tests/backendtlspolicy.go conformance/tests/backendtlspolicy.yaml conformance/utils/kubernetes/helpers.go examples/standard/backendtlspolicy/backendtlspolicy-ca-certs.yaml examples/standard/backendtlspolicy/backendtlspolicy-system-certs.yaml pkg/features/backendtlspolicy.go pkg/generator/main.go pkg/test/cel/backendtlspolicy_test.go site-src/guides/tls.md Delete: examples/experimental/v1alpha3/backendtlspolicy-ca-certs.yaml examples/experimental/v1alpha3/backendtlspolicy-system-certs.yaml Regenerate the remaining files: rm -rf pkg/client make generate hack/../hack/verify-golint.sh (if needed)
|
manually cherry-picked to deal with conflict. |
Copy: apis/v1alpha3/backendtlspolicy_types.go -> apis/v1/backendtlspolicy_types.go apis/v1alpha2/policy_types.go -> apis/v1/policy_types.go Update: apis/v1alpha2/policy_types.go apis/v1alpha3/backendtlspolicy_types.go config/crd/kustomization.yaml conformance/tests/backendtlspolicy-conflict-resolution.go conformance/tests/backendtlspolicy-conflict-resolution.yaml conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.go conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.yaml conformance/tests/backendtlspolicy-invalid-kind.go conformance/tests/backendtlspolicy-invalid-kind.yaml conformance/tests/backendtlspolicy-observed-generation-bump.go conformance/tests/backendtlspolicy-observed-generation-bump.yaml conformance/tests/backendtlspolicy-san.go conformance/tests/backendtlspolicy-san.yaml conformance/tests/backendtlspolicy.go conformance/tests/backendtlspolicy.yaml conformance/utils/kubernetes/helpers.go examples/standard/backendtlspolicy/backendtlspolicy-ca-certs.yaml examples/standard/backendtlspolicy/backendtlspolicy-system-certs.yaml pkg/features/backendtlspolicy.go pkg/generator/main.go pkg/test/cel/backendtlspolicy_test.go site-src/guides/tls.md Delete: examples/experimental/v1alpha3/backendtlspolicy-ca-certs.yaml examples/experimental/v1alpha3/backendtlspolicy-system-certs.yaml Regenerate the remaining files: rm -rf pkg/client make generate hack/../hack/verify-golint.sh (if needed)
Copy:
apis/v1alpha2/policy_types.go -> apis/v1/policy_types.go
apis/v1alpha3/backendtlspolicy_types.go -> apis/v1/backendtlspolicy_types.go
Update:
apis/v1alpha2/policy_types.go
apis/v1alpha3/backendtlspolicy_types.go
config/crd/kustomization.yaml
conformance/tests/backendtlspolicy-conflict-resolution.go
conformance/tests/backendtlspolicy-invalid-ca-certificate-ref.go
conformance/tests/backendtlspolicy-invalid-kind.go
conformance/tests/backendtlspolicy-observed-generation-bump.go
conformance/tests/backendtlspolicy-san.go
conformance/tests/backendtlspolicy.go
conformance/tests/backendtlspolicy.yaml
conformance/utils/kubernetes/helpers.go
examples/standard/backendtlspolicy/backendtlspolicy-ca-certs.yaml
examples/standard/backendtlspolicy/backendtlspolicy-system-certs.yaml
pkg/features/backendtlspolicy.go
pkg/generator/main.go
pkg/test/cel/backendtlspolicy_test.go
site-src/guides/tls.md
Delete:
examples/experimental/v1alpha3/backendtlspolicy-ca-certs.yaml
examples/experimental/v1alpha3/backendtlspolicy-system-certs.yaml
Regenerate the remaining files:
rm -rf pkg/client
make generate
hack/../hack/verify-golint.sh (if needed)
What type of PR is this?
/kind feature
What this PR does / why we need it:
Move BackendTLSPolicy from v1alpha3 to v1, along with a required move of Policy types from v1alpha2 to v1.
Which issue(s) this PR fixes:
Fixes part of issue 3940
Does this PR introduce a user-facing change?: