Skip to content

Commit

Permalink
[V3] Add flag as v3 entrypoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed Apr 16, 2021
1 parent 4e67ac7 commit 4095815
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,15 @@ var flagRegistry = []Flag{
DefinedOn: []string{"debug", "dev", "run"},
IsEnum: true,
},
{
Name: "v3",
Usage: "Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.",
Value: &opts.Experimental,
DefValue: false,
FlagAddMethod: "BoolVar",
DefinedOn: []string{"apply", "debug", "deploy", "dev", "run"},
IsEnum: true,
},
}

func methodNameByType(v reflect.Value) string {
Expand Down
2 changes: 2 additions & 0 deletions pkg/skaffold/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ type SkaffoldOptions struct {
// label isn't available.
AddSkaffoldLabels bool
DetectMinikube bool
// Experimental is the entrypoint to run skaffold v3 before it's fully implemented.
Experimental bool

PortForward PortForwardOptions
CustomTag string
Expand Down

0 comments on commit 4095815

Please sign in to comment.