istio: Index | Files

package namespace

import ""


Package Files

kube.go namespace.go native.go

type Config Uses

type Config struct {
    Prefix                  string            // prefix to use for autogenerated namespace name
    Inject                  bool              // whether to add sidecar injection label to this namespace
    CustomInjectorNamespace string            // namespace of custom injector instance
    Labels                  map[string]string // arbitrary labels to be applied to namespace

Config contains configuration information about the namespace instance

type Instance Uses

type Instance interface {
    Name() string

Instance represents an allocated namespace that can be used to create config, or deploy components in.

func Claim Uses

func Claim(ctx resource.Context, name string) (i Instance, err error)

Claim an existing namespace, or create a new one if doesn't exist.

func ClaimOrFail Uses

func ClaimOrFail(t test.Failer, ctx resource.Context, name string) Instance

ClaimOrFail calls Claim and fails test if it returns error

func ClaimSystemNamespace Uses

func ClaimSystemNamespace(ctx resource.Context) (Instance, error)

ClaimSystemNamespace retrieves the namespace for the Istio system components from the environment.

func ClaimSystemNamespaceOrFail Uses

func ClaimSystemNamespaceOrFail(t test.Failer, ctx resource.Context) Instance

ClaimSystemNamespaceOrFail calls ClaimSystemNamespace, failing the test if an error occurs.

func New Uses

func New(ctx resource.Context, nsConfig Config) (i Instance, err error)

New creates a new Namespace.

func NewOrFail Uses

func NewOrFail(t test.Failer, ctx resource.Context, nsConfig Config) Instance

NewOrFail calls New and fails test if it returns error

Package namespace imports 14 packages (graph) and is imported by 16 packages. Updated 2019-08-27. Refresh now. Tools for package owners.