objects

package
v1.23.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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// XDSPort is the network port number of Contour's xDS service.
	XDSPort = int32(8001)
	// EnvoyInsecureContainerPort is the network port number of Envoy's insecure listener.
	EnvoyInsecureContainerPort = int32(8080)
	// EnvoySecureContainerPort is the network port number of Envoy's secure listener.
	EnvoySecureContainerPort = int32(8443)
)

Variables

This section is empty.

Functions

func EnsureObject added in v1.23.0

func EnsureObject(
	ctx context.Context,
	cli client.Client,
	contour *model.Contour,
	desired client.Object,
	getter ObjectGetter,
	updater ObjectUpdater) error

EnsureObject ensures that an object with the given namespace and name is created or updated

func EnsureObjectDeleted added in v1.23.0

func EnsureObjectDeleted(ctx context.Context, cli client.Client, contour *model.Contour, name string, getter ObjectGetter) error

EnsureObjectDeleted ensures that an object with the given namespace and name is deleted if Contour owner labels exist.

func NewUnprivilegedPodSecurity

func NewUnprivilegedPodSecurity() *corev1.PodSecurityContext

NewUnprivilegedPodSecurity makes a a non-root PodSecurityContext object using 65534 as the user and group ID.

Types

type ObjectGetter added in v1.23.0

type ObjectGetter func(ctx context.Context, cli client.Client, namespace, name string) (client.Object, error)

ObjectGetter gets an object given a namespace and name.

type ObjectUpdater added in v1.23.0

type ObjectUpdater func(ctx context.Context, cli client.Client, contour *model.Contour, current, desired client.Object) error

ObjectUpdater update the current resource to desired if need.

Jump to

Keyboard shortcuts

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