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

--wait, wait for more components #7375

Merged
merged 20 commits into from
Apr 4, 2020
Merged

Conversation

medyagh
Copy link
Member

@medyagh medyagh commented Apr 2, 2020

redoing this PR #7209
adding a new component (default service account) to wait for.
based suggestions in this comment #7209 (comment)

minikube start --wait=false: wait for nothing, same as today
minikube start --wait=responses -- default: no behavioral change from today
minikube start --wait=all -- wait for everything

minikube start --wait=true -- alias for "all" for backwards compatibility

closes #7011

Before this PR:

      --wait=true: Block until the apiserver is servicing API requests

After this PR:

      --wait=[apiserver,system_pods]: comma separated list of kuberentes components to verify and wait for after starting a cluster. defaults to "apiserver,system_pods", available options: "apiserver,system_pods,default_sa" . other acceptable values are 'all' or 'none', 'true' and 'false'

one question this PR does not solve.

do we need to respect the wait flags in a restart ?
the current minikube HEAD does not care about wait=false in a restart.

// We must ensure that the apiserver is healthy before proceeding

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 2, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 2, 2020
@medyagh medyagh requested a review from tstromberg April 2, 2020 08:01
@medyagh
Copy link
Member Author

medyagh commented Apr 2, 2020

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Apr 2, 2020
@codecov-io
Copy link

codecov-io commented Apr 2, 2020

Codecov Report

Merging #7375 into master will decrease coverage by 0.09%.
The diff coverage is 20.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7375      +/-   ##
==========================================
- Coverage   37.16%   37.07%   -0.10%     
==========================================
  Files         146      146              
  Lines        8838     8871      +33     
==========================================
+ Hits         3285     3289       +4     
- Misses       5165     5193      +28     
- Partials      388      389       +1     
Impacted Files Coverage Δ
cmd/minikube/cmd/start.go 33.67% <20.68%> (-0.67%) ⬇️
pkg/addons/addons.go 43.60% <0.00%> (-1.58%) ⬇️
pkg/minikube/driver/driver.go 62.37% <0.00%> (-0.37%) ⬇️

@minikube-pr-bot
Copy link

All Times Minikube (PR 7375): [ 62.233380 62.847805 63.416466]
All Times minikube: [ 63.476439 61.276434 62.893814]

Average minikube: 62.548896
Average Minikube (PR 7375): 62.832550

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 7375) |
+----------------------+-----------+--------------------+
| minikube v           |  0.219289 |           0.205154 |
| Creating kvm2        | 39.806416 |          40.260735 |
| Preparing Kubernetes | 20.699085 |          20.757556 |
| Pulling images       |           |                    |
| Launching Kubernetes |           |                    |
| Waiting for cluster  |           |                    |
+----------------------+-----------+--------------------+

@tstromberg tstromberg added this to the v1.10.0 milestone Apr 2, 2020
Copy link
Contributor

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I really am looking forward to this PR merging.

cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
pkg/minikube/bootstrapper/bsutil/kverify/api_server.go Outdated Show resolved Hide resolved
pkg/minikube/bootstrapper/bsutil/kverify/default_sa.go Outdated Show resolved Hide resolved
pkg/minikube/bootstrapper/bsutil/kverify/kverify.go Outdated Show resolved Hide resolved
pkg/minikube/bootstrapper/bsutil/kverify/kverify.go Outdated Show resolved Hide resolved
Copy link

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Mostly just nits

cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
@TravisBuddy
Copy link

Travis tests have failed

Hey @medyagh,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 77e11f90-754f-11ea-a262-9b801104bb86

@minikube-pr-bot
Copy link

All Times minikube: [ 60.830296 63.130888 64.764703]
All Times Minikube (PR 7375): [ 63.257593 64.842987 63.754107]

Average minikube: 62.908629
Average Minikube (PR 7375): 63.951562

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 7375) |
+----------------------+-----------+--------------------+
| minikube v           |  0.224415 |           0.216883 |
| Creating kvm2        | 40.986785 |          40.721300 |
| Preparing Kubernetes | 19.652886 |          20.755679 |
| Pulling images       |           |                    |
| Launching Kubernetes |           |                    |
| Waiting for cluster  |           |                    |
+----------------------+-----------+--------------------+

@TravisBuddy
Copy link

Travis tests have failed

Hey @medyagh,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 5f9af3e0-7552-11ea-a6fd-7b7c169fd25a

@minikube-pr-bot
Copy link

All Times minikube: [ 64.694873 61.668277 64.207778]
All Times Minikube (PR 7375): [ 63.725912 65.039639 62.171837]

Average minikube: 63.523643
Average Minikube (PR 7375): 63.645796

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 7375) |
+----------------------+-----------+--------------------+
| minikube v           |  0.220018 |           0.219516 |
| Creating kvm2        | 40.453290 |          40.608629 |
| Preparing Kubernetes | 21.036879 |          21.006374 |
| Pulling images       |           |                    |
| Launching Kubernetes |           |                    |
| Waiting for cluster  |           |                    |
+----------------------+-----------+--------------------+

@TravisBuddy
Copy link

Travis tests have failed

Hey @medyagh,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: a4a36080-7552-11ea-a6fd-7b7c169fd25a

@minikube-pr-bot
Copy link

All Times Minikube (PR 7375): [ 69.902014 70.012129 66.463619]
All Times minikube: [ 73.725072 65.425998 66.985389]

Average minikube: 68.712153
Average Minikube (PR 7375): 68.792587

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 7375) |
+----------------------+-----------+--------------------+
| minikube v           |  0.250965 |           0.250450 |
| Creating kvm2        | 41.445377 |          40.988754 |
| Preparing Kubernetes | 24.052262 |          25.424862 |
| Pulling images       |           |                    |
| Launching Kubernetes |           |                    |
| Waiting for cluster  |           |                    |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 73.455079 65.806522 65.998293]
All Times Minikube (PR 7375): [ 66.088075 69.194314 63.785776]

Average minikube: 68.419964
Average Minikube (PR 7375): 66.356055

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 7375) |
+----------------------+-----------+--------------------+
| minikube v           |  0.264068 |           0.236505 |
| Creating kvm2        | 42.979925 |          40.978347 |
| Preparing Kubernetes | 23.094413 |          22.813583 |
| Pulling images       |           |                    |
| Launching Kubernetes |           |                    |
| Waiting for cluster  |           |                    |
+----------------------+-----------+--------------------+

@medyagh medyagh merged commit f65f925 into kubernetes:master Apr 4, 2020
@medyagh medyagh deleted the wait_sa2 branch May 2, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

discuss: minikube wait for default service accont ?
7 participants