system

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis
Package testing sets environment variables for server tests.
Package testing sets environment variables for server tests.

Jump to

Keyboard shortcuts

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