feat: allow --validate on sync command
This will permit usage of `--validate` options with sync command Signed-off-by: Grégory SANCHEZ <gregory.sanchez@icloud.com>
This commit is contained in:
parent
34a431f5f2
commit
62747378ca
4
main.go
4
main.go
|
|
@ -441,6 +441,10 @@ func main() {
|
|||
Name: "include-transitive-needs",
|
||||
Usage: `like --include-needs, but also includes transitive needs (needs of needs). Does nothing when when --selector/-l flag is not provided. Overrides exclusions of other selectors and conditions.`,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "validate",
|
||||
Usage: "validate your manifests against the Kubernetes cluster you are currently pointing at. Note that this requiers access to a Kubernetes cluster to obtain information necessary for validating, like the list of available API versions",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "wait",
|
||||
Usage: `Override helmDefaults.wait setting "helm upgrade --install --wait"`,
|
||||
|
|
|
|||
|
|
@ -363,6 +363,7 @@ func (a *App) Sync(c SyncConfigProvider) error {
|
|||
WaitForJobs: c.WaitForJobs(),
|
||||
IncludeCRDs: &includeCRDs,
|
||||
IncludeTransitiveNeeds: c.IncludeTransitiveNeeds(),
|
||||
Validate: c.Validate(),
|
||||
}, func() {
|
||||
ok, errs = a.sync(run, c)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ type SyncConfigProvider interface {
|
|||
Wait() bool
|
||||
WaitForJobs() bool
|
||||
|
||||
Validate() bool
|
||||
|
||||
SkipNeeds() bool
|
||||
IncludeNeeds() bool
|
||||
IncludeTransitiveNeeds() bool
|
||||
|
|
|
|||
Loading…
Reference in New Issue