platform

package

Documentation

Overview

Package platform is the internal version of the API.

Index

Constants

View Source
const (
	// Upgrade nodes automatically.
	UpgradeModeAuto = UpgradeMode("Auto")
	// Manual upgrade nodes which means user need label node with `platform.tkestack.io/need-upgrade`.
	UpgradeModeManual = UpgradeMode("Manual")
)
View Source
const GroupName = "platform.tkestack.io"

GroupName is group name used to register these schema

Variables

View Source
var (
	// Scheme is the default instance of runtime.Scheme to which types in the TKE API are already registered.
	Scheme = runtime.NewScheme()
	// Codecs provides access to encoding and decoding for the scheme
	Codecs = serializer.NewCodecFactory(Scheme)
	// ParameterCodec handles versioning of objects that are converted to query parameters.
	ParameterCodec = runtime.NewParameterCodec(Scheme)
)
View Source
var (
	// SchemeBuilder collects functions that add things to a scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a IdentityProvider qualified GroupResource

Types

type AddonLevel

type AddonLevel string

AddonLevel indicates the level of cluster addon.

const (
	// LevelBasic is level for basic of cluster.
	LevelBasic AddonLevel = "Basic"
	// LevelEnhance is level for enhance of cluster.
	LevelEnhance AddonLevel = "Enhance"
)

These are valid level of addon.

type AddonPhase

type AddonPhase string

AddonPhase defines the phase of addon

const (
	// AddonPhaseInitializing means is wait initializing.
	AddonPhaseInitializing AddonPhase = "Initializing"
	// AddonPhaseReinitializing means is reinitializing.
	AddonPhaseReinitializing AddonPhase = "Reinitializing"
	// AddonPhaseChecking means is wait checking.
	AddonPhaseChecking AddonPhase = "Checking"
	// AddonPhaseRunning means is running.
	AddonPhaseRunning AddonPhase = "Running"
	// AddonPhaseUpgrading means is upgrading.
	AddonPhaseUpgrading AddonPhase = "Upgrading"
	// AddonPhaseFailed means has been failed.
	AddonPhaseFailed AddonPhase = "Failed"
	// AddonPhasePending means the controller is proceeding deploying
	AddonPhasePending AddonPhase = "Pending"
	// AddonPhaseUnhealthy means some pods of GPUManager is partial running
	AddonPhaseUnhealthy AddonPhase = "Unhealthy"
	// AddonPhaseTerminating means addon terminating
	AddonPhaseTerminating AddonPhase = "Terminating"
	// AddonPhaseUnknown means addon unknown
	AddonPhaseUnknown AddonPhase = "Unknown"
)

type AddonSpec

type AddonSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

AddonSpec describes the attributes on a Addon.

func (*AddonSpec) DeepCopy

func (in *AddonSpec) DeepCopy() *AddonSpec

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

func (*AddonSpec) DeepCopyInto

func (in *AddonSpec) DeepCopyInto(out *AddonSpec)

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

type AddressType

type AddressType string

AddressType indicates the type of cluster apiserver access address.

const (
	// AddressPublic indicates the address of the apiserver accessed from the external network.(such as public lb)
	AddressPublic AddressType = "Public"
	// AddressAdvertise indicates the address of the apiserver accessed from the worker node.(such as internal lb)
	AddressAdvertise AddressType = "Advertise"
	// AddressReal indicates the real address of one apiserver
	AddressReal AddressType = "Real"
	// AddressInternal indicates the address of the apiserver accessed from TKE control plane.
	AddressInternal AddressType = "Internal"
	// AddressSupport used for vpc lb which bind to JNS gateway as known AddressInternal
	AddressSupport AddressType = "Support"
)

These are valid address type of node.

type AuthzWebhookAddr added in v1.3.1

type AuthzWebhookAddr struct {
	// +optional
	Builtin *BuiltinAuthzWebhookAddr
	// +optional
	External *ExternalAuthzWebhookAddr
}

func (*AuthzWebhookAddr) DeepCopy added in v1.3.1

func (in *AuthzWebhookAddr) DeepCopy() *AuthzWebhookAddr

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

func (*AuthzWebhookAddr) DeepCopyInto added in v1.3.1

func (in *AuthzWebhookAddr) DeepCopyInto(out *AuthzWebhookAddr)

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

type BuiltinAuthzWebhookAddr added in v1.3.1

type BuiltinAuthzWebhookAddr struct{}

func (*BuiltinAuthzWebhookAddr) DeepCopy added in v1.3.1

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

func (*BuiltinAuthzWebhookAddr) DeepCopyInto added in v1.3.1

func (in *BuiltinAuthzWebhookAddr) DeepCopyInto(out *BuiltinAuthzWebhookAddr)

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

type CSIOperator

type CSIOperator struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of storage operator.
	// +optional
	Spec CSIOperatorSpec
	// +optional
	Status CSIOperatorStatus
}

CSIOperator is a operator to manages CSI external components.

func (*CSIOperator) DeepCopy

func (in *CSIOperator) DeepCopy() *CSIOperator

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

func (*CSIOperator) DeepCopyInto

func (in *CSIOperator) DeepCopyInto(out *CSIOperator)

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

func (*CSIOperator) DeepCopyObject

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

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

type CSIOperatorFeature added in v1.3.1

type CSIOperatorFeature struct {
	Version string
}

func (*CSIOperatorFeature) DeepCopy added in v1.3.1

func (in *CSIOperatorFeature) DeepCopy() *CSIOperatorFeature

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

func (*CSIOperatorFeature) DeepCopyInto added in v1.3.1

func (in *CSIOperatorFeature) DeepCopyInto(out *CSIOperatorFeature)

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

type CSIOperatorList

type CSIOperatorList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of storage operators.
	Items []CSIOperator
}

CSIOperatorList is the whole list of all storage operators which owned by a tenant.

func (*CSIOperatorList) DeepCopy

func (in *CSIOperatorList) DeepCopy() *CSIOperatorList

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

func (*CSIOperatorList) DeepCopyInto

func (in *CSIOperatorList) DeepCopyInto(out *CSIOperatorList)

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

func (*CSIOperatorList) DeepCopyObject

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

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

type CSIOperatorSpec

type CSIOperatorSpec struct {
	TenantID    string
	ClusterName string
	// Version of the CSI operator.
	Version string
}

CSIOperatorSpec describes the attributes of a storage operator.

func (*CSIOperatorSpec) DeepCopy

func (in *CSIOperatorSpec) DeepCopy() *CSIOperatorSpec

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

func (*CSIOperatorSpec) DeepCopyInto

func (in *CSIOperatorSpec) DeepCopyInto(out *CSIOperatorSpec)

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

type CSIOperatorStatus

type CSIOperatorStatus struct {
	// +optional
	Version string
	// StorageVendorVersion will be set to the config version of the storage vendor.
	// +optional
	StorageVendorVersion string
	// Phase is the current lifecycle phase of the csi operator of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

CSIOperatorStatus is information about the current status of a storage operator.

func (*CSIOperatorStatus) DeepCopy

func (in *CSIOperatorStatus) DeepCopy() *CSIOperatorStatus

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

func (*CSIOperatorStatus) DeepCopyInto

func (in *CSIOperatorStatus) DeepCopyInto(out *CSIOperatorStatus)

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

type CSIProxyOptions

type CSIProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
}

CSIProxyOptions is the query options to a kube-apiserver proxy call for CSI crd object.

func (*CSIProxyOptions) DeepCopy

func (in *CSIProxyOptions) DeepCopy() *CSIProxyOptions

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

func (*CSIProxyOptions) DeepCopyInto

func (in *CSIProxyOptions) DeepCopyInto(out *CSIProxyOptions)

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

