Documentation ¶
Overview ¶
Example (Min) ¶
Output: apiVersion: sources.knative.dev/v1 kind: ContainerSource metadata: name: foo namespace: bar spec: sink: template: spec: containers: - name: heartbeats image: ko://knative.dev/eventing/cmd/heartbeats imagePullPolicy: IfNotPresent args: - --period=1 env: - name: POD_NAME value: heartbeats - name: POD_NAMESPACE value: bar
Example (Sink) ¶
Output: apiVersion: sources.knative.dev/v1 kind: ContainerSource metadata: name: foo namespace: bar spec: ceOverrides: extensions: ext1: val1 ext2: val2 sink: ref: kind: AKind namespace: sinknamespace name: thesink apiVersion: something.valid/v1 uri: uri/parts template: spec: containers: - name: heartbeats image: ko://knative.dev/eventing/cmd/heartbeats imagePullPolicy: IfNotPresent args: - --period=1 env: - name: POD_NAME value: heartbeats - name: POD_NAMESPACE value: bar
Index ¶
- func Gvr() schema.GroupVersionResource
- func Install(name string, opts ...manifest.CfgFn) feature.StepFn
- func IsReady(name string, timing ...time.Duration) feature.StepFn
- func WithArgs(args string) manifest.CfgFn
- func WithExtensions(extensions map[string]interface{}) manifest.CfgFn
- func WithSink(d *duckv1.Destination) manifest.CfgFn
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gvr ¶
func Gvr() schema.GroupVersionResource
func Install ¶
Install will create a ContainerSource resource, augmented with the config fn options.
func WithArgs ¶ added in v0.35.0
WithArgs add template.spec.containers.args to a ContainerSource spec.
func WithExtensions ¶
WithExtensions adds the ceOverrides related config to a ContainerSource spec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.