v1

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=cce.pandaria.io

+k8s:deepcopy-gen=package +groupName=cce.pandaria.io

+k8s:deepcopy-gen=package +groupName=cce.pandaria.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	CCEClusterConfigResourceName = "cceclusterconfigs"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cce.GroupName, Version: "v1"}

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 Bandwidth

type Bandwidth struct {
	ChargeMode string `json:"chargeMode,omitempty"`
	Size       int32  `json:"size,omitempty"`
	ShareType  string `json:"shareType,omitempty"`
}

func (*Bandwidth) DeepCopy

func (in *Bandwidth) DeepCopy() *Bandwidth

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

func (*Bandwidth) DeepCopyInto

func (in *Bandwidth) DeepCopyInto(out *Bandwidth)

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

type CCEAuthenticatingProxy

type CCEAuthenticatingProxy struct {
	Ca         string `json:"ca,omitempty"`
	Cert       string `json:"cert,omitempty"`
	PrivateKey string `json:"privateKey,omitempty"`
}

func (*CCEAuthenticatingProxy) DeepCopy

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

func (*CCEAuthenticatingProxy) DeepCopyInto

func (in *CCEAuthenticatingProxy) DeepCopyInto(out *CCEAuthenticatingProxy)

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

type CCEAuthentication

type CCEAuthentication struct {
	Mode                string                 `json:"mode"`
	AuthenticatingProxy CCEAuthenticatingProxy `json:"authenticatingProxy"`
}

func (*CCEAuthentication) DeepCopy

func (in *CCEAuthentication) DeepCopy() *CCEAuthentication

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

func (*CCEAuthentication) DeepCopyInto

func (in *CCEAuthentication) DeepCopyInto(out *CCEAuthentication)

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

type CCEClusterConfig

type CCEClusterConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CCEClusterConfigSpec   `json:"spec"`
	Status CCEClusterConfigStatus `json:"status"`
}

func NewCCEClusterConfig

func NewCCEClusterConfig(namespace, name string, obj CCEClusterConfig) *CCEClusterConfig

func (*CCEClusterConfig) DeepCopy

func (in *CCEClusterConfig) DeepCopy() *CCEClusterConfig

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

func (*CCEClusterConfig) DeepCopyInto

func (in *CCEClusterConfig) DeepCopyInto(out *CCEClusterConfig)

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

func (*CCEClusterConfig) DeepCopyObject

func (in *CCEClusterConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CCEClusterConfigList

type CCEClusterConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []CCEClusterConfig `json:"items"`
}

CCEClusterConfigList is a list of CCEClusterConfig resources

func (*CCEClusterConfigList) DeepCopy

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

func (*CCEClusterConfigList) DeepCopyInto

func (in *CCEClusterConfigList) DeepCopyInto(out *CCEClusterConfigList)

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

func (*CCEClusterConfigList) DeepCopyObject