func (*CSIProxyOptions) DeepCopyObject

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

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

type Cluster

type Cluster struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of clusters in this set.
	// +optional
	Spec ClusterSpec
	// +optional
	Status ClusterStatus
}

Cluster is a Kubernetes cluster in TKE.

func (*Cluster) AuthzWebhookEnabled added in v1.3.1

func (in *Cluster) AuthzWebhookEnabled() bool

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) Host added in v1.3.1

func (in *Cluster) Host() (string, error)

type ClusterAddon

type ClusterAddon struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta
	// Spec defines the desired identities of addons in this set.
	// +optional
	Spec ClusterAddonSpec
	// +optional
	Status ClusterAddonStatus
}

ClusterAddon contains the Addon component for the current kubernetes cluster

func (*ClusterAddon) DeepCopy

func (in *ClusterAddon) DeepCopy() *ClusterAddon

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

func (*ClusterAddon) DeepCopyInto

func (in *ClusterAddon) DeepCopyInto(out *ClusterAddon)

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

func (*ClusterAddon) DeepCopyObject

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

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

type ClusterAddonList

type ClusterAddonList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta
	// List of ClusterAddon
	Items []ClusterAddon
}

ClusterAddonList is the whole list of all ClusterAddon.

func (*ClusterAddonList) DeepCopy

func (in *ClusterAddonList) DeepCopy() *ClusterAddonList

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

func (*ClusterAddonList) DeepCopyInto

func (in *ClusterAddonList) DeepCopyInto(out *ClusterAddonList)

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

func (*ClusterAddonList) DeepCopyObject

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

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

type ClusterAddonSpec

type ClusterAddonSpec struct {
	// Addon type, one of Helm, PersistentEvent or LogCollector etc.
	Type string
	// AddonLevel is level of cluster addon.
	Level AddonLevel
	// Version
	Version string
}

ClusterAddonSpec indicates the specifications of the ClusterAddon.

func (*ClusterAddonSpec) DeepCopy

func (in *ClusterAddonSpec) DeepCopy() *ClusterAddonSpec

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

func (*ClusterAddonSpec) DeepCopyInto

func (in *ClusterAddonSpec) DeepCopyInto(out *ClusterAddonSpec)

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

type ClusterAddonStatus

type ClusterAddonStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the addon of cluster.
	// +optional
	Phase string
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
}

ClusterAddonStatus is information about the current status of a ClusterAddon.

func (*ClusterAddonStatus) DeepCopy

func (in *ClusterAddonStatus) DeepCopy() *ClusterAddonStatus

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

func (*ClusterAddonStatus) DeepCopyInto

func (in *ClusterAddonStatus) DeepCopyInto(out *ClusterAddonStatus)

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

type ClusterAddonType

type ClusterAddonType struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta
	// Addon type, one of Helm, PersistentEvent or LogCollector etc.
	Type string
	// AddonLevel is level of cluster addon.
	Level AddonLevel
	// LatestVersion is latest version of the addon.
	LatestVersion string
	// Description is desc of the addon.
	Description           string
	CompatibleClusterType []string
}

ClusterAddonType records the all addons of cluster available.

func (*ClusterAddonType) DeepCopy

func (in *ClusterAddonType) DeepCopy() *ClusterAddonType

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

func (*ClusterAddonType) DeepCopyInto

func (in *ClusterAddonType) DeepCopyInto(out *ClusterAddonType)

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

func (*ClusterAddonType) DeepCopyObject

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

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

type ClusterAddonTypeList

type ClusterAddonTypeList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta
	// +optional
	Items []ClusterAddonType
}

ClusterAddonTypeList is a resource containing a list of ClusterAddonType objects.

func (*ClusterAddonTypeList) DeepCopy

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

func (*ClusterAddonTypeList) DeepCopyInto

func (in *ClusterAddonTypeList) DeepCopyInto(out *ClusterAddonTypeList)

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

func (*ClusterAddonTypeList) DeepCopyObject

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

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

type ClusterAddress

type ClusterAddress struct {
	// Cluster address type, one of Public, ExternalIP or InternalIP.
	Type AddressType
	// The cluster address.
	Host string
	Port int32
	Path string
}

ClusterAddress contains information for the cluster's address.

func (*ClusterAddress) DeepCopy

func (in *ClusterAddress) DeepCopy() *ClusterAddress

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

func (*ClusterAddress) DeepCopyInto

func (in *ClusterAddress) DeepCopyInto(out *ClusterAddress)

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

type ClusterApplyOptions

type ClusterApplyOptions struct {
	metav1.TypeMeta
	// +optional
	NotUpdate bool
}

ClusterApplyOptions is the query options to a kube-apiserver proxy call for cluster object.

func (*ClusterApplyOptions) DeepCopy

func (in *ClusterApplyOptions) DeepCopy() *ClusterApplyOptions

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

func (*ClusterApplyOptions) DeepCopyInto

func (in *ClusterApplyOptions) DeepCopyInto(out *ClusterApplyOptions)

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

func (*ClusterApplyOptions) DeepCopyObject

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

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

type ClusterComponent

type ClusterComponent struct {
	Type     string
	Replicas ClusterComponentReplicas
}

ClusterComponent records the number of copies of each component of the cluster master.

func (*ClusterComponent) DeepCopy

func (in *ClusterComponent) DeepCopy() *ClusterComponent

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

func (*ClusterComponent) DeepCopyInto

func (in *ClusterComponent) DeepCopyInto(out *ClusterComponent)

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

type ClusterComponentReplicas

type ClusterComponentReplicas struct {
	Desired   int32
	Current   int32
	Available int32
	Updated   int32
}

ClusterComponentReplicas records the number of copies of each state of each component of the cluster master.

func (*ClusterComponentReplicas) DeepCopy

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

func (*ClusterComponentReplicas) DeepCopyInto

func (in *ClusterComponentReplicas) DeepCopyInto(out *ClusterComponentReplicas)

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

type ClusterCondition

type ClusterCondition struct {
	// Type is the type of the condition.
	Type string
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status ConditionStatus
	// Last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time
	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string
	// Human-readable message indicating details about last transition.
	// +optional
	Message string
}

ClusterCondition contains details for the current condition of this cluster.

func (*ClusterCondition) DeepCopy

func (in *ClusterCondition) DeepCopy() *ClusterCondition

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

func (*ClusterCondition) DeepCopyInto

func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)

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

type ClusterCredential

type ClusterCredential struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	TenantID    string
	ClusterName string

	// For TKE in global reuse
	// +optional
	ETCDCACert []byte
	// +optional
	ETCDCAKey []byte
	// +optional
	ETCDAPIClientCert []byte
	// +optional
	ETCDAPIClientKey []byte

	// For validate the server cert
	// +optional
	CACert []byte
	// +optional
	CAKey []byte
	// For kube-apiserver X509 auth
	// +optional
	ClientCert []byte
	// For kube-apiserver X509 auth
	// +optional
	ClientKey []byte
	// For kube-apiserver token auth
	// +optional
	Token *string
	// For kubeadm init or join
	// +optional
	BootstrapToken *string
	// For kubeadm init or join
	// +optional
	CertificateKey *string
}

ClusterCredential records the credential information needed to access the cluster.

func (*ClusterCredential) DeepCopy

func (in *ClusterCredential) DeepCopy() *ClusterCredential

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

func (*ClusterCredential) DeepCopyInto

func (in *ClusterCredential) DeepCopyInto(out *ClusterCredential)

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

func (*ClusterCredential) DeepCopyObject

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

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

type ClusterCredentialList

type ClusterCredentialList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of clusters
	Items []ClusterCredential
}

