namespace

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 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(Sesame *operatorv1alpha1.Sesame) *corev1.Namespace

DesiredNamespace returns the desired Namespace resource for the provided sesame.

func EnsureNamespace

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

EnsureNamespace ensures the namespace for the provided name exists.

func EnsureNamespaceDeleted

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

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

  • RemoveOnDeletion is unspecified or set to false.
  • Another sesame exists in the same namespace.
  • The namespace of sesame matches a name in namespaceCoreList.
  • The namespace does not contain the Sesame 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