func (in *CCEClusterConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CCEClusterConfigSpec

type CCEClusterConfigSpec struct {
	CredentialSecret     string              `json:"credentialSecret"`
	Category             string              `json:"category,omitempty"` // 集群类别: CCE
	RegionID             string              `json:"regionID,omitempty"`
	ClusterID            string              `json:"clusterID,omitempty"` // ClusterID only used for import cluster
	Imported             bool                `json:"imported,omitempty"`
	Name                 string              `json:"name" norman:"noupdate"`
	Labels               map[string]string   `json:"labels,omitempty"`
	Type                 string              `json:"type"`
	Flavor               string              `json:"flavor" norman:"noupdate"`
	Version              string              `json:"version" norman:"noupdate"`
	Description          string              `json:"description,omitempty" norman:"noupdate"`
	Ipv6Enable           bool                `json:"ipv6Enable,omitempty"`
	HostNetwork          CCEHostNetwork      `json:"hostNetwork"`
	ContainerNetwork     CCEContainerNetwork `json:"containerNetwork"`
	EniNetwork           CCEEniNetwork       `json:"eniNetwork,omitempty"`
	Authentication       CCEAuthentication   `json:"authentication,omitempty"`
	BillingMode          int32               `json:"clusterBillingMode,omitempty" norman:"noupdate"`
	KubernetesSvcIPRange string              `json:"kubernetesSvcIPRange,omitempty" norman:"noupdate"`
	Tags                 map[string]string   `json:"tags"`
	KubeProxyMode        string              `json:"kubeProxyMode,omitempty"`
	NodePools            []CCENodePool       `json:"nodePools,omitempty"`
}

CCEClusterConfigSpec is the spec for a CCEClusterConfig resource

func (*CCEClusterConfigSpec) DeepCopy

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

func (*CCEClusterConfigSpec) DeepCopyInto

func (in *CCEClusterConfigSpec) DeepCopyInto(out *CCEClusterConfigSpec)

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

type CCEClusterConfigStatus

type CCEClusterConfigStatus struct {
	Phase          string `json:"phase"`
	FailureMessage string `json:"failureMessage"`

	ClusterID        string              `json:"clusterID"`
	HostNetwork      CCEHostNetwork      `json:"hostNetwork"`
	ContainerNetwork CCEContainerNetwork `json:"containerNetwork"`
	NodePools        []CCENodePool       `json:"nodePools,omitempty"`
}

func (*CCEClusterConfigStatus) DeepCopy

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

func (*CCEClusterConfigStatus) DeepCopyInto

func (in *CCEClusterConfigStatus) DeepCopyInto(out *CCEClusterConfigStatus)

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

type CCEContainerNetwork

type CCEContainerNetwork struct {
	Mode string `json:"mode"`
	CIDR string `json:"cidr"`
}

func (*CCEContainerNetwork) DeepCopy

func (in *CCEContainerNetwork) DeepCopy() *CCEContainerNetwork

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

func (*CCEContainerNetwork) DeepCopyInto

func (in *CCEContainerNetwork) DeepCopyInto(out *CCEContainerNetwork)

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

type CCEEniNetwork

type CCEEniNetwork struct {
	Subnets []string `json:"subnets"`
}

func (*CCEEniNetwork) DeepCopy

func (in *CCEEniNetwork) DeepCopy() *CCEEniNetwork

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

func (*CCEEniNetwork) DeepCopyInto

func (in *CCEEniNetwork) DeepCopyInto(out *CCEEniNetwork)

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

type CCEHostNetwork

type CCEHostNetwork struct {
	VpcID         string `json:"vpcID,omitempty"`
	SubnetID      string `json:"subnetID,omitempty"`
	SecurityGroup string `json:"securityGroup,omitempty"`
}

func (*CCEHostNetwork) DeepCopy

func (in *CCEHostNetwork) DeepCopy() *CCEHostNetwork

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

func (*CCEHostNetwork) DeepCopyInto

func (in *CCEHostNetwork) DeepCopyInto(out *CCEHostNetwork)

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

type CCENodePool

type CCENodePool struct {
	Name                 string                  `json:"name,omitempty"`   // 节点池名称
	Type                 string                  `json:"type"`             // 节点池类型:vm, ElasticBMS, pm (default: vm)
	ID                   string                  `json:"nodeID,omitempty"` // 节点池 ID,仅用于查询
	NodeTemplate         CCENodeTemplate         `json:"nodeTemplate"`
	InitialNodeCount     int32                   `json:"initialNodeCount"` // 节点池初始化节点个数。查询时为节点池目标节点数量。
	Autoscaling          NodePoolNodeAutoscaling `json:"autoscaling"`
	PodSecurityGroups    []string                `json:"podSecurityGroups"`
	CustomSecurityGroups []string                `json:"customSecurityGroups"` // 节点池自定义安全组相关配置,未指定安全组ID,新建节点将添加 Node 节点默认安全组。
}

func (*CCENodePool) DeepCopy

func (in *CCENodePool) DeepCopy() *CCENodePool

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

func (*CCENodePool) DeepCopyInto

func (in *CCENodePool) DeepCopyInto(out *CCENodePool)

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

type CCENodeTemplate

type CCENodeTemplate struct {
	Flavor          string      `json:"flavor"`          // 节点池规格
	AvailableZone   string      `json:"availableZone"`   // 可用区
	OperatingSystem string      `json:"operatingSystem"` // 节点操作系统
	SSHKey          string      `json:"sshKey"`          // SSH 密钥名称(不支持帐号密码登录)
	RootVolume      Volume      `json:"rootVolume"`      // 节点的系统盘
	DataVolumes     []Volume    `json:"dataVolumes"`     // 节点的数据盘
	PublicIP        PublicIP    `json:"publicIP"`        // 节点公网IP
	Count           int32       `json:"count"`           // 批量创建节点时的数量
	BillingMode     int32       `json:"billingMode"`     // 节点计费模式
	Runtime         string      `json:"runtime"`         // 容器运行时,docker 或 containerd
	ExtendParam     ExtendParam `json:"extendParam"`     // 节点扩展参数
}

func (*CCENodeTemplate) DeepCopy

func (in *CCENodeTemplate) DeepCopy() *CCENodeTemplate

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

func (*CCENodeTemplate) DeepCopyInto

func (in *CCENodeTemplate) DeepCopyInto(out *CCENodeTemplate)

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

type Eip

type Eip struct {
	Iptype    string    `json:"ipType,omitempty"`    // 弹性IP类型
	Bandwidth Bandwidth `json:"bandwidth,omitempty"` // 弹性IP的带宽参数
}

func (*Eip) DeepCopy

func (in *Eip) DeepCopy() *Eip

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

func (*Eip) DeepCopyInto

func (in *Eip) DeepCopyInto(out *Eip)

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

type ExtendParam

type ExtendParam struct {
	PeriodType  string `json:"periodType,omitempty"`  // month / year, 作为请求参数,billingMode为1(包周期)或2(已废弃:自动付费包周期)时必选。
	PeriodNum   int32  `json:"periodNum,omitempty"`   // 订购周期数
	IsAutoRenew string `json:"isAutoRenew,omitempty"` // 是否自动续订
}

func (*ExtendParam) DeepCopy

func (in *ExtendParam) DeepCopy() *ExtendParam

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

func (*ExtendParam) DeepCopyInto

func (in *ExtendParam) DeepCopyInto(out *ExtendParam)

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

type NodePoolNodeAutoscaling

type NodePoolNodeAutoscaling struct {
	Enable                bool  `json:"enable"`                // 是否开启自动扩缩容
	MinNodeCount          int32 `json:"minNodeCount"`          // 若开启自动扩缩容,最小能缩容的节点个数
	MaxNodeCount          int32 `json:"maxNodeCount"`          // 若开启自动扩缩容,最大能扩容的节点个数
	ScaleDownCooldownTime int32 `json:"scaleDownCooldownTime"` // 节点保留时间,单位为分钟,扩容出来的节点在这个时间内不会被缩掉
	Priority              int32 `json:"priority"`              // 节点池权重,更高的权重在扩容时拥有更高的优先级
}

func (*NodePoolNodeAutoscaling) DeepCopy

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

func (*NodePoolNodeAutoscaling) DeepCopyInto

func (in *NodePoolNodeAutoscaling) DeepCopyInto(out *NodePoolNodeAutoscaling)

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

type PublicIP

type PublicIP struct {
	Ids   []string `json:"ids,omitempty"`   // 已有的弹性IP的ID列表。数量不得大于待创建节点数
	Count int32    `json:"count,omitempty"` // 要动态创建的弹性IP个数。
	Eip   Eip      `json:"eip,omitempty"`   // 弹性IP参数。
}

func (*PublicIP) DeepCopy

func (in *PublicIP) DeepCopy() *PublicIP

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

func (*PublicIP) DeepCopyInto

func (in *PublicIP) DeepCopyInto(out *PublicIP)

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

type Volume

type Volume struct {
	Size int32  `json:"size"`
	Type string `json:"type"`
}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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