resources

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKnService

func NewKnService(ns, name string, opts ...Option) *servingv1.Service

NewKnService creates a Knative Service object.

Types

type Option

type Option func(*servingv1.Service)

Option sets kn service options

func EnvVar

func EnvVar(name, val string) Option

EnvVar sets the value of a Container's environment variable.

func EnvVars

func EnvVars(evs ...corev1.EnvVar) Option

EnvVars sets the value of multiple environment variables.

func Image

func Image(img string) Option

Image sets a Container's image.

func KsvcLabels added in v1.15.0

func KsvcLabels(ls labels.Set) Option

KsvcLabels sets labels.

func KsvcPodLabels added in v1.15.0

func KsvcPodLabels(ls labels.Set) Option

KsvcPodLabels sets pod labels.

func Owner

func Owner(o kmeta.OwnerRefable) Option

Owner sets service owner.

Jump to

Keyboard shortcuts

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