resources

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 6 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 KsvcLabelVisibilityClusterLocal

func KsvcLabelVisibilityClusterLocal() Option

KsvcLabelVisibilityClusterLocal sets label to avoid exposing the service externally.

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