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 ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type CCEAuthenticatingProxy
- type CCEAuthentication
- type CCEClusterConfig
- type CCEClusterConfigList
- type CCEClusterConfigSpec
- type CCEClusterConfigStatus
- type CCEClusterExtendParam
- type CCEClusterPublicIP
- type CCEContainerNetwork
- type CCEEip
- type CCEEipBandwidth
- type CCEEniNetwork
- type CCEHostNetwork
- type CCENodeExtendParam
- type CCENodePool
- type CCENodePoolNodeAutoscaling
- type CCENodePublicIP
- type CCENodeTemplate
- type CCENodeVolume
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
CCEClusterConfigResourceName = "cceclusterconfigs"
)
var SchemeGroupVersion = schema.GroupVersion{Group: cce.GroupName, Version: "v1"}
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 CCEAuthenticatingProxy ¶
type CCEAuthenticatingProxy struct { Ca string `json:"ca,omitempty"` Cert string `json:"cert,omitempty"` PrivateKey string `json:"privateKey,omitempty"` }
func (*CCEAuthenticatingProxy) DeepCopy ¶
func (in *CCEAuthenticatingProxy) DeepCopy() *CCEAuthenticatingProxy
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 ¶
func (in *CCEClusterConfigList) DeepCopy() *CCEClusterConfigList
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 { HuaweiCredentialSecret string `json:"huaweiCredentialSecret"` Category string `json:"category"` // 集群类别: CCE RegionID string `json:"regionID"` ClusterID string `json:"clusterID,omitempty"` // 仅导入集群时需要提供 Imported bool `json:"imported"` Name string `json:"name"` Labels map[string]string `json:"labels,omitempty"` Type string `json:"type"` Flavor string `json:"flavor"` Version string `json:"version"` Description string `json:"description"` 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"` KubernetesSvcIPRange string `json:"kubernetesSvcIPRange,omitempty"` Tags map[string]string `json:"tags"` KubeProxyMode string `json:"kubeProxyMode,omitempty"` PublicAccess bool `json:"publicAccess"` // 若为 true,则创建集群时需提供已有的 ClusterExternalIP 或配置 PublicIP PublicIP CCEClusterPublicIP `json:"publicIP"` // PublicAccess 为 true 且未提供已有的 ClusterExternalIP 时,创建公网 IP ExtendParam CCEClusterExtendParam `json:"extendParam,omitempty"` NodePools []CCENodePool `json:"nodePools"` // CreatedNodePoolIDs is a temporary map to store nodePool ID by nodePool name // and let cce-operator-controller (in Rancher) to know that some nodePools were // created by cce-operator and update its ID to CCE cluster config in Rancher. CreatedNodePoolIDs map[string]string `json:"createdNodePoolIDs"` }
CCEClusterConfigSpec is the spec for a CCEClusterConfig resource
func (*CCEClusterConfigSpec) DeepCopy ¶
func (in *CCEClusterConfigSpec) DeepCopy() *CCEClusterConfigSpec
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"` ClusterExternalIP string `json:"clusterExternalIP"` // Public Endpoint AvailableZone string `json:"availableZone"` // master node region CreatedVpcID string `json:"createdVpcID"` // VPC created by operator CreatedSubnetID string `json:"createdSubnetID"` // Subnet created by operator CreatedEIPID string `json:"createdEIPID"` // EIP ID created by operator UpgradeClusterTaskID string `json:"upgradeClusterTaskID"` // Upgrade cluster task ID }
func (*CCEClusterConfigStatus) DeepCopy ¶
func (in *CCEClusterConfigStatus) DeepCopy() *CCEClusterConfigStatus
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 CCEClusterExtendParam ¶
type CCEClusterExtendParam struct { ClusterAZ string `json:"clusterAZ,omitempty"` // 集群控制节点可用区 ClusterExternalIP string `json:"clusterExternalIP,omitempty"` // master 弹性公网 IP 地址 PeriodType string `json:"periodType,omitempty"` // month:月, year:年; billingMode为1(包周期)时生效,且为必选。 PeriodNum int32 `json:"periodNum,omitempty"` // 订购周期数 IsAutoRenew string `json:"isAutoRenew,omitempty"` // 是否自动续订 IsAutoPay string `json:"isAutoPay,omitempty"` // 是否自动扣款 }
func (*CCEClusterExtendParam) DeepCopy ¶
func (in *CCEClusterExtendParam) DeepCopy() *CCEClusterExtendParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCEClusterExtendParam.
func (*CCEClusterExtendParam) DeepCopyInto ¶
func (in *CCEClusterExtendParam) DeepCopyInto(out *CCEClusterExtendParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CCEClusterPublicIP ¶
type CCEClusterPublicIP struct { CreateEIP bool `json:"createEIP,omitempty"` // 若为 false, 则必须填写 ClusterExternalIP Eip CCEEip `json:"eip,omitempty"` }
func (*CCEClusterPublicIP) DeepCopy ¶
func (in *CCEClusterPublicIP) DeepCopy() *CCEClusterPublicIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCEClusterPublicIP.
func (*CCEClusterPublicIP) DeepCopyInto ¶
func (in *CCEClusterPublicIP) DeepCopyInto(out *CCEClusterPublicIP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CCEContainerNetwork ¶
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 CCEEip ¶
type CCEEip struct { Iptype string `json:"ipType,omitempty"` // 弹性IP类型 5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP) Bandwidth CCEEipBandwidth `json:"bandwidth,omitempty"` // 弹性IP的带宽参数 }
func (*CCEEip) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCEEip.
func (*CCEEip) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CCEEipBandwidth ¶
type CCEEipBandwidth struct { ChargeMode string `json:"chargeMode,omitempty"` // 计费模式: bandwidth,traffic Size int32 `json:"size,omitempty"` // 带宽大小, 取值范围:默认 1Mbit/s ~ 2000Mbit/s }
func (*CCEEipBandwidth) DeepCopy ¶
func (in *CCEEipBandwidth) DeepCopy() *CCEEipBandwidth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCEEipBandwidth.
func (*CCEEipBandwidth) DeepCopyInto ¶
func (in *CCEEipBandwidth) DeepCopyInto(out *CCEEipBandwidth)
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 CCENodeExtendParam ¶
type CCENodeExtendParam struct { PeriodType string `json:"periodType,omitempty"` // month / year, 作为请求参数,billingMode为1(包周期)或2(已废弃:自动付费包周期)时必选。 PeriodNum int32 `json:"periodNum,omitempty"` // 订购周期数 IsAutoRenew string `json:"isAutoRenew,omitempty"` // 是否自动续订 }
func (*CCENodeExtendParam) DeepCopy ¶
func (in *CCENodeExtendParam) DeepCopy() *CCENodeExtendParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCENodeExtendParam.
func (*CCENodeExtendParam) DeepCopyInto ¶
func (in *CCENodeExtendParam) DeepCopyInto(out *CCENodeExtendParam)
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"` // 节点池名称 Type string `json:"type"` // 节点池类型:vm, ElasticBMS, pm (default: vm) ID string `json:"nodePoolID"` // 节点池 ID,仅用于查询 NodeTemplate CCENodeTemplate `json:"nodeTemplate"` InitialNodeCount int32 `json:"initialNodeCount"` // 节点池初始化节点个数。查询时为节点池目标节点数量。 Autoscaling CCENodePoolNodeAutoscaling `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 CCENodePoolNodeAutoscaling ¶
type CCENodePoolNodeAutoscaling struct { Enable bool `json:"enable"` // 是否开启自动扩缩容 MinNodeCount int32 `json:"minNodeCount"` // 若开启自动扩缩容,最小能缩容的节点个数 MaxNodeCount int32 `json:"maxNodeCount"` // 若开启自动扩缩容,最大能扩容的节点个数 ScaleDownCooldownTime int32 `json:"scaleDownCooldownTime"` // 节点保留时间,单位为分钟,扩容出来的节点在这个时间内不会被缩掉 Priority int32 `json:"priority"` // 节点池权重,更高的权重在扩容时拥有更高的优先级 }
func (*CCENodePoolNodeAutoscaling) DeepCopy ¶
func (in *CCENodePoolNodeAutoscaling) DeepCopy() *CCENodePoolNodeAutoscaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCENodePoolNodeAutoscaling.
func (*CCENodePoolNodeAutoscaling) DeepCopyInto ¶
func (in *CCENodePoolNodeAutoscaling) DeepCopyInto(out *CCENodePoolNodeAutoscaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CCENodePublicIP ¶
type CCENodePublicIP struct { Ids []string `json:"ids,omitempty"` // 已有的弹性IP的ID列表。数量不得大于待创建节点数 Count int32 `json:"count,omitempty"` // 要动态创建的弹性IP个数。 Eip CCEEip `json:"eip,omitempty"` // 弹性IP参数。 }
func (*CCENodePublicIP) DeepCopy ¶
func (in *CCENodePublicIP) DeepCopy() *CCENodePublicIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCENodePublicIP.
func (*CCENodePublicIP) DeepCopyInto ¶
func (in *CCENodePublicIP) DeepCopyInto(out *CCENodePublicIP)
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 CCENodeVolume `json:"rootVolume"` // 节点的系统盘 DataVolumes []CCENodeVolume `json:"dataVolumes"` // 节点的数据盘 PublicIP CCENodePublicIP `json:"publicIP"` // 节点公网IP BillingMode int32 `json:"billingMode"` // 节点计费模式 Runtime string `json:"runtime"` // 容器运行时,docker 或 containerd ExtendParam CCENodeExtendParam `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 CCENodeVolume ¶
func (*CCENodeVolume) DeepCopy ¶
func (in *CCENodeVolume) DeepCopy() *CCENodeVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CCENodeVolume.
func (*CCENodeVolume) DeepCopyInto ¶
func (in *CCENodeVolume) DeepCopyInto(out *CCENodeVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.