containersource

package
v0.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Example (Full)
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: bar
      name: thesink
      apiVersion: something.valid/v1
    uri: uri/parts
  template:
    spec:
      containers:
      - name: heartbeats
        image: ko://knative.dev/eventing/test/test_images/heartbeats
        args:
        - --period=1
        env:
        - name: POD_NAME
          value: heartbeats
        - name: POD_NAMESPACE
          value: bar
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/test/test_images/heartbeats
        args:
        - --period=1
        env:
        - name: POD_NAME
          value: heartbeats
        - name: POD_NAMESPACE
          value: bar

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gvr

func Install

func Install(name string, opts ...manifest.CfgFn) feature.StepFn

Install will create a ContainerSource resource, augmented with the config fn options.

func IsReady

func IsReady(name string, timing ...time.Duration) feature.StepFn

IsReady tests to see if a ContainerSource becomes ready within the time given.

func WithExtensions

func WithExtensions(extensions map[string]interface{}) manifest.CfgFn

WithExtensions adds the ceOverrides related config to a ContainerSource spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL