v2alpha1

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	GroupName = "cce.baidubce.com"
)

GroupName is the group name used in this package

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
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}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: CustomResourceDefinitionVersion}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpread.

func (*ClusterPodSubnetTopologySpread) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadList.

func (*ClusterPodSubnetTopologySpreadList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadSpec.

func (*ClusterPodSubnetTopologySpreadSpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSubnetTopologySpreadStatus.

func (*ClusterPodSubnetTopologySpreadStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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