Skip to content

Commit 3ca9f50

Browse files
feat(diagnose): default --enable-templating to true
Google Cloud Deploy generates the effective Skaffold config during its render phase by invoking `skaffold diagnose` without passing --enable-templating=true, so deploy parameters from the execution environment were never interpolated into templated config fields. Flip the flag default to true so templating is applied by default while still allowing users to opt out with --enable-templating=false. Regenerate the CLI reference docs to reflect the new default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 95531aa commit 3ca9f50

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/skaffold/app/cmd/diagnose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewCmdDiagnose() *cobra.Command {
5757
WithCommonFlags().
5858
WithFlags([]*Flag{
5959
{Value: &yamlOnly, Name: "yaml-only", DefValue: false, Usage: "Only prints the effective skaffold.yaml configuration"},
60-
{Value: &enableTemplating, Name: "enable-templating", DefValue: false, Usage: "Render supported templated fields with golang template engine"},
60+
{Value: &enableTemplating, Name: "enable-templating", DefValue: true, Usage: "Render supported templated fields with golang template engine"},
6161
{Value: &outputFile, Name: "output", Shorthand: "o", DefValue: "", Usage: "File to write diagnose result"},
6262
}).
6363
NoArgs(doDiagnose)

docs-v2/content/en/docs/references/cli/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ Options:
13301330
-c, --config='':
13311331
File for global configurations (defaults to $HOME/.skaffold/config)
13321332
1333-
--enable-templating=false:
1333+
--enable-templating=true:
13341334
Render supported templated fields with golang template engine
13351335
13361336
-f, --filename='skaffold.yaml':

0 commit comments

Comments
 (0)