Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyEnvironmentToDeployment(namespace, name string, env map[string]string, c client.Client) error
- func Configure(ks *servingv1alpha1.KnativeServing, cm, key, value string) bool
- func IngressNamespace(servingNamespace string) string
- func Mutate(ks *servingv1alpha1.KnativeServing, c client.Client) error
- func MutateEventing(ke *eventingv1alpha1.KnativeEventing, c client.Client) error
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
IngressNamespace returns namespace where ingress is deployed.
func Mutate ¶
func Mutate(ks *servingv1alpha1.KnativeServing, c client.Client) error
func MutateEventing ¶ added in v1.7.2
func MutateEventing(ke *eventingv1alpha1.KnativeEventing, c client.Client) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.