Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( // NamespaceEnvKey is the environment variable that holds kf's namespace. NamespaceEnvKey = "SYSTEM_NAMESPACE" // KnativeServingNamespaceEnvKey is the environment variable that holds // the knative serving namespace. KnativeServingNamespaceEnvKey = "KNATIVE_SERVING_NAMESPACE" )
Variables ¶
This section is empty.
Functions ¶
func KnativeServingNamespace ¶
func KnativeServingNamespace() string
KnativeServingNamespace holds the K8s namespace where our serving system components run.
Example ¶
package main
import (
"fmt"
"github.com/google/kf/pkg/system"
_ "github.com/google/kf/pkg/system/testing"
)
func main() {
fmt.Println(system.KnativeServingNamespace())
}
Output: knative-serving-testing
func Namespace ¶
func Namespace() string
Namespace holds the K8s namespace where our serving system components run.
Example ¶
package main
import (
"fmt"
"github.com/google/kf/pkg/system"
_ "github.com/google/kf/pkg/system/testing"
)
func main() {
fmt.Println(system.Namespace())
}
Output: kf-testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.