kubernetes

package
v0.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Infra

type Infra struct {
	Client client.Client

	// Namespace is the Namespace used for managed infra.
	Namespace string
}

Infra manages the creation and deletion of Kubernetes infrastructure based on Infra IR resources.

func NewInfra

func NewInfra(cli client.Client) *Infra

NewInfra returns a new Infra.

func (*Infra) CreateInfra

func (i *Infra) CreateInfra(ctx context.Context, infra *ir.Infra) error

CreateInfra creates the managed kube infra, if it doesn't exist.

func (*Infra) DeleteInfra

func (i *Infra) DeleteInfra(ctx context.Context, infra *ir.Infra) error

DeleteInfra removes the managed kube infra, if it doesn't exist.

Jump to

Keyboard shortcuts

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