New 🌊 wave for @helm

Commit a667743f

a667743f9c94Merged

Dmitriy Zhilyaev <[email protected]> · 5 years ago · 13 files · +1 added · ~12 modified

Description

Merge pull request #111 from helmwave/feature_flags

Add feature flag for planning dependencies

Details

Commit
a667743f9c94
Parent
9c550604511c
Merge parent
64b981e31a81

cmd/helmwave/flags.gomodifiedView file

@@ -1,6 +1,7 @@
11 package main
22
33 import (
4+ "github.com/helmwave/helmwave/pkg/feature"
45 "github.com/helmwave/helmwave/pkg/helmwave"
56 "github.com/urfave/cli/v2"
67 "time"
@@ -42,7 +43,7 @@
4243 Usage: "It allows you call `helm install` in parallel mode ",
4344 Value: true,
4445 EnvVars: []string{"HELMWAVE_PARALLEL"},
45- Destination: &app.Parallel,
46+ Destination: &feature.Parallel,
4647 },
4748 //&cli.BoolFlag{
4849 // Name: "force",
@@ -82,7 +83,7 @@
8283 Usage: "Enable/Disable kubedog",
8384 Value: false,
8485 EnvVars: []string{"HELMWAVE_KUBEDOG", "HELMWAVE_KUBEDOG_ENABLED"},
85- Destination: &app.Kubedog.Enabled,
86+ Destination: &feature.Kubedog,
8687 },
8788 &cli.DurationFlag{
8889 Name: "kubedog-status-interval",
@@ -117,7 +118,14 @@
117118 Usage: "Enable dependencies",
118119 Value: false,
119120 EnvVars: []string{"HELMWAVE_ENABLE_DEPENDENCIES"},
120- Destination: &app.Yml.EnableDependencies,
121+ Destination: &feature.Dependencies,
122+ },
123+ &cli.BoolFlag{
124+ Name: "plan-dependencies",
125+ Usage: "Automatically add dependencies to plan",
126+ Value: false,
127+ EnvVars: []string{"HELMWAVE_PLAN_DEPENDENCIES"},
128+ Destination: &feature.PlanDependencies,
121129 },
122130 }
123131 }