v1alpha1

package
v0.0.0-...-6c4e8d0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API +groupName=onecloud.yunion.io

Index

Constants

View Source
const (
	DefaultVersion                    = "latest"
	DefaultOnecloudRegion             = "region0"
	DefaultOnecloudRegionDNSDomain    = "cloud.wanjiedata.io"
	DefaultOnecloudZone               = "zone0"
	DefaultOnecloudWire               = "bcast0"
	DefaultImageRepository            = "hub.wanjiedata.com/cloudpods"
	DefaultVPCId                      = "default"
	DefaultGlanceStorageSize          = "100G"
	DefaultMeterStorageSize           = "100G"
	DefaultInfluxdbStorageSize        = "20G"
	DefaultVictoriaMetricsStorageSize = "20G"
	DefaultNotifyStorageSize          = "1G" // for plugin template
	DefaultBaremetalStorageSize       = "100G"
	DefaultEsxiAgentStorageSize       = "30G"
	// rancher local-path-provisioner: https://github.com/rancher/local-path-provisioner
	DefaultStorageClass = "local-path"

	DefaultOvnVersion   = "2.12.4"
	DefaultOvnImageName = "openvswitch"
	DefaultOvnImageTag  = DefaultOvnVersion + "-2"

	DefaultSdnAgentImageName = "sdnagent"

	DefaultWebOverviewImageName = "dashboard-overview"
	DefaultWebDocsImageName     = "docs-ee"

	DefaultNotifyPluginsImageName = "notify-plugins"

	DefaultHostImageName = "host-image"
	DefaultHostImageTag  = "v1.0.5"

	DefaultHostHealthName = "host-health"
	DefaultHostHealthTag  = "v0.0.1"

	DefaultInfluxdbImageVersion = "1.7.7"

	DefaultVictoriaMetricsImageVersion = "v1.95.1"

	DefaultTelegrafImageName     = "telegraf"
	DefaultTelegrafImageTag      = "release-1.19.2-2"
	DefaultTelegrafInitImageName = "telegraf-init"
	DefaultTelegrafInitImageTag  = "release-1.19.2-0"
	DefaultTelegrafRaidImageName = "telegraf-raid-plugin"
	DefaultTelegrafRaidImageTag  = "release-1.6.4"

	DefaultHostQemuVersion = "4.2.0"

	DefaultEChartSSRVersion = "v0.0.1"
	DefaultGuacdVersion     = "1.5.3"
)
View Source
const (
	OnecloudClusterResourceKind   = "OnecloudCluster"
	OnecloudClusterResourcePlural = "onecloudclusters"

	EtcdClusterPhaseNone     EtcdClusterPhase = ""
	EtcdClusterPhaseCreating                  = "Creating"
	EtcdClusterPhaseRunning                   = "Running"
	EtcdClusterPhaseFailed                    = "Failed"

	EtcdClusterConditionAvailable  EtcdClusterConditionType = "Available"
	EtcdClusterConditionRecovering                          = "Recovering"
	EtcdClusterConditionScaling                             = "Scaling"
	EtcdClusterConditionUpgrading                           = "Upgrading"
)
View Source
const GroupName = "onecloud.yunion.io"

GroupName is the group name use in this package

Variables

View Source
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
)
View Source
var (
	StartingDeadlineSeconds int64   = 300
	CronjobMonitorExpand    float64 = 1.2
)
View Source
var (
	ClearComponent bool
)
View Source
var (
	OnecloudClusterCRDName = OnecloudClusterResourcePlural + "." + GroupName
)
View Source
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

func RegisterDefaults(scheme *runtime.Scheme) error

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_KeystoneSpec

func SetDefaults_KeystoneSpec(
	obj *KeystoneSpec,
	imageRepo, version string,
	useHyperImage, isEE bool)

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_RegionDNSSpec

func SetDefaults_RegionDNSSpec(obj *RegionDNSSpec, imageRepo, version string)

func SetDefaults_RegionSpec

func SetDefaults_RegionSpec(
	obj *RegionSpec,
	imageRepo, version string,
	useHyperImage, isEE bool,
)

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_ServiceSpec

func SetDefaults_ServiceSpec(obj *ServiceSpec, port int)

func SetDefaults_StatefulDeploymentSpec

func SetDefaults_StatefulDeploymentSpec(
	ctype ComponentType,
	obj *StatefulDeploymentSpec, defaultSize string,
	imageRepo, version string,
	useHyperImage bool, isEE bool)

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 APIGatewaySpec

type APIGatewaySpec struct {
	DeploymentSpec

	APIService ServiceSpec `json:"apiService"`
	WSService  ServiceSpec `json:"wsService"`

	// Allowed hostname in Origin header.  Default to allow all
	CorsHosts []string `json:"corsHosts"`
}

func (*APIGatewaySpec) DeepCopy

func (in *APIGatewaySpec) DeepCopy() *APIGatewaySpec

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

func (*APIGatewaySpec) DeepCopyInto

func (in *APIGatewaySpec) DeepCopyInto(out *APIGatewaySpec)

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

type BaremetalAgentStatus

type BaremetalAgentStatus struct {
	DeploymentStatus
	ZoneBaremetalAgent map[string]*DeploymentStatus `json:"zoneBaremetalAgent,omitempty"`
}

func (*BaremetalAgentStatus) DeepCopy

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

func (*BaremetalAgentStatus) DeepCopyInto

func (in *BaremetalAgentStatus) DeepCopyInto(out *BaremetalAgentStatus)

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

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 Clickhouse

type Clickhouse Mysql

Clickhouse describe a clickhouse server

func (*Clickhouse) DeepCopy

func (in *Clickhouse) DeepCopy() *Clickhouse

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

func (*Clickhouse) DeepCopyInto

func (in *Clickhouse) DeepCopyInto(out *Clickhouse)

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

type CloudUser

type CloudUser struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (*CloudUser) DeepCopy

func (in *CloudUser) DeepCopy() *CloudUser

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

func (*CloudUser) DeepCopyInto

func (in *CloudUser) DeepCopyInto(out *CloudUser)

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

type CloudmonSpec

type CloudmonSpec struct {
	DeploymentSpec
	Service              ServiceSpec `json:"service"`
	CloudmonPingDuration uint
}

func (*CloudmonSpec) DeepCopy

func (in *CloudmonSpec) DeepCopy() *CloudmonSpec

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

func (*CloudmonSpec) DeepCopyInto

func (in *CloudmonSpec) DeepCopyInto(out *CloudmonSpec)

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

type CloudmuxSpec

type CloudmuxSpec 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"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}

func (*CloudmuxSpec) DeepCopy

