Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the keti v1 API group +k8s:deepcopy-gen=package,register +groupName=keti.policy
Package v1 contains API Schema definitions for the keti v1 API group +k8s:deepcopy-gen=package,register +groupName=keti.policy
Index ¶
Constants ¶
const ( PreCopy = MAlgorithm("preCopy") PostCopy = MAlgorithm("postCopy") )
const ( GroupName = "keti.policy" GroupVersion = "v1" )
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type MAlgorithm ¶ added in v0.0.8
type MAlgorithm string
type PodPolicy ¶
type PodPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodPolicySpec `json:"spec,omitempty"` }
PodPolicy is the Schema for the podpolicies API +kubebuilder:subresource:status +kubebuilder:resource:path=podpolicies,scope=Namespaced
func (*PodPolicy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicy.
func (*PodPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPolicy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodPolicyList ¶
type PodPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PodPolicy `json:"items"` }
PodPolicyList contains a list of PodPolicy
func (*PodPolicyList) DeepCopy ¶
func (in *PodPolicyList) DeepCopy() *PodPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicyList.
func (*PodPolicyList) DeepCopyInto ¶
func (in *PodPolicyList) DeepCopyInto(out *PodPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPolicyList) DeepCopyObject ¶
func (in *PodPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodPolicySpec ¶
type PodPolicySpec struct { ClusterName string PodName string MigrationPod bool MigrationProperty MProperty MigrationAlgorithm MAlgorithm IsSystemPod bool GeoMode bool Anything bool }
PodPolicySpec defines the desired state of PodPolicy
func (*PodPolicySpec) DeepCopy ¶
func (in *PodPolicySpec) DeepCopy() *PodPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicySpec.
func (*PodPolicySpec) DeepCopyInto ¶
func (in *PodPolicySpec) DeepCopyInto(out *PodPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.