-
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
Move program data files onto persistent storage #5032
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tstromberg 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 |
haven't reviewed yet but form the smells of it I could tell this is amazing ! |
one lint
|
the fail for none test seems to be related to this PR: as I haven't seen it else where:
|
/retest this please |
Current failures:
I suspect that these are flakes, but it worries me to see multiple TestVersionUpgrade failures, especially as the etcd folder has moved, so I will confirm locally. |
|
pkg/minikube/constants/constants.go
Outdated
// AddonsPath is the default path of the addons configuration | ||
const AddonsPath = "/etc/kubernetes/addons" | ||
// GetProfileFile returns the Minikube profile config file | ||
func GetProfileFile(profile string, miniHome ...string) string { |
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.
Maybe rename to ProfileFile(...)
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.
These unused functions must have been added by a bad merge. Removing.
pkg/minikube/constants/constants.go
Outdated
// FilesPath is the default path of files | ||
const FilesPath = "/files" | ||
// GetProfilePath returns the Minikube profile path of config file | ||
func GetProfilePath(profile string, miniHome ...string) string { |
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.
Same here, get rid of Get..
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: bee3bcf0-c473-11e9-9094-9f1a962f5d6e |
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: 35c38fd0-c474-11e9-9094-9f1a962f5d6e |
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: 71084a90-c474-11e9-9094-9f1a962f5d6e |
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: 6189cf70-c475-11e9-9094-9f1a962f5d6e |
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: bc99eca0-c476-11e9-9094-9f1a962f5d6e |
Travis tests have failedHey @tstromberg, 1st Buildmake test
TravisBuddy Request Identifier: 28a41250-c480-11e9-9094-9f1a962f5d6e |
awww thanks @TravisBuddy |
Unrelated flakes, merging. |
With this PR,
minikube start
is about 2 seconds slower on my MacBook Pro. There will be a follow-up PR that substantially increases performance by reusing these files rather than overwriting them each run, but I wanted to keep this PR on the smaller side.Notable Changes
/var/lib/minikube/binaries
(persistent) rather than/usr/bin
/var/lib/minikube/images
(persistent) rather than/tmp
/var/lib/minikube/etcd
instead of/data/minikube
- leaving/data
entirely for user data.sshrunner.Copy
no longer removes targets, leaving room for the future persistence PR. It's also been simplified using errgroup.constants.AddonsPath -> constants.GuestAddonsDir
)This PR closes #4097 and #3718
This PR helps with #3760 - but more work remains.