Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 21 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) CreateOrUpdateInfra

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

CreateOrUpdateInfra 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