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 ¶
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.
Click to show internal directories.
Click to hide internal directories.