func (in *CloudmuxSpec) DeepCopy() *CloudmuxSpec

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

func (*CloudmuxSpec) DeepCopyInto

func (in *CloudmuxSpec) DeepCopyInto(out *CloudmuxSpec)

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

func (*CloudmuxSpec) FillBySpec

func (es *CloudmuxSpec) FillBySpec(dSpec *DeploymentSpec)

func (*CloudmuxSpec) ToDeploymentSpec

func (es *CloudmuxSpec) ToDeploymentSpec() *DeploymentSpec

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"
	// GuacdComponentType is guacd component type
	GuacdComponentType ComponentType = "guacd"
	// 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"
	// VictoriaMetricsComponentType is VictoriaMetrics component type
	VictoriaMetricsComponentType ComponentType = "victoria-metrics"
	// MonitorComponentType is alert monitor component type
	MonitorComponentType ComponentType = "monitor"
	// 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"
	CloudproxyComponentType     ComponentType = "cloudproxy"
	CloudeventComponentType     ComponentType = "cloudevent"
	NotifyComponentType         ComponentType = "notify"
	HostComponentType           ComponentType = "host"
	HostDeployerComponentType   ComponentType = "host-deployer"
	HostImageComponentType      ComponentType = "host-image"
	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"
	// CloudmonReportServerAli is report-usage cronjob
	CloudmonReportServerComponentType ComponentType = "cloudmon-report-server"
	// CloudmonReportHost is report-host cronjob
	CloudmonReportHostComponentType ComponentType = "cloudmon-report-host"
	// Cloudmon is report monitor data deployment
	CloudmonComponentType ComponentType = "cloudmon"
	// Esxi Agent
	EsxiAgentComponentType ComponentType = "esxi-agent"
	// Onecloud Reource Operator
	ServiceOperatorComponentType ComponentType = "onecloud-service-operator"

	OvnNorthComponentType ComponentType = "ovn-north"
	OvnHostComponentType  ComponentType = "ovn-host"
	VpcAgentComponentType ComponentType = "vpcagent"

	RegionDNSComponentType ComponentType = "region-dns"

	// Etcd component types
	EtcdComponentType       ComponentType = "etcd"
	EtcdClientComponentType ComponentType = "etcd-client"

	ItsmComponentType ComponentType = "itsm"
	// Telegraf is monitor agent component type
	TelegrafComponentType ComponentType = "telegraf"
	CloudIdComponentType  ComponentType = "cloudid"

	SuggestionComponentType ComponentType = "suggestion"

	ScheduledtaskComponentType ComponentType = "scheduledtask"

	APIMapComponentType ComponentType = "apimap"

	MonitorStackComponentType ComponentType = "monitor-stack"

	ReportComponentType ComponentType = "report"

	LbagentComponentType ComponentType = "lbagent"

	EChartsSSRComponentType ComponentType = "echarts-ssr"

	HostHealthComponentType ComponentType = "host-health"

	BastionHostComponentType ComponentType = "bastionhost"
	CloudmuxComponentType    ComponentType = "cloudmux"

	ExtdbComponentType ComponentType = "extdb"
)

func (ComponentType) String

func (ct ComponentType) String() string

type ContainerSpec

