-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix to prevent accepting addons flag when --no-kubernetes #15003
Conversation
Welcome @kpiljoong! |
Hi @kpiljoong. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
/easycla |
Can one of the admins verify this patch? |
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.
@kpiljoong I like this PR thank you, this makes a lot of sense !
one thing i could think of is, in the future, if we have an addon that does NOT require kubernetes, they should be allowed. but I believe all of our current addons do require kubernetes which is fine for this PR
cmd/minikube/cmd/start.go
Outdated
// It places here because cluster config is required to get the old version. | ||
if cmd.Flags().Changed(config.AddonListFlag) { | ||
if k8sVersion == constants.NoKubernetesVersion || viper.GetBool(noKubernetes) { | ||
exit.Message(reason.Usage, "Cannot enable addons without Kubernetes") |
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.
how about add a message here that tells user what to do.
"You can not enable this addon with a cluster without Kubernetes, to re-configure your cluster with Kubernetes run this command
minikube start --no-kubernetes=false
"
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.
Much better. I appreciate it. I just re-request a review.
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 problem is --no-kubernetes=false
won't actually re-enable Kubernetes. I'd recommend we change the command to --kubernetes-version=stable
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kpiljoong The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@kpiljoong sorry for the long wait on this PR, this got lost in the review list, do you mind rebasing this PR so I could review it again? |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 50.2s 50.7s 55.5s 52.8s 52.9s Times for minikube ingress: 27.3s 27.7s 27.3s 27.3s 27.2s docker driver with docker runtime
Times for minikube start: 22.6s 22.6s 24.4s 25.0s 24.7s Times for minikube ingress: 20.8s 20.8s 21.8s 20.8s 20.8s docker driver with containerd runtime
Times for minikube start: 22.9s 23.5s 20.0s 23.1s 23.2s Times for minikube ingress: 31.4s 47.3s 31.3s 18.3s 32.4s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
Fixes #13487
Disallow accepting addons flag when no kubernetes. Also, a new output string is added.
Before:
After
Before
After