ClusterCredentialList is the whole list of all ClusterCredential which owned by a tenant.

func (*ClusterCredentialList) DeepCopy

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

func (*ClusterCredentialList) DeepCopyInto

func (in *ClusterCredentialList) DeepCopyInto(out *ClusterCredentialList)

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

func (*ClusterCredentialList) DeepCopyObject

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

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

type ClusterFeature

type ClusterFeature struct {
	// +optional
	IPVS *bool
	// +optional
	PublicLB *bool
	// +optional
	InternalLB *bool
	// +optional
	GPUType *GPUType
	// +optional
	EnableMasterSchedule bool
	// +optional
	HA *HA
	// +optional
	SkipConditions []string
	// +optional
	Files []File
	// +optional
	Hooks map[HookType]string
	// +optional
	CSIOperator *CSIOperatorFeature
	// For kube-apiserver authorization webhook
	// +optional
	AuthzWebhookAddr *AuthzWebhookAddr
	// +optional
	EnableMetricsServer bool
	// +optional
	EnableCilium bool
	// +optional
	IPv6DualStack bool
	// Upgrade control upgrade process.
	// +optional
	Upgrade Upgrade
}

ClusterFeature records the features that are enabled by the cluster.

func (*ClusterFeature) DeepCopy

func (in *ClusterFeature) DeepCopy() *ClusterFeature

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

func (*ClusterFeature) DeepCopyInto

func (in *ClusterFeature) DeepCopyInto(out *ClusterFeature)

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

type ClusterList

type ClusterList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of clusters
	Items []Cluster
}

ClusterList is the whole list of all clusters which owned by a tenant.

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterMachine

type ClusterMachine struct {
	IP         string
	Port       int32
	Username   string
	Password   []byte
	PrivateKey []byte
	PassPhrase []byte
	Labels     map[string]string
	Taints     []corev1.Taint
}

ClusterMachine is the master machine definition of cluster.

func (*ClusterMachine) DeepCopy

func (in *ClusterMachine) DeepCopy() *ClusterMachine

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

func (*ClusterMachine) DeepCopyInto

func (in *ClusterMachine) DeepCopyInto(out *ClusterMachine)

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

func (*ClusterMachine) SSH added in v1.2.5

func (in *ClusterMachine) SSH() (*ssh.SSH, error)

type ClusterPhase

type ClusterPhase string

ClusterPhase defines the phase of cluster constructor.

const (
	// ClusterInitializing is the initialize phase.
	ClusterInitializing ClusterPhase = "Initializing"
	// ClusterRunning is the normal running phase.
	ClusterRunning ClusterPhase = "Running"
	// ClusterFailed is the failed phase.
	ClusterFailed ClusterPhase = "Failed"
	// ClusterUpgrading means that the cluster is in upgrading process.
	ClusterUpgrading ClusterPhase = "Upgrading"
	// ClusterTerminating means the cluster is undergoing graceful termination.
	ClusterTerminating ClusterPhase = "Terminating"
	// ClusterUpscaling means the cluster is undergoing graceful up scaling.
	ClusterUpscaling ClusterPhase = "Upscaling"
	// ClusterDownscaling means the cluster is undergoing graceful down scaling.
	ClusterDownscaling ClusterPhase = "Downscaling"
)

type ClusterProperty

type ClusterProperty struct {
	// +optional
	MaxClusterServiceNum *int32
	// +optional
	MaxNodePodNum *int32
	// +optional
	OversoldRatio map[string]string
}

ClusterProperty records the attribute information of the cluster.

func (*ClusterProperty) DeepCopy

func (in *ClusterProperty) DeepCopy() *ClusterProperty

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

func (*ClusterProperty) DeepCopyInto

func (in *ClusterProperty) DeepCopyInto(out *ClusterProperty)

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

type ClusterResource

type ClusterResource struct {
	// Capacity represents the total resources of a cluster.
	// +optional
	Capacity ResourceList
	// Allocatable represents the resources of a cluster that are available for scheduling.
	// Defaults to Capacity.
	// +optional
	Allocatable ResourceList
	// +optional
	Allocated ResourceList
}

ClusterResource records the current available and maximum resource quota information for the cluster.

func (*ClusterResource) DeepCopy

func (in *ClusterResource) DeepCopy() *ClusterResource

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

func (*ClusterResource) DeepCopyInto

func (in *ClusterResource) DeepCopyInto(out *ClusterResource)

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

type ClusterSpec

type ClusterSpec struct {
	// Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
	// +optional
	Finalizers []FinalizerName
	TenantID   string
	// +optional
	DisplayName string
	Type        string
	Version     string
	// +optional
	NetworkType NetworkType
	// +optional
	NetworkDevice string
	// +optional
	ClusterCIDR string
	// ServiceCIDR is used to set a separated CIDR for k8s service, it's exclusive with MaxClusterServiceNum.
	// +optional
	ServiceCIDR *string
	// +optional
	// DNSDomain is the dns domain used by k8s services. Defaults to "cluster.local".
	DNSDomain string
	// +optional
	PublicAlternativeNames []string
	// +optional
	Features ClusterFeature
	// +optional
	Properties ClusterProperty
	// +optional
	Machines []ClusterMachine
	// +optional
	ScalingMachines []ClusterMachine
	// +optional
	DockerExtraArgs map[string]string
	// +optional
	KubeletExtraArgs map[string]string
	// +optional
	APIServerExtraArgs map[string]string
	// +optional
	ControllerManagerExtraArgs map[string]string
	// +optional
	SchedulerExtraArgs map[string]string

	// ClusterCredentialRef for isolate sensitive information.
	// If not specified, cluster controller will create one;
	// If specified, provider must make sure is valid.
	// +optional
	ClusterCredentialRef *corev1.LocalObjectReference

	// Etcd holds configuration for etcd.
	// +optional
	Etcd *Etcd
	// If true will use hostname as nodename, if false will use machine IP as nodename.
	// +optional
	HostnameAsNodename bool
	// +optional
	NetworkArgs map[string]string
}

ClusterSpec is a description of a cluster.

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	// +optional
	Locked *bool
	// +optional
	Version string
	// +optional
	Phase ClusterPhase
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []ClusterCondition
	// A human readable message indicating details about why the cluster is in this condition.
	// +optional
	Message string
	// A brief CamelCase message indicating details about why the cluster is in this state.
	// +optional
	Reason string
	// List of addresses reachable to the cluster.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Addresses []ClusterAddress
	// +optional
	Resource ClusterResource
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Components []ClusterComponent
	// +optional
	ServiceCIDR string
	// +optional
	NodeCIDRMaskSize int32
	// +optional
	DNSIP string
	// +optional
	RegistryIPs []string
	// +optional
	ClusterCIDR string
	// +optional
	SecondaryServiceCIDR string
	// +optional
	SecondaryClusterCIDR string
	// +optional
	NodeCIDRMaskSizeIPv4 int32
	// +optional
	NodeCIDRMaskSizeIPv6 int32
	// +optional
	KubeVendor KubeVendorType
}

ClusterStatus represents information about the status of a cluster.

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type ConditionStatus

type ConditionStatus string

ConditionStatus defines the status of Condition.

const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse   ConditionStatus = "False"
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses. "ConditionTrue" means a resource is in the condition. "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means server can't decide if a resource is in the condition or not.

type ConfigMap

type ConfigMap struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field, this is enforced during validation process.
	// +optional
	Data map[string]string

	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the ones in
	// the Data field, this is enforced during validation process.
	// +optional
	BinaryData map[string][]byte
}

ConfigMap holds configuration data for tke to consume.

func (*ConfigMap) DeepCopy

func (in *ConfigMap) DeepCopy() *ConfigMap

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

func (*ConfigMap) DeepCopyInto

func (in *ConfigMap) DeepCopyInto(out *ConfigMap)

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

func (*ConfigMap) DeepCopyObject

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

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

type ConfigMapList

type ConfigMapList struct {
	metav1.TypeMeta

	// +optional
	metav1.ListMeta

	// Items is the list of ConfigMaps.
	Items []ConfigMap
}

ConfigMapList is a resource containing a list of ConfigMap objects.

func (*ConfigMapList) DeepCopy

func (in *ConfigMapList) DeepCopy() *ConfigMapList

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

func (*ConfigMapList) DeepCopyInto

func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList)

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

func (*ConfigMapList) DeepCopyObject

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

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

type CronHPA

type CronHPA struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of CronHPA.
	// +optional
	Spec CronHPASpec
	// +optional
	Status CronHPAStatus
}

CronHPA is a new kubernetes workload.

func (*CronHPA) DeepCopy

func (in *CronHPA) DeepCopy() *CronHPA

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

func (*CronHPA) DeepCopyInto

func (in *CronHPA) DeepCopyInto(out *CronHPA)

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

func (*CronHPA) DeepCopyObject

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

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

type CronHPAList

type CronHPAList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of CronHPAs
	Items []CronHPA
}

CronHPAList is the whole list of all CronHPAs which owned by a tenant.

func (*CronHPAList) DeepCopy

func (in *CronHPAList) DeepCopy() *CronHPAList

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

func (*CronHPAList) DeepCopyInto

func (in *CronHPAList) DeepCopyInto(out *CronHPAList)

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

func (*CronHPAList) DeepCopyObject

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

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

type CronHPAProxyOptions

type CronHPAProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
}

CronHPAProxyOptions is the query options to a kube-apiserver proxy call.

func (*CronHPAProxyOptions) DeepCopy

func (in *CronHPAProxyOptions) DeepCopy() *CronHPAProxyOptions

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

func (*CronHPAProxyOptions) DeepCopyInto

func (in *CronHPAProxyOptions) DeepCopyInto(out *CronHPAProxyOptions)

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

func (*CronHPAProxyOptions) DeepCopyObject

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

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

type CronHPASpec

type CronHPASpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

CronHPASpec describes the attributes on a CronHPA.

func (*CronHPASpec) DeepCopy

func (in *CronHPASpec) DeepCopy() *CronHPASpec

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

func (*CronHPASpec) DeepCopyInto

func (in *CronHPASpec) DeepCopyInto(out *CronHPASpec)

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

type CronHPAStatus

type CronHPAStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the CronHPA of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

CronHPAStatus is information about the current status of a CronHPA.

func (*CronHPAStatus) DeepCopy

func (in *CronHPAStatus) DeepCopy() *CronHPAStatus

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

func (*CronHPAStatus) DeepCopyInto

func (in *CronHPAStatus) DeepCopyInto(out *CronHPAStatus)

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

type Etcd added in v1.3.1

type Etcd struct {

	// Local provides configuration knobs for configuring the local etcd instance
	// Local and External are mutually exclusive
	Local *LocalEtcd

	// External describes how to connect to an external etcd cluster
	// Local and External are mutually exclusive
	External *ExternalEtcd
}

Etcd contains elements describing Etcd configuration.

func (*Etcd) DeepCopy added in v1.3.1

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto added in v1.3.1

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

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

type ExternalAuthzWebhookAddr added in v1.3.1

type ExternalAuthzWebhookAddr struct {
	IP   string `json:"ip" protobuf:"bytes,1,name=ip"`
	Port int32  `json:"port" protobuf:"varint,2,name=port"`
}

func (*ExternalAuthzWebhookAddr) DeepCopy added in v1.3.1

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

func (*ExternalAuthzWebhookAddr) DeepCopyInto added in v1.3.1

func (in *ExternalAuthzWebhookAddr) DeepCopyInto(out *ExternalAuthzWebhookAddr)

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

type ExternalEtcd added in v1.3.1

type ExternalEtcd struct {

	// Endpoints of etcd members. Useful for using external etcd.
	// If not provided, kubeadm will run etcd in a static pod.
	Endpoints []string
	// CAFile is an SSL Certificate Authority file used to secure etcd communication.
	CAFile string
	// CertFile is an SSL certification file used to secure etcd communication.
	CertFile string
	// KeyFile is an SSL key file used to secure etcd communication.
	KeyFile string
}

ExternalEtcd describes an external etcd cluster

func (*ExternalEtcd) DeepCopy added in v1.3.1

func (in *ExternalEtcd) DeepCopy() *ExternalEtcd

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

func (*ExternalEtcd) DeepCopyInto added in v1.3.1

func (in *ExternalEtcd) DeepCopyInto(out *ExternalEtcd)

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

type File

type File struct {
	Src string // Only support regular file
	Dst string
}

func (*File) DeepCopy

func (in *File) DeepCopy() *File

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

func (*File) DeepCopyInto

func (in *File) DeepCopyInto(out *File)

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

type FinalizerName

type FinalizerName string

FinalizerName is the name identifying a finalizer during cluster lifecycle.

const (
	// ClusterFinalize is an internal finalizer values to Cluster.
	ClusterFinalize FinalizerName = "cluster"

	// MachineFinalize is an internal finalizer values to Machine.
	MachineFinalize FinalizerName = "machine"
)

type GPUType

type GPUType string

GPUType defines the gpu type of cluster.

const (
	// GPUPhysical indicates the gpu type of cluster is physical.
	GPUPhysical GPUType = "Physical"
	// GPUVirtual indicates the gpu type of cluster is virtual.
	GPUVirtual GPUType = "Virtual"
)

type HA

type HA struct {
	TKEHA        *TKEHA
	ThirdPartyHA *ThirdPartyHA
}

func (*HA) DeepCopy

func (in *HA) DeepCopy() *HA

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

func (*HA) DeepCopyInto

func (in *HA) DeepCopyInto(out *HA)

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

type Helm

type Helm struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of clusters in this set.
	// +optional
	Spec HelmSpec
	// +optional
	Status HelmStatus
}

Helm is a kubernetes package manager.

func (*Helm) DeepCopy

func (in *Helm) DeepCopy() *Helm

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

func (*Helm) DeepCopyInto

func (in *Helm) DeepCopyInto(out *Helm)

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

func (*Helm) DeepCopyObject

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

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

type HelmList

type HelmList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of Helms
	Items []Helm
}

HelmList is the whole list of all helms which owned by a tenant.

func (*HelmList) DeepCopy

func (in *HelmList) DeepCopy() *HelmList

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

func (*HelmList) DeepCopyInto

func (in *HelmList) DeepCopyInto(out *HelmList)

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

func (*HelmList) DeepCopyObject

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

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

type HelmProxyOptions

type HelmProxyOptions struct {
	metav1.TypeMeta

	// Path is the URL path to use for the current proxy request to helm-api.
	// +optional
	Path string
}

HelmProxyOptions is the query options to a Helm-api proxy call.

func (*HelmProxyOptions) DeepCopy

func (in *HelmProxyOptions) DeepCopy() *HelmProxyOptions

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

func (*HelmProxyOptions) DeepCopyInto

func (in *HelmProxyOptions) DeepCopyInto(out *HelmProxyOptions)

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

func (*HelmProxyOptions) DeepCopyObject

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

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

type HelmSpec

type HelmSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

HelmSpec describes the attributes on a Helm.

func (*HelmSpec) DeepCopy

func (in *HelmSpec) DeepCopy() *HelmSpec

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

func (*HelmSpec) DeepCopyInto

func (in *HelmSpec) DeepCopyInto(out *HelmSpec)

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

type HelmStatus

type HelmStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the helm of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

HelmStatus is information about the current status of a Helm.

func (*HelmStatus) DeepCopy

func (in *HelmStatus) DeepCopy() *HelmStatus

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

func (*HelmStatus) DeepCopyInto

func (in *HelmStatus) DeepCopyInto(out *HelmStatus)

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

type HookType

type HookType string
const (
	// node lifecycle hook
	HookPreInstall  HookType = "PreInstall"
	HookPostInstall HookType = "PostInstall"
	HookPreUpgrade  HookType = "PreUpgrade"
	HookPostUpgrade HookType = "PostUpgrade"

	// custer lifecycle hook
	HookPreClusterInstall  HookType = "PreClusterInstall"
	HookPostClusterInstall HookType = "PostClusterInstall"
	HookPreClusterUpgrade  HookType = "PreClusterUpgrade"
	HookPostClusterUpgrade HookType = "PostClusterUpgrade"
	HookPreClusterDelete   HookType = "PreClusterDelete"
	HookPostClusterDelete  HookType = "PostClusterDelete"
)

type IPAM

type IPAM struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of clusters in this set.
	// +optional
	Spec IPAMSpec
	// +optional
	Status IPAMStatus
}

IPAM is a scheduler plugin for assigning IP.

func (*IPAM) DeepCopy

func (in *IPAM) DeepCopy() *IPAM

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

func (*IPAM) DeepCopyInto

func (in *IPAM) DeepCopyInto(out *IPAM)

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

func (*IPAM) DeepCopyObject

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

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

type IPAMList

type IPAMList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of IPAMs
	Items []IPAM
}

IPAMList is the whole list of all IPAMs which owned by a tenant.

func (*IPAMList) DeepCopy

func (in *IPAMList) DeepCopy() *IPAMList

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

func (*IPAMList) DeepCopyInto

func (in *IPAMList) DeepCopyInto(out *IPAMList)

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

func (*IPAMList) DeepCopyObject

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

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

type IPAMProxyOptions

type IPAMProxyOptions struct {
	metav1.TypeMeta

	// Path is the URL path to use for the current proxy request to helm-api.
	// +optional
	Path string
}

IPAMProxyOptions is the query options to a Helm-api proxy call.

func (*IPAMProxyOptions) DeepCopy

func (in *IPAMProxyOptions) DeepCopy() *IPAMProxyOptions

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

func (*IPAMProxyOptions) DeepCopyInto

func (in *IPAMProxyOptions) DeepCopyInto(out *IPAMProxyOptions)

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

func (*IPAMProxyOptions) DeepCopyObject

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

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

type IPAMSpec

type IPAMSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

IPAMSpec describes the attributes on a IPAM.

func (*IPAMSpec) DeepCopy

func (in *IPAMSpec) DeepCopy() *IPAMSpec

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

func (*IPAMSpec) DeepCopyInto

func (in *IPAMSpec) DeepCopyInto(out *IPAMSpec)

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

type IPAMStatus

type IPAMStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the addon of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

IPAMStatus is information about the current status of a IPAM.

func (*IPAMStatus) DeepCopy

func (in *IPAMStatus) DeepCopy() *IPAMStatus

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

func (*IPAMStatus) DeepCopyInto

func (in *IPAMStatus) DeepCopyInto(out *IPAMStatus)

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

type KubeVendorType added in v1.7.0

type KubeVendorType string

KubeVendorType describe the kubernetes provider of the cluster ref https://github.com/open-cluster-management/multicloud-operators-foundation/blob/e94b719de6d5f3541e948dd70ad8f1ff748aa452/pkg/apis/internal.open-cluster-management.io/v1beta1/clusterinfo_types.go#L137

const (
	// KubeVendorTKE TKE
	KubeVendorTKE KubeVendorType = "TKE"
	// KubeVendorOpenShift OpenShift
	KubeVendorOpenShift KubeVendorType = "OpenShift"
	// KubeVendorAKS Azure Kuberentes Service
	KubeVendorAKS KubeVendorType = "AKS"
	// KubeVendorEKS Elastic Kubernetes Service
	KubeVendorEKS KubeVendorType = "EKS"
	// KubeVendorGKE Google Kubernetes Engine
	KubeVendorGKE KubeVendorType = "GKE"
	// KubeVendorICP IBM Cloud Private
	KubeVendorICP KubeVendorType = "ICP"
	// KubeVendorIKS IBM Kubernetes Service
	KubeVendorIKS KubeVendorType = "IKS"
	// KubeVendorOSD OpenShiftDedicated
	KubeVendorOSD KubeVendorType = "OpenShiftDedicated"
	// KubeVendorOther other (unable to auto detect)
	KubeVendorOther KubeVendorType = "Other"
)

type LBCF

type LBCF struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of LBCF.
	// +optional
	Spec LBCFSpec
	// +optional
	Status LBCFStatus
}

LBCF is a kubernetes load balancer manager

func (*LBCF) DeepCopy

func (in *LBCF) DeepCopy() *LBCF

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

func (*LBCF) DeepCopyInto

func (in *LBCF) DeepCopyInto(out *LBCF)

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

func (*LBCF) DeepCopyObject

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

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

type LBCFList

type LBCFList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of CronHPAs
	Items []LBCF
}

LBCFList is the whole list of all LBCF which owned by a tenant.

func (*LBCFList) DeepCopy

func (in *LBCFList) DeepCopy() *LBCFList

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

func (*LBCFList) DeepCopyInto

func (in *LBCFList) DeepCopyInto(out *LBCFList)

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

func (*LBCFList) DeepCopyObject

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

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

type LBCFProxyOptions

type LBCFProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
	Action    string
}

LBCFProxyOptions is the query options to a kube-apiserver proxy call.

func (*LBCFProxyOptions) DeepCopy

func (in *LBCFProxyOptions) DeepCopy() *LBCFProxyOptions

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

func (*LBCFProxyOptions) DeepCopyInto

func (in *LBCFProxyOptions) DeepCopyInto(out *LBCFProxyOptions)

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

func (*LBCFProxyOptions) DeepCopyObject

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

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

type LBCFSpec

type LBCFSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

LBCFSpec defines the desired identities of LBCF.

func (*LBCFSpec) DeepCopy

func (in *LBCFSpec) DeepCopy() *LBCFSpec

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

func (*LBCFSpec) DeepCopyInto

func (in *LBCFSpec) DeepCopyInto(out *LBCFSpec)

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

type LBCFStatus

type LBCFStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the CronHPA of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

LBCFStatus is information about the current status of a LBCF.

func (*LBCFStatus) DeepCopy

func (in *LBCFStatus) DeepCopy() *LBCFStatus

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

func (*LBCFStatus) DeepCopyInto

func (in *LBCFStatus) DeepCopyInto(out *LBCFStatus)

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

type LocalEtcd added in v1.3.1

type LocalEtcd struct {
	// DataDir is the directory etcd will place its data.
	// Defaults to "/var/lib/etcd".
	DataDir string

	// ExtraArgs are extra arguments provided to the etcd binary
	// when run inside a static pod.
	ExtraArgs map[string]string

	// ServerCertSANs sets extra Subject Alternative Names for the etcd server signing cert.
	ServerCertSANs []string
	// PeerCertSANs sets extra Subject Alternative Names for the etcd peer signing cert.
	PeerCertSANs []string
}

LocalEtcd describes that kubeadm should run an etcd cluster locally

func (*LocalEtcd) DeepCopy added in v1.3.1

func (in *LocalEtcd) DeepCopy() *LocalEtcd

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

