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 661ffbd
Show file tree
Hide file tree
Showing 2 changed files with 12 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
3 changes: 3 additions & 0 deletions pkg/skaffold/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ type SkaffoldOptions struct {
MinikubeProfile string
RepoCacheDir string
WaitForDeletions WaitForDeletions

// Experimental is the entrypoint to run skaffold v3 before it's fully implemented.
Experimental bool
}

type RunMode string
Expand Down

0 comments on commit 661ffbd

Please sign in to comment.