deletionprotection

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 ValidateCRDDeletion(c client.Client, obj metav1.Object, gvk schema.GroupVersionKind) error

func ValidateIngressDeletion added in v1.6.0

func ValidateIngressDeletion(obj metav1.Object) error

func ValidateNamespaceDeletion

func ValidateNamespaceDeletion(c client.Client, namespace *v1.Namespace) error

func ValidateServiceDeletion added in v1.6.0

func ValidateServiceDeletion(service *v1.Service) error

func ValidateWorkloadDeletion

func ValidateWorkloadDeletion(obj metav1.Object, replicas *int32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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