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
Remove APIServerList from the Kubelet #40049
Comments
xref: #40050 |
Hmm. Is the default path for --kubeconfig the issue? Seems like if --kubeconfig had no default, it's absence would mean standalone and presence would replace --require-kubeconfig |
The issue is more that an alternative way for specifying standalone mode hasn't been in place for the same period of time that APIServerList has been deprecated, so even though people have been told not to use it, there is really no alternative for enabling standalone mode - so we can't just rip it out because we'll risk breaking people when they move to a new k8s version. As far as how we provide an alternative, I'd rather be explicit with the setting. It's more clear to users. |
This is related to #30515 cc @smarterclayton |
Automatic merge from submit-queue (batch tested with PRs 48976, 49474, 40050, 49426, 49430) Use presence of kubeconfig file to toggle standalone mode Fixes #40049 ```release-note The deprecated --api-servers flag has been removed. Use --kubeconfig to provide API server connection information instead. The --require-kubeconfig flag is now deprecated. The default kubeconfig path is also deprecated. Both --require-kubeconfig and the default kubeconfig path will be removed in Kubernetes v1.10.0. ``` /cc @kubernetes/sig-cluster-lifecycle-misc @kubernetes/sig-node-misc
I would remove this right now, as it has been marked deprecated since 1.4. However, as
(len(s.APIServerList) == 0 && !s.RequireKubeConfig)
is the criteria for enabling standalone mode on the Kubelet, a replacement flag needs to be around for two versions before the deprecated flag can be removed. I will post a PR for 1.6 to add the replacement--standalone
flag (unless @kubernetes/sig-cluster-lifecycle-misc has determined other plans since this was last discussed). The removal of APIServerList can then happen in 1.8./cc @mikedanese @errordeveloper
Edit: #40050 accomplishes the removal of --api-servers
The text was updated successfully, but these errors were encountered: