Documentation ¶
Index ¶
Constants ¶
const ( // CustomResourceDefinitionGroup is the name of the third party resource group CustomResourceDefinitionGroup = k8sconst.CustomResourceDefinitionGroup // CustomResourceDefinitionVersion is the current version of the resource CustomResourceDefinitionVersion = "v2alpha1" KindClusterPodSubnetTopologySpread = "clusterpodsubnettopologyspreads" )
const (
GroupName = "cce.baidubce.com"
)
GroupName is the group name used in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( // DefaultReuseIPTTL default timeout for reusing IP addresses. // If this time is not set, the default value is 7 days DefaultReuseIPTTL = &metav1.Duration{Duration: time.Hour * 24 * 7} )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: CustomResourceDefinitionVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterPodSubnetTopologySpread ¶
type ClusterPodSubnetTopologySpread struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterPodSubnetTopologySpreadSpec `json:"spec,omitempty"` Status ClusterPodSubnetTopologySpreadStatus `json:"status,omitempty"` }
ClusterPodSubnetTopologySpread describes how to distribute pods in the scenario of sub customized subnets
func (*ClusterPodSubnetTopologySpread) DeepCopy ¶
func (in *ClusterPodSubnetTopologySpread) DeepCopy() *ClusterPodSubnetTopologySpread
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpread.
func (*ClusterPodSubnetTopologySpread) DeepCopyInto ¶
func (in *ClusterPodSubnetTopologySpread) DeepCopyInto(out *ClusterPodSubnetTopologySpread)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodSubnetTopologySpread) DeepCopyObject ¶
func (in *ClusterPodSubnetTopologySpread) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPodSubnetTopologySpreadList ¶
type ClusterPodSubnetTopologySpreadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterPodSubnetTopologySpread `json:"items"` }
ClusterPodSubnetTopologySpreadList contains a list of PodSubnetTopologySpread
func (*ClusterPodSubnetTopologySpreadList) DeepCopy ¶
func (in *ClusterPodSubnetTopologySpreadList) DeepCopy() *ClusterPodSubnetTopologySpreadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadList.
func (*ClusterPodSubnetTopologySpreadList) DeepCopyInto ¶
func (in *ClusterPodSubnetTopologySpreadList) DeepCopyInto(out *ClusterPodSubnetTopologySpreadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodSubnetTopologySpreadList) DeepCopyObject ¶
func (in *ClusterPodSubnetTopologySpreadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPodSubnetTopologySpreadSpec ¶
type ClusterPodSubnetTopologySpreadSpec struct { ccev2.PodSubnetTopologySpreadSpec `json:",inline"` NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"` }
func (*ClusterPodSubnetTopologySpreadSpec) DeepCopy ¶
func (in *ClusterPodSubnetTopologySpreadSpec) DeepCopy() *ClusterPodSubnetTopologySpreadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadSpec.
func (*ClusterPodSubnetTopologySpreadSpec) DeepCopyInto ¶
func (in *ClusterPodSubnetTopologySpreadSpec) DeepCopyInto(out *ClusterPodSubnetTopologySpreadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPodSubnetTopologySpreadStatus ¶
type ClusterPodSubnetTopologySpreadStatus struct { SubStatus map[string]ccev2.PodSubnetTopologySpreadStatus `json:"subStatus,omitempty"` SubObjectCount int `json:"subobject-count,omitempty"` ExpectObjectCount int `json:"expect-object-count,omitempty"` Status ccev2.PodSubnetTopologySpreadStatus `json:"status,omitempty"` }
func (*ClusterPodSubnetTopologySpreadStatus) DeepCopy ¶
func (in *ClusterPodSubnetTopologySpreadStatus) DeepCopy() *ClusterPodSubnetTopologySpreadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadStatus.
func (*ClusterPodSubnetTopologySpreadStatus) DeepCopyInto ¶
func (in *ClusterPodSubnetTopologySpreadStatus) DeepCopyInto(out *ClusterPodSubnetTopologySpreadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.