Skip to content
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

Automatically set flags for MINIKUBE_ prefixed env vars #4607

Merged
merged 4 commits into from
Aug 2, 2019

Conversation

dfang
Copy link
Contributor

@dfang dfang commented Jun 26, 2019

minikube start respects MINIKUBE_ prefixed envs for now.

eg. if you want to config registry mirror, you can minikube start --registry-mirror or export MINIKUBE_REGISTRY_MIRROR, as well, --image-mirror-country, --image-repository, can be exported as MINIKUBE_IMAGE_REPOSITORY and MINIKUBE_IMAGE_MIRROR_COUNTRY ...

and these args and envs should be on documentation, this really can save a lot of time for chinese who struggles on pulling images, especially these two new args (--image-mirror-country, --image-repository), they are not in release notes, i don't know them until read the source, this is for people don't run minikube start -h on every new release .

btw, i can help on this documentation, this is very helpful for new users in China

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 26, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @dfang. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 26, 2019
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 26, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dfang
To complete the pull request process, please assign tstromberg
You can assign the PR to them by writing /assign @tstromberg in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@RA489
Copy link

RA489 commented Jun 26, 2019

@minikube-bot OK to test

@dfang
Copy link
Contributor Author

dfang commented Jun 26, 2019

/assign @tstromberg

@RA489
Copy link

RA489 commented Jul 1, 2019

@minikube-bot OK to test

@dfang
Copy link
Contributor Author

dfang commented Jul 2, 2019

@minikube-bot ok to test

@dfang
Copy link
Contributor Author

dfang commented Jul 5, 2019

/retest

@k8s-ci-robot
Copy link
Contributor

@dfang: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@dfang
Copy link
Contributor Author

dfang commented Jul 5, 2019

@RA489 @balopat the first ci test is failed, how can i check the log ?

@RA489
Copy link

RA489 commented Jul 9, 2019

@dfang
Copy link
Contributor Author

dfang commented Jul 9, 2019

02:33:51 | ! W0701 02:33:51.758826   12290 exit.go:100] Error restarting cluster: addon phase: running command: sudo kubeadm init phase addon all --config /var/lib/kubeadm.yaml: exit status 1
 02:33:51 | ! X Error restarting cluster: addon phase: running command: sudo kubeadm init phase addon all --config /var/lib/kubeadm.yaml: exit status 1
 02:33:51 | > * Problems detected in "kube-apiserver":
 02:33:51 | ! * Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
 02:33:51 | !   - https://github.com/kubernetes/minikube/issues/new
 02:33:51 | >   - error: failed to create listener: failed to listen on 0.0.0.0:8443: listen tcp 0.0.0.0:8443: bind: address already in use
 02:33:51 | > * Problems detected in "kube-addon-manager":
 02:33:51 | >   - error: unable to recognize "STDIN": Get https://localhost:8443/api?timeout=32s: dial tcp [::1]:8443: connect: connection refused
 02:33:51 | >   - error: error when retrieving current configuration of:
--- FAIL: TestVersionUpgrade (143.70s)
    util.go:130: Error running command: start --vm-driver=none  --v=10 --logtostderr --bootstrapper=kubeadm --kubernetes-version=1.15.0 --alsologtostderr --v=2 . Output: * minikube v1.2.0 on linux (amd64)
        * minikube will upgrade the local cluster from Kubernetes 1.10.13 to 1.15.0
        * Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
        * Restarting existing none VM for "minikube" ...
        * Waiting for SSH access ...
        * Configuring environment for Kubernetes v1.15.0 on Docker 18.06.1-ce
        * Pulling images ...
        * Relaunching Kubernetes v1.15.0 using kubeadm ... 
        * Problems detected in "kube-apiserver":
          - error: failed to create listener: failed to listen on 0.0.0.0:8443: listen tcp 0.0.0.0:8443: bind: address already in use
        * Problems detected in "kube-addon-manager":
          - error: unable to recognize "STDIN": Get https://localhost:8443/api?timeout=32s: dial tcp [::1]:8443: connect: connection refused
          - error: error when retrieving current configuration of:

why this pr can pass driver-hyperkit、driver-kvm2 but not driver-none ?

can you rerun the test ?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 11, 2019
@tstromberg
Copy link
Contributor

Looks good once merge conflict is addressed.

@RA489
Copy link

RA489 commented Jul 18, 2019

@dfang Please rebase.

@dfang
Copy link
Contributor Author

dfang commented Jul 22, 2019

@RA489 Hi, Rebase on which branch ?

~/src/OSS/GITHUB/minikube λ  gb
  develop
* feature/better_minikube_status
  feature/registry_mirror_env
  feature/remove_logrus
  master

i use git-flow to keep feature branches, how to keep a clean history in this scenario ?

Thanks

@RA489
Copy link

RA489 commented Jul 22, 2019

@dfang please allign your local branch feature/registry_mirror_env with latest master branch.

@dfang dfang force-pushed the feature/registry_mirror_env branch from 46a39ce to 1b5f71c Compare July 22, 2019 03:09
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2019
@dfang
Copy link
Contributor Author

dfang commented Jul 22, 2019

/retest

@k8s-ci-robot
Copy link
Contributor

@dfang: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@RA489
Copy link

RA489 commented Jul 22, 2019

@minikube-bot OK to test

@dfang dfang force-pushed the feature/registry_mirror_env branch from 1b5f71c to 05ee40f Compare July 22, 2019 03:27
@dfang
Copy link
Contributor Author

dfang commented Jul 23, 2019

@RA489 jenkins build failed, no idea on how to fix. can you help ?

@tstromberg tstromberg changed the title Minikube start respects MINIKUBE_ prefixed env now Automatically set flags for MINIKUBE_ prefixed env vars Aug 2, 2019
@tstromberg tstromberg merged commit ae9f406 into kubernetes:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants