kubernetes

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvoyPodSelector

func EnvoyPodSelector() *metav1.LabelSelector

EnvoyPodSelector returns a label selector using "control-plane: envoy-gateway" as the key/value pair.

TODO: Update k/v pair to use gatewayclass controller name to distinguish between

multiple Envoy Gateways.

Types

type Infra

type Infra struct {
	Client client.Client
	// Namespace is the Namespace used for managed infra.
	Namespace string
	Resources *Resources
	// contains filtered or unexported fields
}

Infra holds all the translated Infra IR resources and provides the scaffolding for the managing Kubernetes infrastructure.

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.

type Resources

type Resources struct {
	ServiceAccount *corev1.ServiceAccount
	Deployment     *appsv1.Deployment
	Service        *corev1.Service
}

Resources are managed Kubernetes resources.

Jump to

Keyboard shortcuts

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