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

hidden --minikube-profile flag #3691

Merged

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Feb 15, 2020

This is a tactical move until we fix properly #3668.

It adds a hidden --minikube-profile flag that forces skaffold to use the given profile's docker daemon for building, and hence will default to not pushing.

(Apologies for no tests.)

@codecov
Copy link

codecov bot commented Feb 15, 2020

Codecov Report

Merging #3691 into master will decrease coverage by 0.01%.
The diff coverage is 62.5%.

Impacted Files Coverage Δ
pkg/skaffold/config/options.go 100% <ø> (ø) ⬆️
pkg/skaffold/build/local/types.go 69.44% <100%> (ø) ⬆️
cmd/skaffold/app/cmd/flags.go 100% <100%> (ø) ⬆️
pkg/skaffold/config/util.go 70.53% <33.33%> (-1.29%) ⬇️
pkg/skaffold/docker/client.go 72.54% <63.63%> (-1.19%) ⬇️
...affold/kubernetes/portforward/kubectl_forwarder.go 65.85% <0%> (-2.44%) ⬇️
pkg/skaffold/schema/versions.go 73.07% <0%> (ø) ⬆️
pkg/skaffold/schema/v2alpha3/config.go 100% <0%> (ø)
pkg/skaffold/schema/v2alpha3/upgrade.go 77.77% <0%> (ø)
pkg/skaffold/deploy/kustomize.go 72.5% <0%> (+0.87%) ⬆️

Copy link
Contributor

@dgageot dgageot left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

@@ -261,6 +261,15 @@ var FlagRegistry = []Flag{
FlagAddMethod: "StringVar",
DefinedOn: []string{"build", "debug", "dev", "run"},
},
{
Name: "minikube-profile",
Shorthand: "m",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Do we really need a shorthand for a hidden flag?

@dgageot dgageot self-assigned this Feb 18, 2020
@balopat balopat merged commit 987ec17 into GoogleContainerTools:master Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants