Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the federation v1alpha1 API group +kubebuilder:object:generate=true +groupName=federation.kruise.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "federation.kruise.io", Version: "v1alpha1"} // 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 ¶
This section is empty.
Types ¶
type ClusterPreferences ¶
type ClusterPreferences struct { // Minimum number of replicas that should be assigned to this cluster workload object. 0 by default. // +optional MinReplicas int64 `json:"minReplicas,omitempty"` // Maximum number of replicas that should be assigned to this cluster workload object. // Unbounded if no value provided (default). // +optional MaxReplicas *int64 `json:"maxReplicas,omitempty"` // A number expressing the preference to put an additional replica to this cluster workload object. // 0 by default. Weight int64 `json:"weight,omitempty"` }
type FederatedCloneSet ¶
type FederatedCloneSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FederatedCloneSetSpec `json:"spec,omitempty"` Status FederatedCloneSetStatus `json:"status,omitempty"` }
FederatedCloneSet is the Schema for the federatedclonesets API
func (*FederatedCloneSet) DeepCopy ¶
func (in *FederatedCloneSet) DeepCopy() *FederatedCloneSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedCloneSet.
func (*FederatedCloneSet) DeepCopyInto ¶
func (in *FederatedCloneSet) DeepCopyInto(out *FederatedCloneSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FederatedCloneSet) DeepCopyObject ¶
func (in *FederatedCloneSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FederatedCloneSetList ¶
type FederatedCloneSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FederatedCloneSet `json:"items"` }
FederatedCloneSetList contains a list of FederatedCloneSet
func (*FederatedCloneSetList) DeepCopy ¶
func (in *FederatedCloneSetList) DeepCopy() *FederatedCloneSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedCloneSetList.
func (*FederatedCloneSetList) DeepCopyInto ¶
func (in *FederatedCloneSetList) DeepCopyInto(out *FederatedCloneSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FederatedCloneSetList) DeepCopyObject ¶
func (in *FederatedCloneSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FederatedCloneSetSpec ¶
type FederatedCloneSetSpec struct { // Total number of pods desired across federated clusters. // Replicas specified in the spec for target deployment template or replicaset // template will be discarded/overridden when scheduling preferences are // specified. TotalReplicas int32 `json:"totalReplicas"` // If set to true then already scheduled and running replicas may be moved to other clusters // in order to match current state to the specified preferences. Otherwise, if set to false, // up and running replicas will not be moved. // +optional Rebalance bool `json:"rebalance,omitempty"` // If set to true, the placement of target kind will be determined using the instersection // of RSP placement scheduling result and the clusterSelector (spec.placement.clusterSelector) // specified on the target kind. // If set to false or not defined, RSP placement scheduling result overwrites the clusters // list in the spec.placement.clusters of the target resource. // +optional IntersectWithClusterSelector bool `json:"intersectWithClusterSelector"` // A mapping between cluster names and preferences regarding a local workload object (dep, rs, .. ) in // these clusters. // "*" (if provided) applies to all clusters if an explicit mapping is not provided. // If omitted, clusters without explicit preferences should not have any replicas scheduled. // +optional Clusters map[string]ClusterPreferences `json:"clusters,omitempty"` // To tell CloneSet in the clusters what to do // +optional CloneSetSpec csv1.CloneSetSpec `json:"cloneSetSpec"` }
FederatedCloneSetSpec defines the desired state of FederatedCloneSet
func (*FederatedCloneSetSpec) DeepCopy ¶
func (in *FederatedCloneSetSpec) DeepCopy() *FederatedCloneSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedCloneSetSpec.
func (*FederatedCloneSetSpec) DeepCopyInto ¶
func (in *FederatedCloneSetSpec) DeepCopyInto(out *FederatedCloneSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FederatedCloneSetStatus ¶
type FederatedCloneSetStatus struct { }
FederatedCloneSetStatus defines the observed state of FederatedCloneSet
func (*FederatedCloneSetStatus) DeepCopy ¶
func (in *FederatedCloneSetStatus) DeepCopy() *FederatedCloneSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FederatedCloneSetStatus.
func (*FederatedCloneSetStatus) DeepCopyInto ¶
func (in *FederatedCloneSetStatus) DeepCopyInto(out *FederatedCloneSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.