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) 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.