Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API +groupName=onecloud.yunion.io
Index ¶
- Constants
- Variables
- func GetEdition(oc *OnecloudCluster) string
- func IsEnterpriseEdition(oc *OnecloudCluster) bool
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_CronJobSpec(obj *CronJobSpec, image string)
- func SetDefaults_DaemonSetSpec(obj *DaemonSetSpec, image string)
- func SetDefaults_DeploymentSpec(obj *DeploymentSpec, image string)
- func SetDefaults_KeystoneConfig(obj *KeystoneConfig)
- func SetDefaults_KeystoneSpec(obj *KeystoneSpec, imageRepo, version string)
- func SetDefaults_Mysql(obj *Mysql)
- func SetDefaults_OnecloudCluster(obj *OnecloudCluster)
- func SetDefaults_OnecloudClusterConfig(obj *OnecloudClusterConfig)
- func SetDefaults_OnecloudClusterSpec(obj *OnecloudClusterSpec, isEE bool)
- func SetDefaults_RegionSpec(obj *RegionSpec, imageRepo, version string)
- func SetDefaults_ServiceBaseConfig(obj *ServiceBaseConfig, port int)
- func SetDefaults_ServiceCommonOptions(obj *ServiceCommonOptions, user string, port int)
- func SetDefaults_ServiceDBCommonOptions(obj *ServiceDBCommonOptions, db, dbUser string, svcUser string, port int)
- func SetDefaults_StatefulDeploymentSpec(ctype ComponentType, obj *StatefulDeploymentSpec, defaultSize string, ...)
- func SetObjectDefaults_OnecloudCluster(in *OnecloudCluster)
- func SetObjectDefaults_OnecloudClusterConfig(in *OnecloudClusterConfig)
- func SetObjectDefaults_OnecloudClusterList(in *OnecloudClusterList)
- type BaremetalConfig
- type CloudUser
- type ComponentPhase
- type ComponentType
- type ContainerSpec
- type CronJobSpec
- type DBConfig
- type DaemonSetSpec
- type DeploymentSpec
- type DeploymentStatus
- type EsxiAgentConfig
- type Etcd
- type GlanceConfig
- type GlanceStatus
- type HostConfig
- type ImageStatus
- type KeystoneConfig
- type KeystoneSpec
- type KeystoneStatus
- type MeterConfig
- type MeterStatus
- type Mysql
- type OnecloudCluster
- type OnecloudClusterConfig
- type OnecloudClusterList
- type OnecloudClusterSpec
- type OnecloudClusterStatus
- type RegionConfig
- type RegionSpec
- type RegionStatus
- type ResourceRequirement
- type Service
- type ServiceBaseConfig
- type ServiceCommonOptions
- type ServiceDBCommonOptions
- type StatefulDeploymentSpec
- type WebconsoleStatus
Constants ¶
const ( DefaultVersion = "latest" DefaultOnecloudRegion = "region0" DefaultOnecloudZone = "zone0" DefaultOnecloudWire = "bcast0" DefaultImageRepository = "registry.hub.docker.com/yunion" DefaultVPCId = "default" DefaultGlanceStorageSize = "100G" DefaultMeterStorageSize = "100G" DefaultInfluxdbStorageSize = "20G" DefaultKapacitorStorageSize = "20G" DefaultNotifyStorageSize = "1G" // for plugin template DefaultBaremetalStorageSize = "1G" DefaultEsxiAgentStorageSize = "30G" // rancher local-path-provisioner: https://github.com/rancher/local-path-provisioner DefaultStorageClass = "local-path" DefaultInfluxdbImageVersion = "1.7.7" DefaultKapacitorImageVersion = "1.5" )
const ( OnecloudClusterResourceKind = "OnecloudCluster" OnecloudClusterResourcePlural = "onecloudclusters" )
const GroupName = "onecloud.yunion.io"
GroupName is the group name use in this package
Variables ¶
var ( // SchemeBuilder and AddToScheme will stay in k8s.io/kubernetes SchemeBuilder runtime.SchemeBuilder // AddToScheme applies all the stored functions to the scheme. AddToScheme = localSchemeBuilder.AddToScheme // Scheme is the scheme instance of operator Scheme *runtime.Scheme )
var (
OnecloudClusterCRDName = OnecloudClusterResourcePlural + "." + GroupName
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion si group version to register these objects
Functions ¶
func GetEdition ¶
func GetEdition(oc *OnecloudCluster) string
func IsEnterpriseEdition ¶
func IsEnterpriseEdition(oc *OnecloudCluster) bool
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_CronJobSpec ¶
func SetDefaults_CronJobSpec(obj *CronJobSpec, image string)
func SetDefaults_DaemonSetSpec ¶
func SetDefaults_DaemonSetSpec(obj *DaemonSetSpec, image string)
func SetDefaults_DeploymentSpec ¶
func SetDefaults_DeploymentSpec(obj *DeploymentSpec, image string)
func SetDefaults_KeystoneConfig ¶
func SetDefaults_KeystoneConfig(obj *KeystoneConfig)
func SetDefaults_KeystoneSpec ¶
func SetDefaults_KeystoneSpec(obj *KeystoneSpec, imageRepo, version string)
func SetDefaults_Mysql ¶
func SetDefaults_Mysql(obj *Mysql)
func SetDefaults_OnecloudCluster ¶
func SetDefaults_OnecloudCluster(obj *OnecloudCluster)
func SetDefaults_OnecloudClusterConfig ¶
func SetDefaults_OnecloudClusterConfig(obj *OnecloudClusterConfig)
func SetDefaults_OnecloudClusterSpec ¶
func SetDefaults_OnecloudClusterSpec(obj *OnecloudClusterSpec, isEE bool)
func SetDefaults_RegionSpec ¶
func SetDefaults_RegionSpec(obj *RegionSpec, imageRepo, version string)
func SetDefaults_ServiceBaseConfig ¶
func SetDefaults_ServiceBaseConfig(obj *ServiceBaseConfig, port int)
func SetDefaults_ServiceCommonOptions ¶
func SetDefaults_ServiceCommonOptions(obj *ServiceCommonOptions, user string, port int)
func SetDefaults_ServiceDBCommonOptions ¶
func SetDefaults_ServiceDBCommonOptions(obj *ServiceDBCommonOptions, db, dbUser string, svcUser string, port int)
func SetDefaults_StatefulDeploymentSpec ¶
func SetDefaults_StatefulDeploymentSpec(ctype ComponentType, obj *StatefulDeploymentSpec, defaultSize string, imageRepo, version string)
func SetObjectDefaults_OnecloudCluster ¶
func SetObjectDefaults_OnecloudCluster(in *OnecloudCluster)
func SetObjectDefaults_OnecloudClusterConfig ¶
func SetObjectDefaults_OnecloudClusterConfig(in *OnecloudClusterConfig)
func SetObjectDefaults_OnecloudClusterList ¶
func SetObjectDefaults_OnecloudClusterList(in *OnecloudClusterList)
Types ¶
type BaremetalConfig ¶
type BaremetalConfig struct {
ServiceCommonOptions
}
func (*BaremetalConfig) DeepCopy ¶
func (in *BaremetalConfig) DeepCopy() *BaremetalConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaremetalConfig.
func (*BaremetalConfig) DeepCopyInto ¶
func (in *BaremetalConfig) DeepCopyInto(out *BaremetalConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudUser ¶
func (*CloudUser) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudUser.
func (*CloudUser) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentPhase ¶
type ComponentPhase string
ComponentPhase is the current state of component
const ( // NormalPhase represents normal state of OneCloud cluster. NormalPhase ComponentPhase = "Normal" // UpgradePhase represents the upgrade state of Onecloud cluster. UpgradePhase ComponentPhase = "Upgrade" )
type ComponentType ¶
type ComponentType string
ComponentType represents component type
const ( // KeystoneComponentType is keystone component type KeystoneComponentType ComponentType = "keystone" // RegionComponentType is region component type RegionComponentType ComponentType = "region" // ClimcComponentType is climc component type ClimcComponentType ComponentType = "climc" // GlanceComponentType is glance component type GlanceComponentType ComponentType = "glance" // WebconsoleComponentType is webconsole component type WebconsoleComponentType ComponentType = "webconsole" // SchedulerComponentType is scheduler component type SchedulerComponentType ComponentType = "scheduler" // LogComponentType is logger service component type LoggerComponentType ComponentType = "logger" // InfluxdbComponentType is influxdb component type InfluxdbComponentType ComponentType = "influxdb" // KapacitorComponentType is influxdata kapacitor component type KapacitorComponentType ComponentType = "kapacitor" // APIGatewayComponentType is apiGateway component type APIGatewayComponentType ComponentType = "apigateway" //APIGatewayComponentTypeEE is enterprise edition apiGateway APIGatewayComponentTypeEE ComponentType = "apigateway-ee" // WebComponentType is web frontent component type WebComponentType ComponentType = "web" YunionagentComponentType ComponentType = "yunionagent" YunionconfComponentType ComponentType = "yunionconf" KubeServerComponentType ComponentType = "kubeserver" AnsibleServerComponentType ComponentType = "ansibleserver" CloudnetComponentType ComponentType = "cloudnet" CloudeventComponentType ComponentType = "cloudevent" NotifyComponentType ComponentType = "notify" HostComponentType ComponentType = "host" HostDeployerComponentType ComponentType = "host-deployer" BaremetalAgentComponentType ComponentType = "baremetal-agent" // S3gatewayComponentType is multi-cloud S3 object storage gateway S3gatewayComponentType ComponentType = "s3gateway" // DevtoolComponentType is devops tool based on ansible DevtoolComponentType ComponentType = "devtool" // MeterComponentType is meter service MeterComponentType ComponentType = "meter" // AutoUpdateComponentType is autoupdate service AutoUpdateComponentType ComponentType = "autoupdate" // CloudmonPing is ping cronjob CloudmonPingComponentType ComponentType = "cloudmon-ping" // CloudmonReportUsage is report-usage cronjob CloudmonReportUsageComponentType ComponentType = "cloudmon-report-usage" // Esxi Agent EsxiAgentComponentType ComponentType = "esxi-agent" )
func (ComponentType) String ¶
func (ct ComponentType) String() string
type ContainerSpec ¶
type ContainerSpec struct { Image string `json:"image"` Repository string `json:"repository,omitempty"` ImageName string `json:"imageName,omitempty"` Tag string `json:"tag,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` Requests *ResourceRequirement `json:"requests,omitempty"` Limits *ResourceRequirement `json:"limits,omitempty"` }
ContainerSpec is the container spec of a pod
func (*ContainerSpec) DeepCopy ¶
func (in *ContainerSpec) DeepCopy() *ContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSpec.
func (*ContainerSpec) DeepCopyInto ¶
func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CronJobSpec ¶
type CronJobSpec struct { ContainerSpec Disable bool `json:"disable"` Schedule string `json:"schedule"` Affinity *corev1.Affinity `json:"affinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
func (*CronJobSpec) DeepCopy ¶
func (in *CronJobSpec) DeepCopy() *CronJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec.
func (*CronJobSpec) DeepCopyInto ¶
func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DBConfig ¶
type DBConfig struct { Database string `json:"database"` Username string `json:"username"` Password string `json:"password"` }
func (*DBConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBConfig.
func (*DBConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonSetSpec ¶
type DaemonSetSpec struct { ContainerSpec Disable bool `json:"disable"` Affinity *corev1.Affinity `json:"affinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
func (*DaemonSetSpec) DeepCopy ¶
func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec.
func (*DaemonSetSpec) DeepCopyInto ¶
func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentSpec ¶
type DeploymentSpec struct { ContainerSpec Disable bool `json:"disable"` Replicas int32 `json:"replicas"` Affinity *corev1.Affinity `json:"affinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
DeploymentSpec constains defails of deployment resource service
func (*DeploymentSpec) DeepCopy ¶
func (in *DeploymentSpec) DeepCopy() *DeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec.
func (*DeploymentSpec) DeepCopyInto ¶
func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentStatus ¶
type DeploymentStatus struct { Phase ComponentPhase `json:"phase,omitempty"` Deployment *apps.DeploymentStatus `json:"deployment,omitempty"` ImageStatus *ImageStatus `json:"imageStatus,omitempty"` }
func (*DeploymentStatus) DeepCopy ¶
func (in *DeploymentStatus) DeepCopy() *DeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
func (*DeploymentStatus) DeepCopyInto ¶
func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EsxiAgentConfig ¶
type EsxiAgentConfig struct {
ServiceCommonOptions
}
func (*EsxiAgentConfig) DeepCopy ¶
func (in *EsxiAgentConfig) DeepCopy() *EsxiAgentConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EsxiAgentConfig.
func (*EsxiAgentConfig) DeepCopyInto ¶
func (in *EsxiAgentConfig) DeepCopyInto(out *EsxiAgentConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Etcd ¶
type Etcd struct { // Endpoints of etcd members Endpoints []string `json:"endpoints"` // CA is an SSL Certificate Authority data used to secure etcd communication CA string `json:"ca"` // CertFile is an SSL certification data used to secure etcd communication Cert string `json:"cert"` // Key is an SSL key data used to secure etcd communication Key string `json:"key"` }
Etcd describes an etcd cluster
func (*Etcd) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Etcd.
func (*Etcd) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GlanceConfig ¶
type GlanceConfig struct {
ServiceDBCommonOptions
}
func (*GlanceConfig) DeepCopy ¶
func (in *GlanceConfig) DeepCopy() *GlanceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlanceConfig.
func (*GlanceConfig) DeepCopyInto ¶
func (in *GlanceConfig) DeepCopyInto(out *GlanceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GlanceStatus ¶
type GlanceStatus struct {
DeploymentStatus
}
func (*GlanceStatus) DeepCopy ¶
func (in *GlanceStatus) DeepCopy() *GlanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlanceStatus.
func (*GlanceStatus) DeepCopyInto ¶
func (in *GlanceStatus) DeepCopyInto(out *GlanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostConfig ¶
type HostConfig struct {
ServiceCommonOptions
}
func (*HostConfig) DeepCopy ¶
func (in *HostConfig) DeepCopy() *HostConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostConfig.
func (*HostConfig) DeepCopyInto ¶
func (in *HostConfig) DeepCopyInto(out *HostConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatus ¶
type ImageStatus struct { Image string `json:"image"` Repository string `json:"repository"` ImageName string `json:"imageName"` Tag string `json:"tag"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"` }
ImageStatus is the image status of a pod
func (*ImageStatus) DeepCopy ¶
func (in *ImageStatus) DeepCopy() *ImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.
func (*ImageStatus) DeepCopyInto ¶
func (in *ImageStatus) DeepCopyInto(out *ImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeystoneConfig ¶
type KeystoneConfig struct { ServiceBaseConfig DB DBConfig `json:"db"` }
func (*KeystoneConfig) DeepCopy ¶
func (in *KeystoneConfig) DeepCopy() *KeystoneConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeystoneConfig.
func (*KeystoneConfig) DeepCopyInto ¶
func (in *KeystoneConfig) DeepCopyInto(out *KeystoneConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeystoneSpec ¶
type KeystoneSpec struct { DeploymentSpec BootstrapPassword string `json:"bootstrapPassword"` }
KeystoneSpec contains details of keystone service
func (*KeystoneSpec) DeepCopy ¶
func (in *KeystoneSpec) DeepCopy() *KeystoneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeystoneSpec.
func (*KeystoneSpec) DeepCopyInto ¶
func (in *KeystoneSpec) DeepCopyInto(out *KeystoneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeystoneStatus ¶
type KeystoneStatus struct {
DeploymentStatus
}
KeystoneStatus is Keystone status
func (*KeystoneStatus) DeepCopy ¶
func (in *KeystoneStatus) DeepCopy() *KeystoneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeystoneStatus.
func (*KeystoneStatus) DeepCopyInto ¶
func (in *KeystoneStatus) DeepCopyInto(out *KeystoneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MeterConfig ¶
type MeterConfig struct {
ServiceDBCommonOptions
}
func (*MeterConfig) DeepCopy ¶
func (in *MeterConfig) DeepCopy() *MeterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeterConfig.
func (*MeterConfig) DeepCopyInto ¶
func (in *MeterConfig) DeepCopyInto(out *MeterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MeterStatus ¶
type MeterStatus struct {
DeploymentStatus
}
func (*MeterStatus) DeepCopy ¶
func (in *MeterStatus) DeepCopy() *MeterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeterStatus.
func (*MeterStatus) DeepCopyInto ¶
func (in *MeterStatus) DeepCopyInto(out *MeterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Mysql ¶
type Mysql struct { // Host is mysql ip address of hostname Host string `json:"host"` // Port is mysql listen port Port int32 `json:"port"` // Username is mysql username Username string `json:"username"` // Password is mysql user password Password string `json:"password"` }
Mysql describes an mysql server
func (*Mysql) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mysql.
func (*Mysql) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OnecloudCluster ¶
type OnecloudCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec defines the behavior of a onecloud cluster Spec OnecloudClusterSpec `json:"spec"` // Most recently observed status of the onecloud cluster Status OnecloudClusterStatus `json:"status"` }
OnecloudCluster defines the cluster
func (*OnecloudCluster) DeepCopy ¶
func (in *OnecloudCluster) DeepCopy() *OnecloudCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnecloudCluster.
func (*OnecloudCluster) DeepCopyInto ¶
func (in *OnecloudCluster) DeepCopyInto(out *OnecloudCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OnecloudCluster) DeepCopyObject ¶
func (in *OnecloudCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OnecloudClusterConfig ¶
type OnecloudClusterConfig struct { metav1.TypeMeta Keystone KeystoneConfig `json:"keystone"` RegionServer RegionConfig `json:"region"` Glance GlanceConfig `json:"glance"` Webconsole ServiceCommonOptions `json:"webconsole"` Logger ServiceDBCommonOptions `json:"logger"` Yunionconf ServiceDBCommonOptions `json:"yunionconf"` Yunionagent ServiceDBCommonOptions `json:"yunionagent"` KubeServer ServiceDBCommonOptions `json:"kubeserver"` AnsibleServer ServiceDBCommonOptions `json:"ansibleserver"` Cloudnet ServiceDBCommonOptions `json:"cloudnet"` Cloudevent ServiceDBCommonOptions `json:"cloudevent"` APIGateway ServiceCommonOptions `json:"apiGateway"` Notify ServiceDBCommonOptions `json:"notify"` HostAgent HostConfig `json:"host"` BaremetalAgent BaremetalConfig `json:"baremetal"` S3gateway ServiceCommonOptions `json:"s3gateway"` Devtool ServiceDBCommonOptions `json:"devtool"` Meter MeterConfig `json:"meter"` AutoUpdate ServiceCommonOptions `json:"autoupdate"` EsxiAgent EsxiAgentConfig `json:"esxiagent"` }
func (*OnecloudClusterConfig) DeepCopy ¶
func (in *OnecloudClusterConfig) DeepCopy() *OnecloudClusterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnecloudClusterConfig.
func (*OnecloudClusterConfig) DeepCopyInto ¶
func (in *OnecloudClusterConfig) DeepCopyInto(out *OnecloudClusterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OnecloudClusterConfig) DeepCopyObject ¶
func (in *OnecloudClusterConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OnecloudClusterList ¶
type OnecloudClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []OnecloudCluster `json:"items"` }
OnecloudClusterList represents a list of Onecloud Clusters
func (*OnecloudClusterList) DeepCopy ¶
func (in *OnecloudClusterList) DeepCopy() *OnecloudClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnecloudClusterList.
func (*OnecloudClusterList) DeepCopyInto ¶
func (in *OnecloudClusterList) DeepCopyInto(out *OnecloudClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OnecloudClusterList) DeepCopyObject ¶
func (in *OnecloudClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OnecloudClusterSpec ¶
type OnecloudClusterSpec struct { // Etcd holds configuration for etcd Etcd Etcd `json:"etcd,omitempty"` // Mysql holds configuration for mysql Mysql Mysql `json:"mysql"` // Version is onecloud components version Version string `json:"version"` // CertSANs sets extra Subject Alternative Names for the Cluster signing cert. CertSANs []string // Services list non-headless services type used in OnecloudCluster Services []Service `json:"services,omitempty"` // ImageRepository defines default image registry ImageRepository string `json:"imageRepository"` // Region is cluster region Region string `json:"region"` // Zone is cluster first zone Zone string `json:"zone"` // Keystone holds configuration for keystone Keystone KeystoneSpec `json:"keystone"` // RegionServer holds configuration for region RegionServer RegionSpec `json:"regionServer"` // Scheduler holds configuration for scheduler Scheduler DeploymentSpec `json:"scheduler"` // Glance holds configuration for glance Glance StatefulDeploymentSpec `json:"glance"` // Climc holds configuration for climc Climc DeploymentSpec `json:"climc"` // Webconsole holds configuration for webconsole Webconsole DeploymentSpec `json:"webconsole"` // Logger holds configuration for log service Logger DeploymentSpec `json:"logger"` // Yunionconf holds configuration for yunionconf service Yunionconf DeploymentSpec `json:"yunionconf"` // Yunionagent holds configuration for yunionagent service Yunionagent StatefulDeploymentSpec `json:"yunionagent"` // Influxdb holds configuration for influxdb Influxdb StatefulDeploymentSpec `json:"influxdb"` // Kapacitor holds configuration for Kapacitor Kapacitor StatefulDeploymentSpec `json:"kapacitor"` // LoadBalancerEndpoint is upstream loadbalancer virtual ip address or DNS domain LoadBalancerEndpoint string `json:"loadBalancerEndpoint"` // APIGateway holds configuration for yunoinapi APIGateway DeploymentSpec `json:"apiGateway"` // Web holds configuration for web Web DeploymentSpec `json:"web"` // KubeServer holds configuration for kube-server service KubeServer DeploymentSpec `json:"kubeserver"` // AnsibleServer holds configuration for ansibleserver service AnsibleServer DeploymentSpec `json:"ansibleserver"` // Cloudnet holds configuration for cloudnet service Cloudnet DeploymentSpec `json:"cloudnet"` // Cloudevent holds configuration for cloudevent service Cloudevent DeploymentSpec `json:"cloudevent"` // Notify holds configuration for notify service Notify StatefulDeploymentSpec `json:"notify"` // HostAgent holds configuration for host HostAgent DaemonSetSpec `json:"hostagent"` // HostDeployer holds configuration for host-deployer HostDeployer DaemonSetSpec `json:"hostdeployer"` // BaremetalAgent holds configuration for baremetal agent BaremetalAgent StatefulDeploymentSpec `json:"baremetalagent"` // S3gateway holds configuration for s3gateway service S3gateway DeploymentSpec `json:"s3gateway"` // Devtool holds configuration for devtool service Devtool DeploymentSpec `json:"devtool"` // Meter holds configuration for meter Meter StatefulDeploymentSpec `json:"meter"` // AutoUpdate holds configuration for autoupdate AutoUpdate DeploymentSpec `json:"autoupdate"` // CloudmonPing holds configuration for ping-probe cronjob CloudmonPing CronJobSpec `json:"cloudmonping"` // CloudmonReportUsage holds configuration for report-usage cronjob CloudmonReportUsage CronJobSpec `json:"cloudmonreportusage"` // EsxiAgent hols configuration for esxi agent EsxiAgent StatefulDeploymentSpec `json:"esxiagent"` }
OnecloudClusterSpec describes the attributes that a user creates on a onecloud cluster
func (*OnecloudClusterSpec) DeepCopy ¶
func (in *OnecloudClusterSpec) DeepCopy() *OnecloudClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnecloudClusterSpec.
func (*OnecloudClusterSpec) DeepCopyInto ¶
func (in *OnecloudClusterSpec) DeepCopyInto(out *OnecloudClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OnecloudClusterStatus ¶
type OnecloudClusterStatus struct { ClusterID string `json:"clusterID,omitempty"` Keystone KeystoneStatus `json:"keystone,omitempty"` RegionServer RegionStatus `json:"region,omitempty"` Glance GlanceStatus `json:"glance,omitempty"` Scheduler DeploymentStatus `json:"scheduler,omitempty"` Webconsole DeploymentStatus `json:"webconsole,omitempty"` Influxdb DeploymentStatus `json:"influxdb,omitempty"` Kapacitor DeploymentStatus `json:"kapacitor,omitempty"` Logger DeploymentStatus `json:"logger,omitempty"` APIGateway DeploymentStatus `json:"apiGateway,omitempty"` Web DeploymentStatus `json:"web,omitempty"` Yunionconf DeploymentStatus `json:"yunionconf,omitempty"` Yunionagent DeploymentStatus `json:"yunionagent,omitempty"` KubeServer DeploymentStatus `json:"kubeserver,omitempty"` AnsibleServer DeploymentStatus `json:"ansibleserver,omitempty"` Cloudnet DeploymentStatus `json:"cloudnet,omitempty"` Cloudevent DeploymentStatus `json:"cloudevent,omitempty"` Notify DeploymentStatus `json:"notify,omitempty"` BaremetalAgent DeploymentStatus `json:"baremetalagent,omitempty"` S3gateway DeploymentStatus `json:"s3gateway,omitempty"` Devtool DeploymentStatus `json:"devtool,omitempty"` Meter MeterStatus `json:"meter,omitempty"` AutoUpdate DeploymentStatus `json:"autoupdate,omitempty"` EsxiAgent DeploymentStatus `json:"esxiagent,omitempty"` }
OnecloudClusterStatus describes cluster status
func (*OnecloudClusterStatus) DeepCopy ¶
func (in *OnecloudClusterStatus) DeepCopy() *OnecloudClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnecloudClusterStatus.
func (*OnecloudClusterStatus) DeepCopyInto ¶
func (in *OnecloudClusterStatus) DeepCopyInto(out *OnecloudClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegionConfig ¶
type RegionConfig struct {
ServiceDBCommonOptions
}
func (*RegionConfig) DeepCopy ¶
func (in *RegionConfig) DeepCopy() *RegionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionConfig.
func (*RegionConfig) DeepCopyInto ¶
func (in *RegionConfig) DeepCopyInto(out *RegionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegionSpec ¶
type RegionSpec struct {
DeploymentSpec
}
func (*RegionSpec) DeepCopy ¶
func (in *RegionSpec) DeepCopy() *RegionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionSpec.
func (*RegionSpec) DeepCopyInto ¶
func (in *RegionSpec) DeepCopyInto(out *RegionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegionStatus ¶
type RegionStatus struct {
DeploymentStatus
}
func (*RegionStatus) DeepCopy ¶
func (in *RegionStatus) DeepCopy() *RegionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionStatus.
func (*RegionStatus) DeepCopyInto ¶
func (in *RegionStatus) DeepCopyInto(out *RegionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequirement ¶
type ResourceRequirement struct { // CPU is how many cores a pod requires CPU string `json:"cpu,omitempty"` // Memory is how much memory a pod requires Memory string `json:"memory,omitempty"` // Storage is storage size a pod requires Storage string `json:"storage,omitempty"` }
func (*ResourceRequirement) DeepCopy ¶
func (in *ResourceRequirement) DeepCopy() *ResourceRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirement.
func (*ResourceRequirement) DeepCopyInto ¶
func (in *ResourceRequirement) DeepCopyInto(out *ResourceRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
Service represent service type used in OnecloudCluster
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBaseConfig ¶
type ServiceBaseConfig struct {
Port int `json:"port"`
}
func (*ServiceBaseConfig) DeepCopy ¶
func (in *ServiceBaseConfig) DeepCopy() *ServiceBaseConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBaseConfig.
func (*ServiceBaseConfig) DeepCopyInto ¶
func (in *ServiceBaseConfig) DeepCopyInto(out *ServiceBaseConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceCommonOptions ¶
type ServiceCommonOptions struct { ServiceBaseConfig CloudUser }
func (*ServiceCommonOptions) DeepCopy ¶
func (in *ServiceCommonOptions) DeepCopy() *ServiceCommonOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCommonOptions.
func (*ServiceCommonOptions) DeepCopyInto ¶
func (in *ServiceCommonOptions) DeepCopyInto(out *ServiceCommonOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceDBCommonOptions ¶
type ServiceDBCommonOptions struct { ServiceCommonOptions DB DBConfig `json:"db"` }
func (*ServiceDBCommonOptions) DeepCopy ¶
func (in *ServiceDBCommonOptions) DeepCopy() *ServiceDBCommonOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDBCommonOptions.
func (*ServiceDBCommonOptions) DeepCopyInto ¶
func (in *ServiceDBCommonOptions) DeepCopyInto(out *ServiceDBCommonOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulDeploymentSpec ¶
type StatefulDeploymentSpec struct { DeploymentSpec StorageClassName string `json:"storageClassName,omitempty"` }
func (*StatefulDeploymentSpec) DeepCopy ¶
func (in *StatefulDeploymentSpec) DeepCopy() *StatefulDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulDeploymentSpec.
func (*StatefulDeploymentSpec) DeepCopyInto ¶
func (in *StatefulDeploymentSpec) DeepCopyInto(out *StatefulDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebconsoleStatus ¶
type WebconsoleStatus struct {
DeploymentStatus
}
func (*WebconsoleStatus) DeepCopy ¶
func (in *WebconsoleStatus) DeepCopy() *WebconsoleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebconsoleStatus.
func (*WebconsoleStatus) DeepCopyInto ¶
func (in *WebconsoleStatus) DeepCopyInto(out *WebconsoleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.