Documentation ¶
Overview ¶
Example (WithData) ¶
ctx := testlog.NewContext() images := map[string]string{} cfg := map[string]interface{}{ "name": "foo", "namespace": "bar", } WithData("ca.crt", "x\nx")(cfg) WithLabels(map[string]string{"a": "b"})(cfg) files, err := manifest.ExecuteYAML(ctx, yaml, images, cfg) if err != nil { panic(err) } manifest.OutputYAML(os.Stdout, files)
Output: apiVersion: v1 kind: ConfigMap metadata: name: foo namespace: bar labels: a: "b" data: ca.crt: |- x x
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WithLabels = manifest.WithLabels
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.