You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CLI flag --default-options for template options. (#563)
* Add CLI flag --default-options for template options.
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
* Fix lint error
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
---------
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
Message: "cannot execute template: template: manifests:1:180: executing \"manifests\" at <.missing>: map has no entry for key \"missing\"", //nolint:dupword // ignore test output strings
1331
+
Target: fnv1.Target_TARGET_COMPOSITE.Enum(),
1332
+
},
1333
+
},
1334
+
},
1335
+
},
1336
+
},
1275
1337
"CompositeResourceReadyTrue": {
1276
1338
reason: "The Function should return desired composite resource with True ready state.",
Message: "cannot execute template: template: manifests:1:96: executing \"manifests\" at <.missing>: map has no entry for key \"missing\"", //nolint:dupword // ignore test output strings
1602
+
Message: "cannot execute template: template: manifests:1:180: executing \"manifests\" at <.missing>: map has no entry for key \"missing\"", //nolint:dupword // ignore test output strings
Copy file name to clipboardExpand all lines: main.go
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ type CLI struct {
17
17
Insecurebool`help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18
18
MaxRecvMessageSizeint`default:"4" help:"Maximum size of received messages in MB."`
19
19
DefaultSourcestring`default:"" env:"FUNCTION_GO_TEMPLATING_DEFAULT_SOURCE" help:"Default template source to use when input is not provided to the function."`
20
+
DefaultOptionsstring`default:"" env:"FUNCTION_GO_TEMPLATING_DEFAULT_OPTIONS" help:"Comma-separated default template options to use when input is not provided to the function."`
0 commit comments