Documentation ¶
Index ¶
- Constants
- func CmData(data string) cmOption
- func CmLabel(labels map[string]string) cmOption
- func CmOwner(o kmeta.OwnerRefable) cmOption
- func KnSvcAnnotation(key, value string) knSvcOption
- func KnSvcEntrypoint(command string) knSvcOption
- func KnSvcEnvFromMap(prefix string, vars map[string]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 KnSvcVisibility(public bool) knSvcOption
- func NewConfigmap(name, namespace string, opts ...cmOption) *corev1.ConfigMap
- func NewKnService(name, ns string, opts ...knSvcOption) *servingv1.Service
Constants ¶
View Source
const DefaultCmKey = "code"
View Source
const (
MountPath = "/opt"
)
Variables ¶
This section is empty.
Functions ¶
func CmOwner ¶
func CmOwner(o kmeta.OwnerRefable) cmOption
func KnSvcAnnotation ¶
func KnSvcAnnotation(key, value string) knSvcOption
func KnSvcEntrypoint ¶
func KnSvcEntrypoint(command string) knSvcOption
func KnSvcEnvFromMap ¶ added in v1.8.1
func KnSvcEnvVar ¶
func KnSvcEnvVar(name, val string) knSvcOption
EnvVar sets the value of a Container's environment variable.
func KnSvcEnvVars ¶
EnvVars sets the value of multiple environment variables.
func KnSvcLabel ¶
func KnSvcMountCm ¶
func KnSvcMountCm(cmSrc, fileDst string) knSvcOption
func KnSvcOwner ¶
func KnSvcOwner(o kmeta.OwnerRefable) knSvcOption
func KnSvcVisibility ¶
func KnSvcVisibility(public bool) knSvcOption
func NewConfigmap ¶
func NewKnService ¶
NewKnService creates a Knative Service object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.