Documentation
¶
Index ¶
- func MakeGenericLabels(adapterName string, componentName string) labels.Set
- func NewConfigmap(name, namespace string, opts ...CmOption) *corev1.ConfigMap
- func NewKnService(name, ns string, opts ...KnSvcOption) *servingv1.Service
- func PropagateCommonLabels(object kmeta.OwnerRefable, genericLabels labels.Set) labels.Set
- type CmOption
- type KnSvcOption
- func KnSvcAnnotation(key, value string) KnSvcOption
- func KnSvcEntrypoint(command string) KnSvcOption
- func KnSvcEnvVar(name, val string) KnSvcOption
- func KnSvcEnvVars(evs ...corev1.EnvVar) KnSvcOption
- func KnSvcImage(img string) KnSvcOption
- func KnSvcLabel(labels map[string]string) KnSvcOption
- func KnSvcMountCm(cmSrc, fileDst string) KnSvcOption
- func KnSvcOwner(o kmeta.OwnerRefable) KnSvcOption
- func KnSvcPodLabels(ls labels.Set) KnSvcOption
- func KnSvcVisibility(public bool) KnSvcOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGenericLabels ¶ added in v1.15.0
MakeGenericLabels returns generic labels set.
func NewConfigmap ¶
NewConfigmap returns core configmap object.
func NewKnService ¶
func NewKnService(name, ns string, opts ...KnSvcOption) *servingv1.Service
NewKnService creates a Knative Service object.
func PropagateCommonLabels ¶ added in v1.15.0
PropagateCommonLabels adds common labels to the existing label set.
Types ¶
type KnSvcOption ¶
KnSvcOption sets Kn service options.
func KnSvcAnnotation ¶
func KnSvcAnnotation(key, value string) KnSvcOption
KnSvcAnnotation sets Kn service annotation.
func KnSvcEntrypoint ¶
func KnSvcEntrypoint(command string) KnSvcOption
KnSvcEntrypoint sets Kn service entrypoint.
func KnSvcEnvVar ¶
func KnSvcEnvVar(name, val string) KnSvcOption
KnSvcEnvVar sets the value of a Container's environment variable.
func KnSvcEnvVars ¶
func KnSvcEnvVars(evs ...corev1.EnvVar) KnSvcOption
KnSvcEnvVars sets the value of multiple environment variables.
func KnSvcLabel ¶
func KnSvcLabel(labels map[string]string) KnSvcOption
KnSvcLabel sets Kn service labels.
func KnSvcMountCm ¶
func KnSvcMountCm(cmSrc, fileDst string) KnSvcOption
KnSvcMountCm sets Kn service volume mounts.
func KnSvcOwner ¶
func KnSvcOwner(o kmeta.OwnerRefable) KnSvcOption
KnSvcOwner sets Kn service owner.
func KnSvcPodLabels ¶ added in v1.15.0
func KnSvcPodLabels(ls labels.Set) KnSvcOption
KnSvcPodLabels sets pod labels.
func KnSvcVisibility ¶
func KnSvcVisibility(public bool) KnSvcOption
KnSvcVisibility sets Kn service visibility scope.