type ContainerSpec struct {
	Image           string               `json:"image"`
	Repository      string               `json:"repository"`
	ImageName       string               `json:"imageName"`
	Tag             string               `json:"tag"`
	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"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,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

func (in *DBConfig) DeepCopy() *DBConfig

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

func (*DBConfig) DeepCopyInto

func (in *DBConfig) DeepCopyInto(out *DBConfig)

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"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	UpdateStrategy   string                        `json:"updateStrategy,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 DeploymentServicePortSpec

type DeploymentServicePortSpec struct {
	DeploymentSpec
	Service ServiceSpec `json:"service"`
}

func (*DeploymentServicePortSpec) DeepCopy

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

func (*DeploymentServicePortSpec) DeepCopyInto

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

type DeploymentServiceSpec

type DeploymentServiceSpec struct {
	DeploymentSpec
	DisableTLS bool `json:"disableTLS"`
}

func (*DeploymentServiceSpec) DeepCopy

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

func (*DeploymentServiceSpec) DeepCopyInto

func (in *DeploymentServiceSpec) DeepCopyInto(out *DeploymentServiceSpec)

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

type DeploymentSpec

type DeploymentSpec struct {
	ContainerSpec
	DNSConfig        *corev1.PodDNSConfig          `json:"dnsConfig"`
	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"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,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 EChartsSSRSpec

type EChartsSSRSpec 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"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}

func (*EChartsSSRSpec) DeepCopy

func (in *EChartsSSRSpec) DeepCopy() *EChartsSSRSpec

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

func (*EChartsSSRSpec) DeepCopyInto

func (in *EChartsSSRSpec) DeepCopyInto(out *EChartsSSRSpec)

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

func (*EChartsSSRSpec) FillBySpec

func (es *EChartsSSRSpec) FillBySpec(dSpec *DeploymentSpec)

func (*EChartsSSRSpec) ToDeploymentSpec

func (es *EChartsSSRSpec) ToDeploymentSpec() *DeploymentSpec

type EctdStatus

type EctdStatus struct {
	// Phase is the cluster running phase
	Phase  EtcdClusterPhase `json:"phase"`
	Reason string           `json:"reason,omitempty"`

	// Condition keeps track of all cluster conditions, if they exist.
	Conditions []EtcdClusterCondition `json:"conditions,omitempty"`

	// Size is the current size of the cluster
	Size int `json:"size"`

	// ServiceName is the LB service for accessing etcd nodes.
	ServiceName string `json:"serviceName,omitempty"`

	// ClientPort is the port for etcd client to access.
	// It's the same on client LB service and etcd nodes.
	ClientPort     int `json:"clientPort,omitempty"`
	ClientNodePort int `json:"clientNodePort,omitempty"`

	// Members are the etcd members in the cluster
	Members EtcdMembersStatus `json:"members"`
	// CurrentVersion is the current cluster version
	CurrentVersion string `json:"currentVersion"`
	// TargetVersion is the version the cluster upgrading to.
	// If the cluster is not upgrading, TargetVersion is empty.
	TargetVersion string `json:"targetVersion"`
}

func (*EctdStatus) DeepCopy

func (in *EctdStatus) DeepCopy() *EctdStatus

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

func (*EctdStatus) DeepCopyInto

func (in *EctdStatus) DeepCopyInto(out *EctdStatus)

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 EsxiAgentStatus

type EsxiAgentStatus struct {
	DeploymentStatus
	ZoneEsxiAgent map[string]*DeploymentStatus `json:"zoneEsxiAgent,omitempty"`
}

func (*EsxiAgentStatus) DeepCopy

func (in *EsxiAgentStatus) DeepCopy() *EsxiAgentStatus

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

func (*EsxiAgentStatus) DeepCopyInto

func (in *EsxiAgentStatus) DeepCopyInto(out *EsxiAgentStatus)

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

type Etcd

type Etcd struct {
	// etcd operator cluster spec
	EtcdClusterSpec
	// disable etcd
	Disable bool `json:"disable"`
	// enable tls
	EnableTls bool `json:"enableTls"`
	// client service nodePort
	ClientNodePort int `json:"clientNodePort"`
}

func (*Etcd) DeepCopy

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto

func (in *Etcd) DeepCopyInto(out *Etcd)

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

type EtcdClusterCondition

type EtcdClusterCondition struct {
	// Type of cluster condition.
	Type EtcdClusterConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

ClusterCondition represents one current condition of an etcd cluster. A condition might not show up if it is not happening. For example, if a cluster is not upgrading, the Upgrading condition would not show up. If a cluster is upgrading and encountered a problem that prevents the upgrade, the Upgrading condition's status will would be False and communicate the problem back.

func (*EtcdClusterCondition) DeepCopy

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

func (*EtcdClusterCondition) DeepCopyInto

func (in *EtcdClusterCondition) DeepCopyInto(out *EtcdClusterCondition)

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

type EtcdClusterConditionType

type EtcdClusterConditionType string

type EtcdClusterPhase

type EtcdClusterPhase string

type EtcdClusterSpec

type EtcdClusterSpec struct {
	// Size is the expected size of the etcd cluster.
	// The etcd-operator will eventually make the size of the running
	// cluster equal to the expected size.
	// The vaild range of the size is from 1 to 7.
	Size int `json:"size"`
	// Repository is the name of the repository that hosts
	// etcd container images. It should be direct clone of the repository in official
	// release:
	//   https://github.com/coreos/etcd/releases
	// That means, it should have exact same tags and the same meaning for the tags.
	//
	// By default, it is `quay.io/coreos/etcd`.
	Repository string `json:"repository,omitempty"`

	// Version is the expected version of the etcd cluster.
	// The etcd-operator will eventually make the etcd cluster version
	// equal to the expected version.
	//
	// The version must follow the [semver]( http://semver.org) format, for example "3.2.13".
	// Only etcd released versions are supported: https://github.com/coreos/etcd/releases
	//
	// If version is not set, default is "3.2.13".
	Version string `json:"version,omitempty"`

	// Paused is to pause the control of the operator for the etcd cluster.
	Paused bool `json:"paused,omitempty"`

	// Pod defines the policy to create pod for the etcd pod.
	//
	// Updating Pod does not take effect on any existing etcd pods.
	Pod *PodPolicy `json:"pod,omitempty"`

	// etcd cluster TLS configuration
	TLS *TLSPolicy `json:"TLS,omitempty"`
}

func (*EtcdClusterSpec) DeepCopy

func (in *EtcdClusterSpec) DeepCopy() *EtcdClusterSpec

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

func (*EtcdClusterSpec) DeepCopyInto

func (in *EtcdClusterSpec) DeepCopyInto(out *EtcdClusterSpec)

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

type EtcdMembersStatus

type EtcdMembersStatus struct {
	// Ready are the etcd members that are ready to serve requests
	// The member names are the same as the etcd pod names
	Ready []string `json:"ready,omitempty"`
	// Unready are the etcd members not ready to serve requests
	Unready []string `json:"unready,omitempty"`
}

func (*EtcdMembersStatus) DeepCopy

func (in *EtcdMembersStatus) DeepCopy() *EtcdMembersStatus

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

func (*EtcdMembersStatus) DeepCopyInto

func (in *EtcdMembersStatus) DeepCopyInto(out *EtcdMembersStatus)

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 GlanceSpec

type GlanceSpec struct {
	StatefulDeploymentSpec
	Service    ServiceSpec `json:"service"`
	SwitchToS3 bool        `json:"switchToS3"`
}

func (*GlanceSpec) DeepCopy

func (in *GlanceSpec) DeepCopy() *GlanceSpec

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

func (*GlanceSpec) DeepCopyInto

func (in *GlanceSpec) DeepCopyInto(out *GlanceSpec)

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 GrafanaConfig

type GrafanaConfig struct {
	DB DBConfig `json:"db"`
}

func (*GrafanaConfig) DeepCopy

func (in *GrafanaConfig) DeepCopy() *GrafanaConfig

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

func (*GrafanaConfig) DeepCopyInto

func (in *GrafanaConfig) DeepCopyInto(out *GrafanaConfig)

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

type HostAgentSpec

type HostAgentSpec struct {
	DaemonSetSpec
	SdnAgent      ContainerSpec
	OvnController ContainerSpec
	HostHealth    ContainerSpec

	OvnEncapIpDetectionMethod string `json:"OvnEncapIpDetectionMethod"`

	DisableSecurityGroup   bool   `json:"disableSecurityGroup"`
	ManageNtpConfiguration bool   `json:"manageNtpConfiguration"`
	HostCpuPassthrough     *bool  `json:"hostCpuPassthrough"`
	DefaultQemuVersion     string `json:"defaultQemuVersion"`
}

func (*HostAgentSpec) DeepCopy

func (in *HostAgentSpec) DeepCopy() *HostAgentSpec

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

func (*HostAgentSpec) DeepCopyInto

func (in *HostAgentSpec) DeepCopyInto(out *HostAgentSpec)

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 InfluxdbSpec

type InfluxdbSpec struct {
	StatefulDeploymentSpec
	Service ServiceSpec `json:"service"`
}

func (*InfluxdbSpec) DeepCopy

func (in *InfluxdbSpec) DeepCopy() *InfluxdbSpec

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

func (*InfluxdbSpec) DeepCopyInto

func (in *InfluxdbSpec) DeepCopyInto(out *InfluxdbSpec)

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

type ItsmConfig

type ItsmConfig struct {
	ServiceDBCommonOptions
	SecondDatabase string `json:"secondDatabase"`
	EncryptionKey  string `json:"encryptionKey"`
}

func (*ItsmConfig) DeepCopy

func (in *ItsmConfig) DeepCopy() *ItsmConfig

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

func (*ItsmConfig) DeepCopyInto

func (in *ItsmConfig) DeepCopyInto(out *ItsmConfig)

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"`

	ClickhouseConf DBConfig `json:"clickhouse_conf"`
}

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 {
	DeploymentServiceSpec
	PublicService     ServiceSpec `json:"publicService"`
	AdminService      ServiceSpec `json:"adminService"`
	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 LbagentConfig

type LbagentConfig struct {
	ServiceCommonOptions
}

func (*LbagentConfig) DeepCopy

func (in *LbagentConfig) DeepCopy() *LbagentConfig

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

func (*LbagentConfig) DeepCopyInto

func (in *LbagentConfig) DeepCopyInto(out *LbagentConfig)

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

type LbagentSpec

type LbagentSpec struct {
	DaemonSetSpec

	OvnController ContainerSpec
}

func (*LbagentSpec) DeepCopy

func (in *LbagentSpec) DeepCopy() *LbagentSpec

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

func (*LbagentSpec) DeepCopyInto

func (in *LbagentSpec) DeepCopyInto(out *LbagentSpec)

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

type MemberSecret

type MemberSecret struct {
	// PeerSecret is the secret containing TLS certs used by each etcd member pod
	// for the communication between etcd peers.
	PeerSecret string `json:"peerSecret,omitempty"`
	// ServerSecret is the secret containing TLS certs used by each etcd member pod
	// for the communication between etcd server and its clients.
	ServerSecret string `json:"serverSecret,omitempty"`
}

func (*MemberSecret) DeepCopy

func (in *MemberSecret) DeepCopy() *MemberSecret

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

func (*MemberSecret) DeepCopyInto

func (in *MemberSecret) DeepCopyInto(out *MemberSecret)

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 MeterSpec

type MeterSpec struct {
	StatefulDeploymentSpec
	Service ServiceSpec `json:"service"`
}

func (*MeterSpec) DeepCopy

func (in *MeterSpec) DeepCopy() *MeterSpec

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

func (*MeterSpec) DeepCopyInto

func (in *MeterSpec) DeepCopyInto(out *MeterSpec)

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 Minio

type Minio struct {
	Enable bool      `json:"enable"`
	Mode   MinioMode `json:"mode"`
}

Minio hols configration for minio S3 object storage backend

func (*Minio) DeepCopy

func (in *Minio) DeepCopy() *Minio

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

func (*Minio) DeepCopyInto

func (in *Minio) DeepCopyInto(out *Minio)

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

type MinioMode

type MinioMode string
const (
	MinioModeStandalone  MinioMode = "standalone"
	MinioModeDistributed MinioMode = "distributed"
)

type MonitorStackComponentStatus

type MonitorStackComponentStatus struct {
	ImageStatus *ImageStatus `json:"imageStatus,omitempty"`
}

func (*MonitorStackComponentStatus) DeepCopy

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

func (*MonitorStackComponentStatus) DeepCopyInto

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

type MonitorStackGrafanaSpec

type MonitorStackGrafanaSpec struct {
	Disable        bool                         `json:"disable"`
	AdminUser      string                       `json:"adminUser"`
	AdminPassword  string                       `json:"adminPassword"`
	Host           string                       `json:"host"`
	EnforceDomain  bool                         `json:"enforceDomain"`
	DisableSubpath bool                         `json:"disableSubpath"`
	Subpath        string                       `json:"subpath"`
	OAuth          MonitorStackGrafanaSpecOAuth `json:"oauth"`
}

func (*MonitorStackGrafanaSpec) DeepCopy

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

func (*MonitorStackGrafanaSpec) DeepCopyInto

func (in *MonitorStackGrafanaSpec) DeepCopyInto(out *MonitorStackGrafanaSpec)

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

type MonitorStackGrafanaSpecOAuth

type MonitorStackGrafanaSpecOAuth struct {
	Enabled           bool   `json:"enabled"`
	ClientId          string `json:"clientId"`
	ClientSecret      string `json:"clientSecret"`
	Scopes            string `json:"scopes"`
	AuthURL           string `json:"authURL"`
	TokenURL          string `json:"tokenURL"`
	APIURL            string `json:"apiURL"`
	AllowedDomains    string `json:"allowedDomains"`
	AllowSignUp       bool   `json:"allowSignUp"`
	RoleAttributePath string `json:"roleAttributePath"`
}

func (*MonitorStackGrafanaSpecOAuth) DeepCopy

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

func (*MonitorStackGrafanaSpecOAuth) DeepCopyInto

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

type MonitorStackGrafanaStatus

type MonitorStackGrafanaStatus struct {
	MonitorStackComponentStatus
}

func (*MonitorStackGrafanaStatus) DeepCopy

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

func (*MonitorStackGrafanaStatus) DeepCopyInto

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

type MonitorStackLokiSpec

type MonitorStackLokiSpec struct {
	Disable           bool              `json:"disable"`
	ObjectStoreConfig ObjectStoreConfig `json:"objectStoreConfig"`
}

func (*MonitorStackLokiSpec) DeepCopy

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

func (*MonitorStackLokiSpec) DeepCopyInto

func (in *MonitorStackLokiSpec) DeepCopyInto(out *MonitorStackLokiSpec)

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

type MonitorStackLokiStatus

type MonitorStackLokiStatus struct {
	MonitorStackComponentStatus
}

func (*MonitorStackLokiStatus) DeepCopy

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

func (*MonitorStackLokiStatus) DeepCopyInto

func (in *MonitorStackLokiStatus) DeepCopyInto(out *MonitorStackLokiStatus)

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

type MonitorStackMinioSpec

type MonitorStackMinioSpec struct {
	Mode MinioMode `json:"mode"`
	/*
	 * StorageClassName string    `json:"storageClassName,omitempty"`
	 * StorageSizeMB    string    `json:"storageSizeMB"`
	 */
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
}

func (*MonitorStackMinioSpec) DeepCopy

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

func (*MonitorStackMinioSpec) DeepCopyInto

func (in *MonitorStackMinioSpec) DeepCopyInto(out *MonitorStackMinioSpec)

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

type MonitorStackMinioStatus

type MonitorStackMinioStatus struct {
	MonitorStackComponentStatus

	Replicas      int `json:"replicas"`
	DrivesPerNode int `json:"drivesPerNode"`
}

func (*MonitorStackMinioStatus) DeepCopy

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

func (*MonitorStackMinioStatus) DeepCopyInto

func (in *MonitorStackMinioStatus) DeepCopyInto(out *MonitorStackMinioStatus)

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

type MonitorStackPrometheusSpec

type MonitorStackPrometheusSpec struct {
	Disable           *bool             `json:"disable,omitempty"`
	ThanosSidecarSpec ThanosSidecarSpec `json:"thanosSidecar"`
}

func (*MonitorStackPrometheusSpec) DeepCopy

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

func (*MonitorStackPrometheusSpec) DeepCopyInto

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

type MonitorStackPrometheusStatus

type MonitorStackPrometheusStatus struct {
	MonitorStackComponentStatus
}

func (*MonitorStackPrometheusStatus) DeepCopy

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

func (*MonitorStackPrometheusStatus) DeepCopyInto

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

type MonitorStackSpec

type MonitorStackSpec struct {
	Disable    bool                       `json:"disable"`
	Minio      MonitorStackMinioSpec      `json:"minio"`
	Grafana    MonitorStackGrafanaSpec    `json:"grafana"`
	Loki       MonitorStackLokiSpec       `json:"loki"`
	Prometheus MonitorStackPrometheusSpec `json:"prometheus"`
	Thanos     MonitorStackThanosSpec     `json:"thanos"`
}

func (*MonitorStackSpec) DeepCopy

func (in *MonitorStackSpec) DeepCopy() *MonitorStackSpec

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

func (*MonitorStackSpec) DeepCopyInto

func (in *MonitorStackSpec) DeepCopyInto(out *MonitorStackSpec)

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

type MonitorStackStatus

type MonitorStackStatus struct {
	MinioStatus      MonitorStackMinioStatus      `json:"minioStatus"`
	GrafanaStatus    MonitorStackGrafanaStatus    `json:"grafanaStatus"`
	LokiStatus       MonitorStackLokiStatus       `json:"lokiStatus"`
	PrometheusStatus MonitorStackPrometheusStatus `json:"prometheusStatus"`
	ThanosStatus     MonitorStackThanosStatus     `json:"thanosStatus"`
}

func (*MonitorStackStatus) DeepCopy

func (in *MonitorStackStatus) DeepCopy() *MonitorStackStatus

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

func (*MonitorStackStatus) DeepCopyInto

func (in *MonitorStackStatus) DeepCopyInto(out *MonitorStackStatus)

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

type MonitorStackThanosSpec

type MonitorStackThanosSpec struct {
	ObjectStoreConfig ObjectStoreConfig `json:"objectStoreConfig"`
}

func (*MonitorStackThanosSpec) DeepCopy

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

func (*MonitorStackThanosSpec) DeepCopyInto

func (in *MonitorStackThanosSpec) DeepCopyInto(out *MonitorStackThanosSpec)

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

type MonitorStackThanosStatus

type MonitorStackThanosStatus struct {
	MonitorStackComponentStatus
}

func (*MonitorStackThanosStatus) DeepCopy

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

func (*MonitorStackThanosStatus) DeepCopyInto

func (in *MonitorStackThanosStatus) DeepCopyInto(out *MonitorStackThanosStatus)

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 a mysql server

func (*Mysql) DeepCopy

func (in *Mysql) DeepCopy() *Mysql

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

func (*Mysql) DeepCopyInto

func (in *Mysql) DeepCopyInto(out *Mysql)

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

type NotifySpec

type NotifySpec struct {
	StatefulDeploymentSpec
	Service ServiceSpec `json:"service"`

	Plugins ContainerSpec `json:"plugins"`
}

func (*NotifySpec) DeepCopy

func (in *NotifySpec) DeepCopy() *NotifySpec

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

func (*NotifySpec) DeepCopyInto

func (in *NotifySpec) DeepCopyInto(out *NotifySpec)

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

type ObjectStoreConfig

type ObjectStoreConfig struct {
	Bucket    string `json:"bucket"`
	Endpoint  string `json:"endpoint"`
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
}

func (*ObjectStoreConfig) DeepCopy

func (in *ObjectStoreConfig) DeepCopy() *ObjectStoreConfig

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

func (*ObjectStoreConfig) DeepCopyInto

func (in *ObjectStoreConfig) DeepCopyInto(out *ObjectStoreConfig)

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.

func (*OnecloudCluster) GetRegion

func (oc *OnecloudCluster) GetRegion() string

func (*OnecloudCluster) GetZone

func (oc *OnecloudCluster) GetZone(zoneName string) string

func (*OnecloudCluster) GetZones

func (oc *OnecloudCluster) GetZones() []string

type OnecloudClusterConfig

type OnecloudClusterConfig struct {
	metav1.TypeMeta

	Keystone        KeystoneConfig         `json:"keystone"`
	RegionServer    RegionConfig           `json:"region"`
	Glance          GlanceConfig           `json:"glance"`
	Webconsole      ServiceDBCommonOptions `json:"webconsole"`
	Logger          ServiceDBCommonOptions `json:"logger"`
	Yunionconf      ServiceDBCommonOptions `json:"yunionconf"`
	Yunionagent     ServiceDBCommonOptions `json:"yunionagent"`
	KubeServer      ServiceDBCommonOptions `json:"kubeserver"`
	AnsibleServer   ServiceDBCommonOptions `json:"ansibleserver"`
	Monitor         ServiceDBCommonOptions `json:"monitor"`
	Cloudnet        ServiceDBCommonOptions `json:"cloudnet"`
	Cloudproxy      ServiceDBCommonOptions `json:"cloudproxy"`
	Cloudevent      ServiceDBCommonOptions `json:"cloudevent"`
	APIGateway      ServiceCommonOptions   `json:"apiGateway"`
	Cloudmon        ServiceCommonOptions   `json:"cloudmon"`
	Notify          ServiceDBCommonOptions `json:"notify"`
	HostAgent       HostConfig             `json:"host"`
	Lbagent         LbagentConfig          `json:"lbagent"`
	BaremetalAgent  BaremetalConfig        `json:"baremetal"`
	S3gateway       ServiceCommonOptions   `json:"s3gateway"`
	Devtool         ServiceDBCommonOptions `json:"devtool"`
	Meter           MeterConfig            `json:"meter"`
	AutoUpdate      ServiceDBCommonOptions `json:"autoupdate"`
	EsxiAgent       EsxiAgentConfig        `json:"esxiagent"`
	VpcAgent        VpcAgentConfig         `json:"vpcagent"`
	ServiceOperator ServiceCommonOptions   `json:"onecloudServiceOperator"`
	Itsm            ItsmConfig             `json:"itsm"`
	CloudId         ServiceDBCommonOptions `json:"cloudid"`
	Report          ServiceDBCommonOptions `json:"report"`
	Grafana         GrafanaConfig          `json:"grafana"`
	BastionHost     ServiceDBCommonOptions `json:"bastionHost"`
	Extdb           ServiceDBCommonOptions `json:"extdb"`
}

func (*OnecloudClusterConfig) DeepCopy

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 {
	// DisableResourceManagement disable container cgroup resource limits and requests
	DisableResourceManagement bool `json:"disableResourceManagement"`
	// DisableLocalVpc disables vpc components
	DisableLocalVpc bool `json:"disableLocalVpc"`
	// EnableCloudNet
	EnableCloudNet bool `json:"enableCloudNet"`
	// EnableS3Gateway
	EnableS3Gateway bool `json:"enableS3Gateway"`
	// ProductVersion defines which product version used
	ProductVersion ProductVersion `json:"productVersion"`
	// UseHyperImage uses the cloudpods packed image to run components
	UseHyperImage bool `json:"useHyperImage"`
	// Etcd holds configuration for etcd
	Etcd Etcd `json:"etcd,omitempty"`
	// Mysql holds configuration for mysql
	Mysql Mysql `json:"mysql"`
	// Clickhouse holds configuration for clickhouse
	Clickhouse Clickhouse `json:"clickhouse"`
	// Version is onecloud components version
	Version string `json:"version"`
	// CertSANs sets extra Subject Alternative Names for the Cluster signing cert.
	CertSANs []string `json:"certSANs"`
	// Services list non-headless services type used in OnecloudCluster
	Services []Service `json:"services,omitempty"`
	// Minio holds configuration for minio S3 storage backend
	Minio Minio `json:"minio"`
	// 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"`
	// Custom zones is cluster another zones
	CustomZones []string `json:"customZones"`
	// Keystone holds configuration for keystone
	Keystone KeystoneSpec `json:"keystone"`
	// RegionServer holds configuration for region
	RegionServer RegionSpec `json:"regionServer"`
	// RegionDNS holds configuration for region-dns
	RegionDNS RegionDNSSpec `json:"regionDNS"`
	// Scheduler holds configuration for scheduler
	Scheduler DeploymentServicePortSpec `json:"scheduler"`
	// Glance holds configuration for glance
	Glance GlanceSpec `json:"glance"`
	// Climc holds configuration for climc
	Climc DeploymentSpec `json:"climc"`
	// Webconsole holds configuration for webconsole
	Webconsole WebconsoleSpec `json:"webconsole"`
	// Logger holds configuration for log service
	Logger DeploymentServicePortSpec `json:"logger"`
	// Yunionconf holds configuration for yunionconf service
	Yunionconf DeploymentServicePortSpec `json:"yunionconf"`
	// Yunionagent holds configuration for yunionagent service
	Yunionagent YunionagentSpec `json:"yunionagent"`
	// Influxdb holds configuration for influxdb
	Influxdb InfluxdbSpec `json:"influxdb"`
	// VictoriaMetrics holds configuration for VictoriaMetrics
	VictoriaMetrics VictoriaMetricsSpec `json:"victoriaMetrics"`
	// Telegraf holds configuration for telegraf
	Telegraf TelegrafSpec `json:"telegraf"`
	// Monitor holds configuration for monitor service
	Monitor DeploymentServicePortSpec `json:"monitor"`
	// LoadBalancerEndpoint is upstream loadbalancer virtual ip address or DNS domain
	LoadBalancerEndpoint string `json:"loadBalancerEndpoint"`
	// APIGateway holds configuration for yunoinapi
	APIGateway APIGatewaySpec `json:"apiGateway"`
	// Web holds configuration for web
	Web WebSpec `json:"web"`
	// KubeServer holds configuration for kube-server service
	KubeServer DeploymentServicePortSpec `json:"kubeserver"`
	// AnsibleServer holds configuration for ansibleserver service
	AnsibleServer DeploymentServicePortSpec `json:"ansibleserver"`
	// Cloudnet holds configuration for cloudnet service
	Cloudnet DeploymentServicePortSpec `json:"cloudnet"`
	// Cloudproxy holds configuration for cloudproxy service
	Cloudproxy DeploymentServicePortSpec `json:"cloudproxy"`
	// Cloudevent holds configuration for cloudevent service
	Cloudevent DeploymentServicePortSpec `json:"cloudevent"`
	// Notify holds configuration for notify service
	Notify NotifySpec `json:"notify"`
	// Lbagent holds configuration for lbagent
	Lbagent LbagentSpec `json:"lbagent"`
	// HostAgent holds configuration for host
	HostAgent HostAgentSpec `json:"hostagent"`
	// HostDeployer holds configuration for host-deployer
	HostDeployer DaemonSetSpec `json:"hostdeployer"`
	// HostImage holds configration for host-image
	HostImage DaemonSetSpec `json:"hostimage"`
	// BaremetalAgent holds configuration for baremetal agent
	BaremetalAgent ZoneStatefulDeploymentSpec `json:"baremetalagent"`
	// S3gateway holds configuration for s3gateway service
	S3gateway DeploymentServicePortSpec `json:"s3gateway"`
	// Devtool holds configuration for devtool service
	Devtool DeploymentServicePortSpec `json:"devtool"`
	// Meter holds configuration for meter
	Meter MeterSpec `json:"meter"`
	// AutoUpdate holds configuration for autoupdate
	AutoUpdate DeploymentServicePortSpec `json:"autoupdate"`
	// Cloudmon holds configuration for report monitor data
	Cloudmon CloudmonSpec `json:"cloudmon"`
	// EsxiAgent hols configuration for esxi agent
	EsxiAgent ZoneStatefulDeploymentSpec `json:"esxiagent"`
	// Itsm holds configuration for itsm service
	Itsm DeploymentServicePortSpec `json:"itsm"`

	// ServiceOperator hols configuration for service-operator
	ServiceOperator DeploymentServicePortSpec `json:"onecloudServiceOperator"`

	OvnNorth DeploymentSpec `json:"ovnNorth"`

	VpcAgent DeploymentServicePortSpec `json:"vpcAgent"`

	// Cloudid holds configuration for cloudid service
	CloudId DeploymentServicePortSpec `json:"cloudid"`

	Suggestion DeploymentServicePortSpec `json:"suggestion"`

	// MonitorStack holds configuration for grafana, loki, prometheus and thanos services
	MonitorStack MonitorStackSpec `json:"monitorStack"`

	Scheduledtask DeploymentServicePortSpec `json:"scheduledtask"`
	APIMap        DeploymentServicePortSpec `json:"apiMap"`

	Report     DeploymentServicePortSpec `json:"report"`
	EChartsSSR EChartsSSRSpec            `json:"echartsSSR"`

	BastionHost DeploymentServicePortSpec `json:"bastionHost"`

	// Cloudmux holds configuration for cloudmux
	Cloudmux CloudmuxSpec              `json:"cloudmux"`
	Extdb    DeploymentServicePortSpec `json:"extdb"`
}

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"`
	SpecChecksum    string               `json:"specChecksum,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"`
	VictoriaMetrics DeploymentStatus     `json:"victoriaMetrics,omitempty"`
	Monitor         DeploymentStatus     `json:"monitor,omitempty"`
	Logger          DeploymentStatus     `json:"logger,omitempty"`
	APIGateway      DeploymentStatus     `json:"apiGateway,omitempty"`
	Web             DeploymentStatus     `json:"web,omitempty"`
	Yunionconf      DeploymentStatus     `json:"yunionconf,omitempty"`
	KubeServer      DeploymentStatus     `json:"kubeserver,omitempty"`
	AnsibleServer   DeploymentStatus     `json:"ansibleserver,omitempty"`
	Cloudnet        DeploymentStatus     `json:"cloudnet,omitempty"`
	Cloudproxy      DeploymentStatus     `json:"cloudproxy,omitempty"`
	Cloudevent      DeploymentStatus     `json:"cloudevent,omitempty"`
	Notify          DeploymentStatus     `json:"notify,omitempty"`
	BaremetalAgent  BaremetalAgentStatus `json:"baremetalagent,omitempty"`
	S3gateway       DeploymentStatus     `json:"s3gateway,omitempty"`
	Devtool         DeploymentStatus     `json:"devtool,omitempty"`
	Meter           MeterStatus          `json:"meter,omitempty"`
	AutoUpdate      DeploymentStatus     `json:"autoupdate,omitempty"`
	EsxiAgent       EsxiAgentStatus      `json:"esxiagent,omitempty"`
	OvnNorth        DeploymentStatus     `json:"ovnNorth,omitempty"`
	VpcAgent        DeploymentStatus     `json:"vpcAgent,omitempty"`
	Etcd            EctdStatus           `json:"etcd,omitempty"`
	Itsm            DeploymentStatus     `json:"itsm,omitempty"`
	CloudId         DeploymentStatus     `json:"cloudid,omitempty"`
	Cloudmon        DeploymentStatus     `json:"cloudmon,omitempty"`
	MonitorStack    MonitorStackStatus   `json:"monitorStack,omitempty"`
	Scheduledtask   DeploymentStatus     `json:"scheduledtask,omitempty"`
	APIMap          DeploymentStatus     `json:"apiMap,omitempty"`
	Report          DeploymentStatus     `json:"report,omitempty"`
	ECharts         DeploymentStatus     `json:"echarts,omitempty"`
	BastionHost     DeploymentStatus     `json:"bastionHost,omitempty"`
	Extdb           DeploymentStatus     `json:"extdb,omitempty"`
}

OnecloudClusterStatus describes cluster status

func (*OnecloudClusterStatus) DeepCopy

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 PodPolicy

type PodPolicy struct {
	// Labels specifies the labels to attach to pods the operator creates for the
	// etcd cluster.
	// "app" and "etcd_*" labels are reserved for the internal use of the etcd operator.
	// Do not overwrite them.
	Labels map[string]string `json:"labels,omitempty"`

	// NodeSelector specifies a map of key-value pairs. For the pod to be eligible
	// to run on a node, the node must have each of the indicated key-value pairs as
	// labels.
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// The scheduling constraints on etcd pods.
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
	// **DEPRECATED**. Use Affinity instead.
	AntiAffinity bool `json:"antiAffinity,omitempty"`

	// Resources is the resource requirements for the etcd container.
	// This field cannot be updated once the cluster is created.
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

	// Tolerations specifies the pod's tolerations.
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// List of environment variables to set in the etcd container.
	// This is used to configure etcd process. etcd cluster cannot be created, when
	// bad environement variables are provided. Do not overwrite any flags used to
	// bootstrap the cluster (for example `--initial-cluster` flag).
	// This field cannot be updated.
	EtcdEnv []corev1.EnvVar `json:"etcdEnv,omitempty"`

	// PersistentVolumeClaimSpec is the spec to describe PVC for the etcd container
	// This field is optional. If no PVC spec, etcd container will use emptyDir as volume
	// Note. This feature is in alpha stage. It is currently only used as non-stable storage,
	// not the stable storage. Future work need to make it used as stable storage.
	PersistentVolumeClaimSpec *corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaimSpec,omitempty"`

	// Annotations specifies the annotations to attach to pods the operator creates for the
	// etcd cluster.
	// The "etcd.version" annotation is reserved for the internal use of the etcd operator.
	Annotations map[string]string `json:"annotations,omitempty"`

	// busybox init container image. default is busybox:1.28.0-glibc
	// busybox:latest uses uclibc which contains a bug that sometimes prevents name resolution
	// More info: https://github.com/docker-library/busybox/issues/27
	BusyboxImage string `json:"busyboxImage,omitempty"`

	// SecurityContext specifies the security context for the entire pod
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context
	SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`

	// DNSTimeoutInSecond is the maximum allowed time for the init container of the etcd pod to
	// reverse DNS lookup its IP given the hostname.
	// The default is to wait indefinitely and has a vaule of 0.
	DNSTimeoutInSecond int64 `json:"DNSTimeoutInSecond,omitempty"`
}

PodPolicy defines the policy to create pod for the etcd container.

func (*PodPolicy) DeepCopy

func (in *PodPolicy) DeepCopy() *PodPolicy

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

func (*PodPolicy) DeepCopyInto

func (in *PodPolicy) DeepCopyInto(out *PodPolicy)

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

type ProductVersion

type ProductVersion string
const (
	// ProductVersionFullStack: All kinds of product
	ProductVersionFullStack ProductVersion = "FullStack"
	// ProductVersionCMP: Cloud Management Platform product
	ProductVersionCMP ProductVersion = "CMP"
	// ProductVersionEdge: Private Cloud Edge product
	ProductVersionEdge ProductVersion = "Edge"
)

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 RegionDNSProxy

type RegionDNSProxy struct {
	// check: https://coredns.io/plugins/proxy/
	From string   `json:"from"`
	To   []string `json:"to"`
}

func (*RegionDNSProxy) DeepCopy

func (in *RegionDNSProxy) DeepCopy() *RegionDNSProxy

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

func (*RegionDNSProxy) DeepCopyInto

func (in *RegionDNSProxy) DeepCopyInto(out *RegionDNSProxy)

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

type RegionDNSSpec

type RegionDNSSpec struct {
	DaemonSetSpec
	Proxies []RegionDNSProxy `json:"proxies"`
}

func (*RegionDNSSpec) DeepCopy

func (in *RegionDNSSpec) DeepCopy() *RegionDNSSpec

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

func (*RegionDNSSpec) DeepCopyInto

func (in *RegionDNSSpec) DeepCopyInto(out *RegionDNSSpec)

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

type RegionDNSStatus

type RegionDNSStatus struct {
	DeploymentStatus
}

func (*RegionDNSStatus) DeepCopy

func (in *RegionDNSStatus) DeepCopy() *RegionDNSStatus

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

func (*RegionDNSStatus) DeepCopyInto

func (in *RegionDNSStatus) DeepCopyInto(out *RegionDNSStatus)

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

type RegionSpec

type RegionSpec struct {
	DeploymentServicePortSpec
	// DNSServer is the address of DNS server
	DNSServer string `json:"dnsServer"`
	// DNSDomain is the global default dns domain suffix for virtual servers
	DNSDomain string `json:"dnsDomain"`
}

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
	RegionId     string
	RegionZoneId string
	ZoneId       string
	WireId       string
	CustomZones  map[string]string
}

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 *resource.Quantity `json:"cpu,omitempty"`
	// Memory is how much memory a pod requires
	Memory *resource.Quantity `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

type Service struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

Service represent service type used in OnecloudCluster

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

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"`

	ClickhouseConf DBConfig `json:"clickhouse_conf"`
}

func (*ServiceDBCommonOptions) DeepCopy

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 ServicePortSpec

type ServicePortSpec struct {
	NodePort int `json:"nodePort"`
}

ServicePortSpec contains listening port definition

func (*ServicePortSpec) DeepCopy

func (in *ServicePortSpec) DeepCopy() *ServicePortSpec

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

func (*ServicePortSpec) DeepCopyInto

func (in *ServicePortSpec) DeepCopyInto(out *ServicePortSpec)

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

type ServiceSpec

type ServiceSpec struct {
	ServicePortSpec
}

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

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 StaticTLS

type StaticTLS struct {
	// Member contains secrets containing TLS certs used by each etcd member pod.
	Member *MemberSecret `json:"member,omitempty"`
	// OperatorSecret is the secret containing TLS certs used by operator to
	// talk securely to this cluster.
	OperatorSecret string `json:"operatorSecret,omitempty"`
}

func (*StaticTLS) DeepCopy

func (in *StaticTLS) DeepCopy() *StaticTLS

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

func (*StaticTLS) DeepCopyInto

func (in *StaticTLS) DeepCopyInto(out *StaticTLS)

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

type TLSPolicy

type TLSPolicy struct {
	// StaticTLS enables user to generate static x509 certificates and keys,
	// put them into Kubernetes secrets, and specify them into here.
	Static *StaticTLS `json:"static,omitempty"`
}

TLSPolicy defines the TLS policy of an etcd cluster

func (*TLSPolicy) DeepCopy

func (in *TLSPolicy) DeepCopy() *TLSPolicy

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

func (*TLSPolicy) DeepCopyInto

func (in *TLSPolicy) DeepCopyInto(out *TLSPolicy)

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

func (*TLSPolicy) IsSecureClient

func (tp *TLSPolicy) IsSecureClient() bool

func (*TLSPolicy) IsSecurePeer

func (tp *TLSPolicy) IsSecurePeer() bool

func (*TLSPolicy) Validate

func (tp *TLSPolicy) Validate() error

type TelegrafSpec

type TelegrafSpec struct {
	DaemonSetSpec
	InitContainerImage string `json:"initContainerImage"`
	EnableRaidPlugin   bool   `json:"enableRaidPlugin"`
	TelegrafRaidImage  string `json:"telegrafRaidImage"`
}

func (*TelegrafSpec) DeepCopy

func (in *TelegrafSpec) DeepCopy() *TelegrafSpec

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

func (*TelegrafSpec) DeepCopyInto

func (in *TelegrafSpec) DeepCopyInto(out *TelegrafSpec)

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

type ThanosSidecarSpec

type ThanosSidecarSpec struct {
	ObjectStoreConfig ObjectStoreConfig `json:"objectStoreConfig"`
}

func (*ThanosSidecarSpec) DeepCopy

func (in *ThanosSidecarSpec) DeepCopy() *ThanosSidecarSpec

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

func (*ThanosSidecarSpec) DeepCopyInto

func (in *ThanosSidecarSpec) DeepCopyInto(out *ThanosSidecarSpec)

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

type VictoriaMetricsSpec

type VictoriaMetricsSpec struct {
	StatefulDeploymentSpec
	Service              ServiceSpec `json:"service"`
	RententionPeriodDays int         `json:"rententionPeriodDays"`
}

func (*VictoriaMetricsSpec) DeepCopy

func (in *VictoriaMetricsSpec) DeepCopy() *VictoriaMetricsSpec

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

func (*VictoriaMetricsSpec) DeepCopyInto

func (in *VictoriaMetricsSpec) DeepCopyInto(out *VictoriaMetricsSpec)

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

type VpcAgentConfig

type VpcAgentConfig struct {
	ServiceCommonOptions
}

func (*VpcAgentConfig) DeepCopy

func (in *VpcAgentConfig) DeepCopy() *VpcAgentConfig

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

func (*VpcAgentConfig) DeepCopyInto

func (in *VpcAgentConfig) DeepCopyInto(out *VpcAgentConfig)

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

type WebSpec

type WebSpec struct {
	DeploymentSpec

	UseHTTP  bool `json:"useHTTP"`
	Overview ContainerSpec
	Docs     ContainerSpec
}

func (*WebSpec) DeepCopy

func (in *WebSpec) DeepCopy() *WebSpec

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

func (*WebSpec) DeepCopyInto

func (in *WebSpec) DeepCopyInto(out *WebSpec)

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

type WebconsoleSpec

type WebconsoleSpec struct {
	DeploymentServicePortSpec

	Guacd ContainerSpec
}

func (*WebconsoleSpec) DeepCopy

func (in *WebconsoleSpec) DeepCopy() *WebconsoleSpec

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

func (*WebconsoleSpec) DeepCopyInto

func (in *WebconsoleSpec) DeepCopyInto(out *WebconsoleSpec)

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.

type YunionagentSpec

type YunionagentSpec struct {
	DaemonSetSpec
	Service ServiceSpec `json:"service"`
}

func (*YunionagentSpec) DeepCopy

func (in *YunionagentSpec) DeepCopy() *YunionagentSpec

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

func (*YunionagentSpec) DeepCopyInto

func (in *YunionagentSpec) DeepCopyInto(out *YunionagentSpec)

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

type ZoneStatefulDeploymentSpec

type ZoneStatefulDeploymentSpec struct {
	StatefulDeploymentSpec
	// Zones specified which zones want deploy,
	// if it is empty, will deploy at all of zones
	Zones []string `json:"zones,omitempty"`
}

func (*ZoneStatefulDeploymentSpec) DeepCopy

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

func (*ZoneStatefulDeploymentSpec) 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