func (*LocalEtcd) DeepCopyInto added in v1.3.1

func (in *LocalEtcd) DeepCopyInto(out *LocalEtcd)

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

type LogCollector

type LogCollector struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of LogCollector.
	// +optional
	Spec LogCollectorSpec
	// +optional
	Status LogCollectorStatus
}

LogCollector is a manager to collect logs of workload.

func (*LogCollector) DeepCopy

func (in *LogCollector) DeepCopy() *LogCollector

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

func (*LogCollector) DeepCopyInto

func (in *LogCollector) DeepCopyInto(out *LogCollector)

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

func (*LogCollector) DeepCopyObject

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

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

type LogCollectorList

type LogCollectorList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of volume decorators.
	Items []LogCollector
}

LogCollectorList is the whole list of all LogCollector which owned by a tenant.

func (*LogCollectorList) DeepCopy

func (in *LogCollectorList) DeepCopy() *LogCollectorList

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

func (*LogCollectorList) DeepCopyInto

func (in *LogCollectorList) DeepCopyInto(out *LogCollectorList)

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

func (*LogCollectorList) DeepCopyObject

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

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

type LogCollectorProxyOptions

type LogCollectorProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
}

LogCollectorProxyOptions is the query options to a kube-apiserver proxy call for LogCollector crd object.

func (*LogCollectorProxyOptions) DeepCopy

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

func (*LogCollectorProxyOptions) DeepCopyInto

func (in *LogCollectorProxyOptions) DeepCopyInto(out *LogCollectorProxyOptions)

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

func (*LogCollectorProxyOptions) DeepCopyObject

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

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

type LogCollectorSpec

type LogCollectorSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

LogCollectorSpec describes the attributes of a LogCollector.

func (*LogCollectorSpec) DeepCopy

func (in *LogCollectorSpec) DeepCopy() *LogCollectorSpec

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

func (*LogCollectorSpec) DeepCopyInto

func (in *LogCollectorSpec) DeepCopyInto(out *LogCollectorSpec)

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

type LogCollectorStatus

type LogCollectorStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the LogCollector of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

LogCollectorStatus is information about the current status of a LogCollector.

func (*LogCollectorStatus) DeepCopy

func (in *LogCollectorStatus) DeepCopy() *LogCollectorStatus

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

func (*LogCollectorStatus) DeepCopyInto

func (in *LogCollectorStatus) DeepCopyInto(out *LogCollectorStatus)

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

type Machine

type Machine struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of the Machine.
	// +optional
	Spec MachineSpec
	// +optional
	Status MachineStatus
}

Machine instance in Kubernetes cluster

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

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

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

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

func (*Machine) DeepCopyObject

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

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

type MachineAddress

type MachineAddress struct {
	// Machine address type, one of Public, ExternalIP or InternalIP.
	Type MachineAddressType
	// The machine address.
	Address string
}

MachineAddress contains information for the machine's address.

func (*MachineAddress) DeepCopy

func (in *MachineAddress) DeepCopy() *MachineAddress

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

func (*MachineAddress) DeepCopyInto

func (in *MachineAddress) DeepCopyInto(out *MachineAddress)

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

type MachineAddressType

type MachineAddressType string

MachineAddressType represents the type of machine address.

const (
	MachineHostName    MachineAddressType = "Hostname"
	MachineExternalIP  MachineAddressType = "ExternalIP"
	MachineInternalIP  MachineAddressType = "InternalIP"
	MachineExternalDNS MachineAddressType = "ExternalDNS"
	MachineInternalDNS MachineAddressType = "InternalDNS"
)

These are valid address type of machine.

type MachineCondition

type MachineCondition struct {
	// Type is the type of the condition.
	Type string
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status ConditionStatus
	// Last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time
	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string
	// Human-readable message indicating details about last transition.
	// +optional
	Message string
}

MachineCondition contains details for the current condition of this Machine.

func (*MachineCondition) DeepCopy

func (in *MachineCondition) DeepCopy() *MachineCondition

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

func (*MachineCondition) DeepCopyInto

func (in *MachineCondition) DeepCopyInto(out *MachineCondition)

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

type MachineList

type MachineList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta
	// List of clusters
	Items []Machine
}

MachineList is the whole list of all machine in an cluster.

func (*MachineList) DeepCopy

func (in *MachineList) DeepCopy() *MachineList

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

func (*MachineList) DeepCopyInto

func (in *MachineList) DeepCopyInto(out *MachineList)

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

func (*MachineList) DeepCopyObject

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

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

type MachinePhase

type MachinePhase string

MachinePhase defines the phase of machine constructor

const (
	// MachineInitializing is the initialize phase
	MachineInitializing MachinePhase = "Initializing"
	// MachineRunning is the normal running phase
	MachineRunning MachinePhase = "Running"
	// MachineFailed is the failed phase
	MachineFailed MachinePhase = "Failed"
	// MachineUpgrading means that the machine is in upgrading process.
	MachineUpgrading MachinePhase = "Upgrading"
	// MachineTerminating is the terminating phase
	MachineTerminating MachinePhase = "Terminating"
)

type MachineSpec

type MachineSpec struct {
	// Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
	// +optional
	Finalizers  []FinalizerName
	TenantID    string
	ClusterName string
	Type        string
	IP          string
	Port        int32
	Username    string
	Password    []byte
	PrivateKey  []byte
	PassPhrase  []byte
	Labels      map[string]string
	Taints      []corev1.Taint
}

MachineSpec is a description of machine.

func (*MachineSpec) DeepCopy

func (in *MachineSpec) DeepCopy() *MachineSpec

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

func (*MachineSpec) DeepCopyInto

func (in *MachineSpec) DeepCopyInto(out *MachineSpec)

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

func (*MachineSpec) SSH added in v1.2.5

func (in *MachineSpec) SSH() (*ssh.SSH, error)

type MachineStatus

type MachineStatus struct {
	// +optional
	Locked *bool

	// +optional
	Phase MachinePhase
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []MachineCondition
	// A human readable message indicating details about why the machine is in this condition.
	// +optional
	Message string
	// A brief CamelCase message indicating details about why the machine is in this state.
	// +optional
	Reason string
	// List of addresses reachable to the machine.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Addresses []MachineAddress
	// Set of ids/uuids to uniquely identify the node.
	// +optional
	MachineInfo MachineSystemInfo
}

MachineStatus represents information about the status of an machine.

func (*MachineStatus) DeepCopy

func (in *MachineStatus) DeepCopy() *MachineStatus

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

func (*MachineStatus) DeepCopyInto

func (in *MachineStatus) DeepCopyInto(out *MachineStatus)

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

type MachineSystemInfo

type MachineSystemInfo struct {
	// MachineID reported by the node. For unique machine identification
	// in the cluster this field is preferred. Learn more from man(5)
	// machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
	MachineID string
	// SystemUUID reported by the node. For unique machine identification
	// MachineID is preferred. This field is specific to Red Hat hosts
	// https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html
	SystemUUID string
	// Boot ID reported by the node.
	BootID string
	// Kernel Version reported by the node.
	KernelVersion string
	// OS Image reported by the node.
	OSImage string
	// ContainerRuntime Version reported by the node.
	ContainerRuntimeVersion string
	// Kubelet Version reported by the node.
	KubeletVersion string
	// KubeProxy Version reported by the node.
	KubeProxyVersion string
	// The Operating System reported by the node
	OperatingSystem string
	// The Architecture reported by the node
	Architecture string
}

MachineSystemInfo is a set of ids/uuids to uniquely identify the node.

func (*MachineSystemInfo) DeepCopy

func (in *MachineSystemInfo) DeepCopy() *MachineSystemInfo

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

