mesh

package
v1.9.0-industry.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Overview

Package mesh is the internal version of the API.

Index

Constants

View Source
const GroupName = "mesh.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 AddonPhase

type AddonPhase string

AddonPhase defines the phase of helm constructor.

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 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 DataBase

type DataBase struct {
	Host     string
	Port     int32
	UserName string
	Password string
	DbName   string
}

Database describes the attributes of a MeshManager.

func (*DataBase) DeepCopy

func (in *DataBase) DeepCopy() *DataBase

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

func (*DataBase) DeepCopyInto

func (in *DataBase) DeepCopyInto(out *DataBase)

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

type MeshManager

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

	// Spec defines the desired identities of MeshManager.
	// +optional
	Spec MeshManagerSpec
	// +optional
	Status MeshManagerStatus
}

MeshManager is a manager to manager mesh clusters.

func (*MeshManager) DeepCopy

func (in *MeshManager) DeepCopy() *MeshManager

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

func (*MeshManager) DeepCopyInto

func (in *MeshManager) DeepCopyInto(out *MeshManager)

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

func (*MeshManager) DeepCopyObject

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

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

type MeshManagerList

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

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

MeshManagerList is the whole list of all MeshManager which owned by a tenant.

func (*MeshManagerList) DeepCopy

func (in *MeshManagerList) DeepCopy() *MeshManagerList

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

func (*MeshManagerList) DeepCopyInto

func (in *MeshManagerList) DeepCopyInto(out *MeshManagerList)

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

func (*MeshManagerList) DeepCopyObject

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

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

type MeshManagerSpec

type MeshManagerSpec struct {
	TenantID              string
	ClusterName           string
	Version               string
	DataBase              *DataBase
	TracingStorageBackend *StorageBackend
	MetricStorageBackend  *StorageBackend
}

MeshManagerSpec describes the attributes of a MeshManager.

func (*MeshManagerSpec) DeepCopy

func (in *MeshManagerSpec) DeepCopy() *MeshManagerSpec

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

func (*MeshManagerSpec) DeepCopyInto

func (in *MeshManagerSpec) DeepCopyInto(out *MeshManagerSpec)

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

type MeshManagerStatus

type MeshManagerStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the MeshManager 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
}

MeshManagerStatus is information about the current status of a MeshManager.

func (*MeshManagerStatus) DeepCopy

func (in *MeshManagerStatus) DeepCopy() *MeshManagerStatus

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

func (*MeshManagerStatus) DeepCopyInto

func (in *MeshManagerStatus) DeepCopyInto(out *MeshManagerStatus)

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

type StorageBackend

type StorageBackend struct {
	StorageType      string
	StorageAddresses []string
	// +optional
	QueryAddress string
	// +optional
	UserName string
	// +optional
	Password string
}

StorageBackend describes the attributes of a backend storage StorageType can be "thanos","elasticsearch","es"

func (*StorageBackend) DeepCopy

func (in *StorageBackend) DeepCopy() *StorageBackend

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

func (*StorageBackend) DeepCopyInto

func (in *StorageBackend) DeepCopyInto(out *StorageBackend)

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