Documentation
¶
Index ¶
- Variables
- func ValidateCRDDeletion(c client.Client, obj metav1.Object, gvk schema.GroupVersionKind) error
- func ValidateIngressDeletion(obj metav1.Object) error
- func ValidateNamespaceDeletion(c client.Client, namespace *v1.Namespace) error
- func ValidateServiceDeletion(service *v1.Service) error
- func ValidateWorkloadDeletion(obj metav1.Object, replicas *int32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NamespaceDeletionProtectionMetrics = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "namespace_deletion_protection", Help: "Namespace Deletion Protection", }, []string{"name", "username"}, ) CRDDeletionProtectionMetrics = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "crd_deletion_protection", Help: "CustomResourceDefinition Deletion Protection", }, []string{"name", "username"}, ) WorkloadDeletionProtectionMetrics = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "workload_deletion_protection", Help: "Workload Deletion Protection", }, []string{"kind_namespace_name", "username"}, ) )
Functions ¶
func ValidateCRDDeletion ¶
func ValidateIngressDeletion ¶ added in v1.6.0
func ValidateServiceDeletion ¶ added in v1.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.