From 8218e30ff3754b5a7e91b9ca7d692091b78ef121 Mon Sep 17 00:00:00 2001 From: Luca Lanziani Date: Tue, 29 Mar 2022 23:42:57 +0200 Subject: [PATCH] Fix: skip templating step if `describe` flag is used The describe flag is used to show the available environment variables, clusterctl should not interpolate the config when used. --- cmd/clusterctl/cmd/generate_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/clusterctl/cmd/generate_provider.go b/cmd/clusterctl/cmd/generate_provider.go index cafa3be6b1a4..51c89fa79a98 100644 --- a/cmd/clusterctl/cmd/generate_provider.go +++ b/cmd/clusterctl/cmd/generate_provider.go @@ -104,7 +104,7 @@ func runGenerateProviderComponents() error { options := client.ComponentsOptions{ TargetNamespace: gpo.targetNamespace, - SkipTemplateProcess: gpo.raw, + SkipTemplateProcess: gpo.raw || gpo.textOutput, } components, err := c.GetProviderComponents(providerName, providerType, options)