Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 18

Documentation

Index

Constants

View Source
const (
	ServingOwnerName      = "serving.knative.openshift.io/ownerName"
	ServingOwnerNamespace = "serving.knative.openshift.io/ownerNamespace"
)

Annotation keys being used to tag the owned resources by instance

View Source
const (
	// defaultDomainTemplate is a value for domainTemplate in config-network.
	// As Knative on OpenShift uses OpenShift's wildcard cert the domain level must have "<sub>.domain", not "<sub1>.<sub2>.domain".
	DefaultDomainTemplate = "{{.Name}}-{{.Namespace}}.{{.Domain}}"

	// defaultIngressClass is a value for ingress.class in config-network.
	DefaultIngressClass = "kourier.ingress.networking.knative.dev"
)

Variables

View Source
var Log = logf.Log.WithName("knative").WithName("openshift")

Functions

func ApplyEnvironmentToDeployment added in v1.7.2

func ApplyEnvironmentToDeployment(namespace, name string, env map[string]string, c client.Client) error

ApplyEnvironmentToDeployment adds/removes the specified values in the map to the environment variables of the specified deployment. NotFound errors are ignored.

func Configure

func Configure(ks *servingv1alpha1.KnativeServing, cm, key, value string) bool

Configure is a helper to set a value for a key, potentially overriding existing contents.

func IngressNamespace added in v1.7.2

func IngressNamespace(servingNamespace string) string

IngressNamespace returns namespace where ingress is deployed.

func MutateEventing added in v1.7.2

func MutateEventing(ke *eventingv1alpha1.KnativeEventing, c client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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