func (*MachineSystemInfo) DeepCopyInto

func (in *MachineSystemInfo) DeepCopyInto(out *MachineSystemInfo)

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

type NetworkType

type NetworkType string

NetworkType defines the network type of cluster.

type PVCRProxyOptions

type PVCRProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
}

PVCRProxyOptions is the query options to a kube-apiserver proxy call for PVCR crd object.

func (*PVCRProxyOptions) DeepCopy

func (in *PVCRProxyOptions) DeepCopy() *PVCRProxyOptions

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

func (*PVCRProxyOptions) DeepCopyInto

func (in *PVCRProxyOptions) DeepCopyInto(out *PVCRProxyOptions)

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

func (*PVCRProxyOptions) DeepCopyObject

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

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

type PersistentBackEnd

type PersistentBackEnd struct {
	CLS *StorageBackEndCLS
	ES  *StorageBackEndES
}

PersistentBackEnd indicates the backend type and attributes of the persistent log store.

func (*PersistentBackEnd) DeepCopy

func (in *PersistentBackEnd) DeepCopy() *PersistentBackEnd

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

func (*PersistentBackEnd) DeepCopyInto

func (in *PersistentBackEnd) DeepCopyInto(out *PersistentBackEnd)

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

type PersistentEvent

type PersistentEvent struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of clusters in this set.
	// +optional
	Spec PersistentEventSpec
	// +optional
	Status PersistentEventStatus
}

PersistentEvent is a recorder of kubernetes event.

func (*PersistentEvent) DeepCopy

func (in *PersistentEvent) DeepCopy() *PersistentEvent

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

func (*PersistentEvent) DeepCopyInto

func (in *PersistentEvent) DeepCopyInto(out *PersistentEvent)

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

func (*PersistentEvent) DeepCopyObject

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

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

type PersistentEventList

type PersistentEventList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of PersistentEvents
	Items []PersistentEvent
}

PersistentEventList is the whole list of all clusters which owned by a tenant.

func (*PersistentEventList) DeepCopy

func (in *PersistentEventList) DeepCopy() *PersistentEventList

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

func (*PersistentEventList) DeepCopyInto

func (in *PersistentEventList) DeepCopyInto(out *PersistentEventList)

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

func (*PersistentEventList) DeepCopyObject

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

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

type PersistentEventSpec

type PersistentEventSpec struct {
	TenantID          string
	ClusterName       string
	PersistentBackEnd PersistentBackEnd
	Version           string
}

PersistentEventSpec describes the attributes on a PersistentEvent.

func (*PersistentEventSpec) DeepCopy

func (in *PersistentEventSpec) DeepCopy() *PersistentEventSpec

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

func (*PersistentEventSpec) DeepCopyInto

func (in *PersistentEventSpec) DeepCopyInto(out *PersistentEventSpec)

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

type PersistentEventStatus

type PersistentEventStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the persistent event of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

PersistentEventStatus is information about the current status of a PersistentEvent.

func (*PersistentEventStatus) DeepCopy

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

func (*PersistentEventStatus) DeepCopyInto

func (in *PersistentEventStatus) DeepCopyInto(out *PersistentEventStatus)

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

type Prometheus

type Prometheus struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of clusters in this set.
	// +optional
	Spec PrometheusSpec
	// +optional
	Status PrometheusStatus
}

Prometheus is a kubernetes package manager.

func (*Prometheus) DeepCopy

func (in *Prometheus) DeepCopy() *Prometheus

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

func (*Prometheus) DeepCopyInto

func (in *Prometheus) DeepCopyInto(out *Prometheus)

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

func (*Prometheus) DeepCopyObject

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

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

type PrometheusList

type PrometheusList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of Prometheuss
	Items []Prometheus
}

PrometheusList is the whole list of all prometheus which owned by a tenant.

func (*PrometheusList) DeepCopy

func (in *PrometheusList) DeepCopy() *PrometheusList

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

func (*PrometheusList) DeepCopyInto

func (in *PrometheusList) DeepCopyInto(out *PrometheusList)

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

func (*PrometheusList) DeepCopyObject

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

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

type PrometheusRemoteAddr

type PrometheusRemoteAddr struct {
	WriteAddr []string
	ReadAddr  []string
}

PrometheusRemoteAddr is the remote write/read address for prometheus

func (*PrometheusRemoteAddr) DeepCopy

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

func (*PrometheusRemoteAddr) DeepCopyInto

func (in *PrometheusRemoteAddr) DeepCopyInto(out *PrometheusRemoteAddr)

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

type PrometheusSpec

type PrometheusSpec struct {
	TenantID      string
	ClusterName   string
	Version       string
	SubVersion    map[string]string
	RemoteAddress PrometheusRemoteAddr
	// +optional
	NotifyWebhook string
	// +optional
	Resources ResourceRequirements
	// +optional
	RunOnMaster bool
	// +optional
	AlertRepeatInterval string
	// +optional
	WithNPD bool
}

PrometheusSpec describes the attributes on a Prometheus.

func (*PrometheusSpec) DeepCopy

func (in *PrometheusSpec) DeepCopy() *PrometheusSpec

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

func (*PrometheusSpec) DeepCopyInto

func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)

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

type PrometheusStatus

type PrometheusStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the helm of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
	// SubVersion is the components version such as node-exporter.
	SubVersion map[string]string
}

PrometheusStatus is information about the current status of a Prometheus.

func (*PrometheusStatus) DeepCopy

func (in *PrometheusStatus) DeepCopy() *PrometheusStatus

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

func (*PrometheusStatus) DeepCopyInto

func (in *PrometheusStatus) DeepCopyInto(out *PrometheusStatus)

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

type Registry

type Registry struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta
	// +optional
	Spec RegistrySpec
}

Registry records the third-party image repository information stored by the user.

func (*Registry) DeepCopy

func (in *Registry) DeepCopy() *Registry

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

func (*Registry) DeepCopyInto

func (in *Registry) DeepCopyInto(out *Registry)

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

func (*Registry) DeepCopyObject

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

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

type RegistryList

type RegistryList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta
	// +optional
	Items []Registry
}

RegistryList is a resource containing a list of Registry objects.

func (*RegistryList) DeepCopy

func (in *RegistryList) DeepCopy() *RegistryList

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

func (*RegistryList) DeepCopyInto

func (in *RegistryList) DeepCopyInto(out *RegistryList)

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

func (*RegistryList) DeepCopyObject

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

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

type RegistrySpec

type RegistrySpec struct {
	// +optional
	TenantID string
	// +optional
	DisplayName string
	// +optional
	ClusterName string
	// +optional
	URL string
	// +optional
	UserName *string
	// +optional
	Password *string
}

RegistrySpec indicates the specifications of the third-party image repository.

func (*RegistrySpec) DeepCopy

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto

func (in *RegistrySpec) DeepCopyInto(out *RegistrySpec)

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

type ResourceList

type ResourceList map[string]resource.Quantity

ResourceList is a set of (resource name, quantity) pairs.

func (ResourceList) DeepCopy

func (in ResourceList) DeepCopy() ResourceList

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

func (ResourceList) DeepCopyInto

func (in ResourceList) DeepCopyInto(out *ResourceList)

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

type ResourceRequirements added in v1.2.5

type ResourceRequirements struct {
	Limits   ResourceList
	Requests ResourceList
}

ResourceRequirements describes the compute resource requirements.

func (*ResourceRequirements) DeepCopy added in v1.2.5

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

func (*ResourceRequirements) DeepCopyInto added in v1.2.5

func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)

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

type StorageBackEndCLS

type StorageBackEndCLS struct {
	LogSetID string
	TopicID  string
}

