environment

package
v1.57.12 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

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

Environment is the aggregate-root for manipulating RadixEnvironments

func NewEnvironment

func NewEnvironment(
	kubeclient kubernetes.Interface,
	kubeutil *kube.Kube,
	radixclient radixclient.Interface,
	config *v1.RadixEnvironment,
	regConfig *v1.RadixRegistration,
	appConfig *v1.RadixApplication,
	networkPolicy *networkpolicy.NetworkPolicy) (Environment, error)

NewEnvironment is the constructor for Environment

func (*Environment) ApplyAdGroupRoleBinding

func (env *Environment) ApplyAdGroupRoleBinding(ctx context.Context, namespace string) error

ApplyAdGroupRoleBinding grants access to environment namespace

func (*Environment) ApplyLimitRange

func (env *Environment) ApplyLimitRange(ctx context.Context, namespace string) error

ApplyLimitRange sets resource usage limits to provided namespace

func (*Environment) ApplyNamespace

func (env *Environment) ApplyNamespace(ctx context.Context, name string) error

ApplyNamespace sets up namespace metadata and applies configuration to kubernetes

func (*Environment) ApplyRadixPipelineRunnerRoleBinding added in v1.30.0

func (env *Environment) ApplyRadixPipelineRunnerRoleBinding(ctx context.Context, namespace string) error

func (*Environment) AsOwnerReference

func (env *Environment) AsOwnerReference() []metav1.OwnerReference

AsOwnerReference creates an OwnerReference to this environment object

func (*Environment) GetConfig added in v1.7.8

func (env *Environment) GetConfig() *v1.RadixEnvironment

func (*Environment) OnSync

func (env *Environment) OnSync(ctx context.Context, time metav1.Time) error

OnSync is called by the handler when changes are applied and must be reconciled with current state.

Jump to

Keyboard shortcuts

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