Documentation ¶
Overview ¶
+k8s:openapi-gen=true +groupName=policy.kruise.io
Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=policy.kruise.io
Index ¶
Constants ¶
View Source
const ( // DeletionProtectionKey is a key in object labels and its value can be Always and Cascading. // Currently supports Namespace, CustomResourcesDefinition, Deployment, StatefulSet, ReplicaSet, CloneSet, Advanced StatefulSet, UnitedDeployment. DeletionProtectionKey = "policy.kruise.io/delete-protection" // DeletionProtectionTypeAlways indicates this object will always be forbidden to be deleted, unless the label is removed. DeletionProtectionTypeAlways = "Always" // DeletionProtectionTypeCascading indicates this object will be forbidden to be deleted, if it has active resources owned. DeletionProtectionTypeCascading = "Cascading" )
Variables ¶
View Source
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "policy.kruise.io", Version: "v1alpha1"} SchemeGroupVersion = GroupVersion // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.