StorageBackEndCLS records the attributes required when the backend storage type is CLS.

func (*StorageBackEndCLS) DeepCopy

func (in *StorageBackEndCLS) DeepCopy() *StorageBackEndCLS

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

func (*StorageBackEndCLS) DeepCopyInto

func (in *StorageBackEndCLS) DeepCopyInto(out *StorageBackEndCLS)

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

type StorageBackEndES

type StorageBackEndES struct {
	IP          string
	Port        int32
	Scheme      string
	IndexName   string
	User        string
	Password    string
	ReserveDays int32
}

StorageBackEndES records the attributes required when the backend storage type is ElasticSearch.

func (*StorageBackEndES) DeepCopy

func (in *StorageBackEndES) DeepCopy() *StorageBackEndES

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

func (*StorageBackEndES) DeepCopyInto

func (in *StorageBackEndES) DeepCopyInto(out *StorageBackEndES)

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

type TKEHA

type TKEHA struct {
	VIP  string
	VRID *int32
}

func (*TKEHA) DeepCopy

func (in *TKEHA) DeepCopy() *TKEHA

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

func (*TKEHA) DeepCopyInto

func (in *TKEHA) DeepCopyInto(out *TKEHA)

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

type TappController

type TappController struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of tapp controller.
	// +optional
	Spec TappControllerSpec
	// +optional
	Status TappControllerStatus
}

TappController is a new kubernetes workload.

func (*TappController) DeepCopy

func (in *TappController) DeepCopy() *TappController

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

func (*TappController) DeepCopyInto

func (in *TappController) DeepCopyInto(out *TappController)

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

func (*TappController) DeepCopyObject

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

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

type TappControllerList

type TappControllerList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of tapp controllers
	Items []TappController
}

TappControllerList is the whole list of all tapp controllers which owned by a tenant.

func (*TappControllerList) DeepCopy

func (in *TappControllerList) DeepCopy() *TappControllerList

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

func (*TappControllerList) DeepCopyInto

func (in *TappControllerList) DeepCopyInto(out *TappControllerList)

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

func (*TappControllerList) DeepCopyObject

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

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

type TappControllerProxyOptions

type TappControllerProxyOptions struct {
	metav1.TypeMeta

	Namespace string
	Name      string
	Action    string
}

TappControllerProxyOptions is the query options to a kube-apiserver proxy call.

func (*TappControllerProxyOptions) DeepCopy

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

func (*TappControllerProxyOptions) DeepCopyInto

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

func (*TappControllerProxyOptions) DeepCopyObject

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

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

type TappControllerSpec

type TappControllerSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

TappControllerSpec describes the attributes on a tapp controller.

func (*TappControllerSpec) DeepCopy

func (in *TappControllerSpec) DeepCopy() *TappControllerSpec

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

func (*TappControllerSpec) DeepCopyInto

func (in *TappControllerSpec) DeepCopyInto(out *TappControllerSpec)

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

type TappControllerStatus

type TappControllerStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the tapp controller of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

TappControllerStatus is information about the current status of a tapp controller.

func (*TappControllerStatus) DeepCopy

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

func (*TappControllerStatus) DeepCopyInto

func (in *TappControllerStatus) DeepCopyInto(out *TappControllerStatus)

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

type ThirdPartyHA

type ThirdPartyHA struct {
	VIP   string
	VPort int32
}

func (*ThirdPartyHA) DeepCopy

func (in *ThirdPartyHA) DeepCopy() *ThirdPartyHA

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

func (*ThirdPartyHA) DeepCopyInto

func (in *ThirdPartyHA) DeepCopyInto(out *ThirdPartyHA)

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

type Upgrade added in v1.3.1

type Upgrade struct {
	// Upgrade mode, default value is Auto.
	Mode UpgradeMode
	// Upgrade strategy config.
	Strategy UpgradeStrategy
}

func (*Upgrade) DeepCopy added in v1.3.1

func (in *Upgrade) DeepCopy() *Upgrade

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

func (*Upgrade) DeepCopyInto added in v1.3.1

func (in *Upgrade) DeepCopyInto(out *Upgrade)

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

type UpgradeMode added in v1.3.1

type UpgradeMode string

type UpgradeStrategy added in v1.3.1

type UpgradeStrategy struct {
	// The maximum number of pods that can be unready during the upgrade.
	// 0% means all pods need to be ready after evition.
	// 100% means ignore any pods unready which may be used in one worker node, use this carefully!
	// default value is 0%.
	MaxUnready intstr.IntOrString
	// Whether drain node before upgrade.
	// Draining node before upgrade is recommended.
	// But not all pod running as cows, a few running as pets.
	// If your pod can not accept be expelled from current node, this value should be false.
	DrainNodeBeforeUpgrade bool
}

UpgradeStrategy used to control the upgrade process.

func (*UpgradeStrategy) DeepCopy added in v1.3.1

func (in *UpgradeStrategy) DeepCopy() *UpgradeStrategy

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

func (*UpgradeStrategy) DeepCopyInto added in v1.3.1

func (in *UpgradeStrategy) DeepCopyInto(out *UpgradeStrategy)

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

type VolumeDecorator

type VolumeDecorator struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of volume decorator.
	// +optional
	Spec VolumeDecoratorSpec
	// +optional
	Status VolumeDecoratorStatus
}

VolumeDecorator is a controller to manage PVC information.

func (*VolumeDecorator) DeepCopy

func (in *VolumeDecorator) DeepCopy() *VolumeDecorator

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

func (*VolumeDecorator) DeepCopyInto

func (in *VolumeDecorator) DeepCopyInto(out *VolumeDecorator)

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

func (*VolumeDecorator) DeepCopyObject

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

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

type VolumeDecoratorList

type VolumeDecoratorList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of volume decorators.
	Items []VolumeDecorator
}

VolumeDecoratorList is the whole list of all VolumeDecorator which owned by a tenant.

func (*VolumeDecoratorList) DeepCopy

func (in *VolumeDecoratorList) DeepCopy() *VolumeDecoratorList

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

func (*VolumeDecoratorList) DeepCopyInto

func (in *VolumeDecoratorList) DeepCopyInto(out *VolumeDecoratorList)

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

func (*VolumeDecoratorList) DeepCopyObject

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

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

type VolumeDecoratorSpec

type VolumeDecoratorSpec struct {
	TenantID          string
	ClusterName       string
	Version           string
	VolumeTypes       []string
	WorkloadAdmission bool
}

VolumeDecoratorSpec describes the attributes of a VolumeDecorator.

func (*VolumeDecoratorSpec) DeepCopy

func (in *VolumeDecoratorSpec) DeepCopy() *VolumeDecoratorSpec

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

func (*VolumeDecoratorSpec) DeepCopyInto

func (in *VolumeDecoratorSpec) DeepCopyInto(out *VolumeDecoratorSpec)

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

type VolumeDecoratorStatus

type VolumeDecoratorStatus struct {
	// +optional
	Version string
	// VolumeTypes is the supported volume types in this cluster.
	// +optional
	VolumeTypes []string
	// WorkloadAdmission will be true to enable the workload admission webhook.
	// +optional
	WorkloadAdmission bool
	// StorageVendorVersion will be set to the config version of the storage vendor.
	// +optional
	StorageVendorVersion string
	// Phase is the current lifecycle phase of the volume-decorator of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

VolumeDecoratorStatus is information about the current status of a VolumeDecorator.

func (*VolumeDecoratorStatus) DeepCopy

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

func (*VolumeDecoratorStatus) DeepCopyInto

func (in *VolumeDecoratorStatus) DeepCopyInto(out *VolumeDecoratorStatus)

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

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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