-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Turn off the alpha features by default #47690
Turn off the alpha features by default #47690
Conversation
pkg/master/master.go
Outdated
@@ -47,9 +46,7 @@ import ( | |||
extensionsapiv1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1" | |||
networkingapiv1 "k8s.io/kubernetes/pkg/apis/networking/v1" | |||
policyapiv1beta1 "k8s.io/kubernetes/pkg/apis/policy/v1beta1" | |||
rbacv1alpha1 "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1" |
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.
don't turn this off... it's been on since 1.5 and we need to ensure we can read existing data. new data is written in v1beta1 as of 1.6
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.
actually, I just tried launching with v1alpha1 data in etcd with this PR (which leaves v1alpha1 registered, but disabled by default), and the data was able to be read out of etcd just fine via the v1beta1 endpoint. I don't really feel strongly about disabling the group, since new data is actually being stored in v1beta1 format as of 1.6
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.
I think it's because when stored to etcd, the path doesn't include the version, so as long as the codec is able to decode (i.e., v1lapha1 is registered to api.Scheme), it's readable.
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.
I knew the path was stable, but I thought we had already started cleaning up the shared global api.Scheme
and you had to opt into the groups registered into your storage scheme, but apparently not
Some e2e tests rely on settings/v1alpha1 to be enabled by default:
|
@liggitt i think we can disable rbac and settings v1alpha1, reading v1alpha1 data is not an issue, but i need to fix the e2e tests depends on settings/v1alpha1. |
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
Discussed with @pwittrock @foxish @dchen1107 offline, because there could be OSS users depending on rbac/v1alpha1 and setttings/v1alpha1 being enabled by default, in 1.7, we'll make an action-required release-note to inform people to enable these alpha features explicitly if needed, and will disable them by default in 1.8. |
That seems more than reasonable. Can you add comments to the code as breadcrumbs to remind us and queue up the PR to do that in 1.8 so we don't forget? |
e30ab6d
to
bc26344
Compare
Created #47691 as a reminder. |
@liggitt could you also take a look at the release note? Thanks. |
/lgtm |
bc26344
to
68eb89a
Compare
updated bazel. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caesarxuchao, dchen1107 Associated issue: 47687 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
Fix #47687.
@liggitt @sttts do you know if it's intentional to turn on rbac v1alpha1?