Skip to content

Commit

Permalink
config fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Dec 13, 2024
1 parent 1103653 commit d2893a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Execute(providerFactory *factory.ProviderFactory, scenarioOrchestrator *sce
runCmd.LocalFlags().String("alerts-profile", "", "custom alerts profile file path")
runCmd.LocalFlags().String("metrics-profile", "", "custom metrics profile file path")
runCmd.LocalFlags().Bool("detached", false, "if set this flag will run in detached mode")
runCmd.LocalFlags().Bool("debug", false, "if set this flag will enable debug output in krkn")

runCmd.DisableFlagParsing = true
rootCmd.AddCommand(runCmd)

Expand All @@ -66,7 +66,6 @@ func Execute(providerFactory *factory.ProviderFactory, scenarioOrchestrator *sce
graphRunCmd.Flags().String("kubeconfig", "", "kubeconfig path (if not set will default to ~/.kube/config)")
graphRunCmd.Flags().String("alerts-profile", "", "custom alerts profile file path")
graphRunCmd.Flags().String("metrics-profile", "", "custom metrics profile file path")
graphRunCmd.Flags().Bool("debug", false, "if set this flag will enable debug output in krkn")

graphScaffoldCmd := NewGraphScaffoldCommand(providerFactory, config)
graphScaffoldCmd.Flags().Bool("global-env", false, "if set this flag will add global environment variables to each scenario in the graph")
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"label_input_fields": "krknctl.input_fields",
"label_title_regex": "LABEL krknctl\\.title=\\\"?(.*)\\\"?",
"label_description_regex": "LABEL krknctl\\.description=\\\"?(.*)\\\"?",
"label_input_fields_regex": "LABEL krknctl\\.input_fields=\\'?(\\[.*\\])\\'?",
"label_input_fields_regex": "LABEL krknctl\\.input_fields=\\'?(\\[.*\\])\\'?"
}

0 comments on commit d2893a7

Please sign in to comment.