namespace

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesiredNamespace

func DesiredNamespace(contour *operatorv1alpha1.Contour) *corev1.Namespace

DesiredNamespace returns the desired Namespace resource for the provided contour.

func EnsureNamespace

func EnsureNamespace(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureNamespace ensures the namespace for the provided name exists.

func EnsureNamespaceDeleted

func EnsureNamespaceDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, error)

EnsureNamespaceDeleted ensures the namespace for the provided contour is removed, bypassing deletion if any of the following conditions apply:

  • RemoveOnDeletion is unspecified or set to false.
  • Another contour exists in the same namespace.
  • The namespace of contour matches a name in namespaceCoreList.
  • The namespace does not contain the Contour owner labels.

Returns a boolean indicating if the delete was expected to occur and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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