Documentation ¶
Overview ¶
Example ¶
package main import ( "os" "knative.dev/reconciler-test/pkg/manifest" ) func main() { images := map[string]string{} cfg := map[string]interface{}{ "name": "foo", "namespace": "bar", "selectors": map[string]string{"app": "foo"}, "image": "gcr.io/knative-samples/helloworld-go", "port": 8080, } files, err := manifest.ExecuteLocalYAML(images, cfg) if err != nil { panic(err) } manifest.OutputYAML(os.Stdout, files) }
Output: apiVersion: apps/v1 kind: Deployment metadata: name: foo namespace: bar spec: selector: matchLabels: app: foo template: metadata: labels: app: foo spec: containers: - name: user-container image: gcr.io/knative-samples/helloworld-go ports: - containerPort: 8080
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsRef ¶
func AsRef(name string) *duckv1.KReference
AsRef returns a KRef for a Deployment without namespace.
func AsTrackerReference ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.