namespacemanager

package
v0.0.0-...-8766ec0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INamespaceManager

type INamespaceManager interface {
	CreateNamespaceIfNotExists(nsName string) error
	InjectIstio(project string, stage string) error
}

INamespaceManager defines operations for initializing and configuring namespaces

type NamespaceManager

type NamespaceManager struct {
	// contains filtered or unexported fields
}

NamespaceManager is an implementation of INamespaceManager

func NewNamespaceManager

func NewNamespaceManager(logger keptn.LoggerInterface) *NamespaceManager

NewNamespaceManager creates a new instance of a NamespaceManager

func (*NamespaceManager) CreateNamespaceIfNotExists

func (p *NamespaceManager) CreateNamespaceIfNotExists(nsName string) error

InitNamespaces initializes namespaces if they do not exist yet

func (*NamespaceManager) InjectIstio

func (p *NamespaceManager) InjectIstio(project string, stage string) error

InjectIstio injects Istio into the namespace used for the project and stage by adding the label istio-injection

Jump to

Keyboard shortcuts

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