v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudProviderCreated      = "Created"
	CloudProviderSyncing      = "Syncing"
	CloudProviderSyncSucceed  = "SyncSucceed"
	CloudProviderSyncFailed   = "SyncFailed"
	CloudProviderRemoving     = "Removing"
	CloudProviderRemoveFailed = "RemoveFailed"
)
View Source
const (
	ClusterFinalizer       = "finalizer.cluster.kubeclipper.io"
	CloudProviderFinalizer = "finalizer.cloudprovider.kubeclipper.io"
	OperationFinalizer     = "finalizer.operation.kubeclipper.io"
	BackupFinalizer        = "finalizer.backup.kubeclipper.io"
)
View Source
const (
	CRIDocker     = "docker"
	CRIContainerd = "containerd"
)
View Source
const (
	OperationCreateCluster                = "CreateCluster"
	OperationDeleteCluster                = "DeleteCluster"
	OperationUpgradeCluster               = "UpgradeCluster"
	OperationAddNodes                     = "AddNodes"
	OperationRemoveNodes                  = "RemoveNodes"
	OperationBackupCluster                = "BackupCluster"
	OperationDeleteBackup                 = "DeleteBackup"
	OperationRecoverCluster               = "RecoveryCluster"
	OperationInstallComponents            = "InstallComponents"
	OperationUninstallComponents          = "UninstallComponents"
	OperationUpdateCertification          = "UpdateCertifications"
	OperationUpdateAPIServerCertification = "UpdateAPIServerCertifications"
)
View Source
const (
	KindCluster   = "Cluster"
	KindConfigMap = "ConfigMap"
)
View Source
const DefaultBackupTimeoutSec = 1200
View Source
const DefaultOperationTimeoutSecs = "5400"
View Source
const DefaultRecoveryTimeoutSec = 1200
View Source
const GroupName = "core.kubeclipper.io"

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	AllowedCNI = sets.NewString("calico")
)
View Source
var (
	AllowedCRIType = sets.NewString(CRIDocker, CRIContainerd)
)
View Source
var ErrInvalidAction = errors.New("invalid step action")
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

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 Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

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

Types

type Addon

type Addon struct {
	Name    string               `json:"name"`
	Version string               `json:"version"`
	Config  runtime.RawExtension `json:"config"`
}

func (*Addon) DeepCopy

func (in *Addon) DeepCopy() *Addon

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

func (*Addon) DeepCopyInto

func (in *Addon) DeepCopyInto(out *Addon)

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

type AttachedVolume

type AttachedVolume struct {
	// Name of the attached volume
	Name UniqueVolumeName `json:"name"`

	// DevicePath represents the device path where the volume should be available
	DevicePath string `json:"devicePath"`
}

AttachedVolume describes a volume attached to a node

func (*AttachedVolume) DeepCopy

func (in *AttachedVolume) DeepCopy() *AttachedVolume

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

func (*AttachedVolume) DeepCopyInto

func (in *AttachedVolume) DeepCopyInto(out *AttachedVolume)

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

type Backup

type Backup struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Status            BackupStatus      `json:"backupStatus,omitempty"`
	ClusterNodes      map[string]string `json:"clusterNodes"`
	// a node selected for executing backup tasks
	PreferredNode   string `json:"preferredNode,omitempty" optional:"true"`
	BackupPointName string `json:"backupPointName"`
}

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

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

func (*Backup) DeepCopyObject

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

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

type BackupList

type BackupList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Backup `json:"items"`
}

func (*BackupList) DeepCopy

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto

func (in *BackupList) DeepCopyInto(out *BackupList)

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

func (*BackupList) DeepCopyObject

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

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

type BackupPoint

type BackupPoint struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	StorageType       string    `json:"storageType,omitempty"`
	Description       string    `json:"description,omitempty"`
	FsConfig          *FsConfig `json:"fsConfig,omitempty"`
	S3Config          *S3Config `json:"s3Config,omitempty"`
}

func (*BackupPoint) DeepCopy

func (in *BackupPoint) DeepCopy() *BackupPoint

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

func (*BackupPoint) DeepCopyInto

func (in *BackupPoint) DeepCopyInto(out *BackupPoint)

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

func (*BackupPoint) DeepCopyObject

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

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

type BackupPointList

type BackupPointList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BackupPoint `json:"items"`
}

func (*BackupPointList) DeepCopy

func (in *BackupPointList) DeepCopy() *BackupPointList

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

func (*BackupPointList) DeepCopyInto

func (in *BackupPointList) DeepCopyInto(out *BackupPointList)

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

func (*BackupPointList) DeepCopyObject

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

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

type BackupStatus

type BackupStatus struct {
	KubernetesVersion   string `json:"kubernetesVersion"`
	FileName            string `json:"fileName"`
	BackupFileSize      int64  `json:"backupFileSize"`
	BackupFileMD5       string `json:"backupFileMD5"`
	ClusterBackupStatus `json:"status"`
}

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type CNI

type CNI struct {
	LocalRegistry string `json:"localRegistry" optional:"true"`
	// TODO: Cluster multiple cni plugins are not supported at this time
	Type      string  `json:"type" enum:"calico"`
	Version   string  `json:"version"`
	CriType   string  `json:"criType"`
	Offline   bool    `json:"offline"`
	Namespace string  `json:"namespace"`
	Calico    *Calico `json:"calico" optional:"true"`
}

func (*CNI) DeepCopy

func (in *CNI) DeepCopy() *CNI

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

func (*CNI) DeepCopyInto

func (in *CNI) DeepCopyInto(out *CNI)

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

type CRIRegistry added in v1.3.1

type CRIRegistry struct {
	InsecureRegistry string  `json:"insecureRegistry,omitempty"`
	RegistryRef      *string `json:"registryRef,omitempty"`
}

func (*CRIRegistry) DeepCopy added in v1.3.1

func (in *CRIRegistry) DeepCopy() *CRIRegistry

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

func (*CRIRegistry) DeepCopyInto added in v1.3.1

func (in *CRIRegistry) DeepCopyInto(out *CRIRegistry)

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

type CRIType

type CRIType string

type Calico

type Calico struct {
	IPv4AutoDetection string `json:"IPv4AutoDetection" enum:"first-found|can-reach=DESTINATION|interface=INTERFACE-REGEX|skip-interface=INTERFACE-REGEX"`
	IPv6AutoDetection string `json:"IPv6AutoDetection" enum:"first-found|can-reach=DESTINATION|interface=INTERFACE-REGEX|skip-interface=INTERFACE-REGEX"`
	Mode              string `json:"mode" enum:"BGP|Overlay-IPIP-All|Overlay-IPIP-Cross-Subnet|Overlay-Vxlan-All|Overlay-Vxlan-Cross-Subnet|overlay"`
	IPManger          bool   `json:"IPManger" optional:"true"`
	MTU               int    `json:"mtu"`
}

func (*Calico) DeepCopy

func (in *Calico) DeepCopy() *Calico

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

func (*Calico) DeepCopyInto

func (in *Calico) DeepCopyInto(out *Calico)

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

type Certification

type Certification struct {
	Name           string      `json:"name,omitempty"`
	CAName         string      `json:"caName"`
	ExpirationTime metav1.Time `json:"expirationTime,omitempty"`
}

func (*Certification) DeepCopy

func (in *Certification) DeepCopy() *Certification

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

func (*Certification) DeepCopyInto

func (in *Certification) DeepCopyInto(out *Certification)

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

type CloudProvider added in v1.2.0

type CloudProvider struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Type              string `json:"type,omitempty"`
	Region            string `json:"region,omitempty"`
	// SSH config for connect to nodes.
	SSH    SSH                  `json:"ssh,omitempty"`
	Config runtime.RawExtension `json:"config,omitempty"`
	Status CloudProviderStatus  `json:"status"`
}

CloudProvider +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=false

func (*CloudProvider) DeepCopy added in v1.2.0

func (in *CloudProvider) DeepCopy() *CloudProvider

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

func (*CloudProvider) DeepCopyInto added in v1.2.0

func (in *CloudProvider) DeepCopyInto(out *CloudProvider)

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

func (*CloudProvider) DeepCopyObject added in v1.2.0

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

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

type CloudProviderCondition added in v1.2.0

type CloudProviderCondition struct {
	// Type of node condition.
	Type CloudProviderConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status"`
	// Last time we got an update on a given condition.
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transit from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	//  Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

CloudProviderCondition contains condition information for a cloudProvider.

func (*CloudProviderCondition) DeepCopy added in v1.2.0

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

func (*CloudProviderCondition) DeepCopyInto added in v1.2.0

func (in *CloudProviderCondition) DeepCopyInto(out *CloudProviderCondition)

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

type CloudProviderConditionType added in v1.2.0

type CloudProviderConditionType string
const (
	CloudProviderReady       CloudProviderConditionType = "Ready"
	CloudProviderProgressing CloudProviderConditionType = "Progressing"
)

type CloudProviderList added in v1.2.0

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

	// Items is the list of CloudProvider.
	Items []CloudProvider
}

CloudProviderList is a resource containing a list of CloudProvider objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CloudProviderList) DeepCopy added in v1.2.0

func (in *CloudProviderList) DeepCopy() *CloudProviderList

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

func (*CloudProviderList) DeepCopyInto added in v1.2.0

func (in *CloudProviderList) DeepCopyInto(out *CloudProviderList)

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

func (*CloudProviderList) DeepCopyObject added in v1.2.0

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

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

type CloudProviderStatus added in v1.2.0

type CloudProviderStatus struct {
	Conditions []CloudProviderCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*CloudProviderStatus) DeepCopy added in v1.2.0

func (in *CloudProviderStatus) DeepCopy() *CloudProviderStatus

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

func (*CloudProviderStatus) DeepCopyInto added in v1.2.0

func (in *CloudProviderStatus) DeepCopyInto(out *CloudProviderStatus)

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

type Cluster

type Cluster struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// move offline to metadata annotation
	// Offline           bool   `json:"offline" optional:"true"`
	LocalRegistry     string         `json:"localRegistry,omitempty" optional:"true"`
	Masters           WorkerNodeList `json:"masters"`
	Workers           WorkerNodeList `json:"workers" optional:"true"`
	KubernetesVersion string         `json:"kubernetesVersion" enum:"v1.20.13"`
	// when generate cert,use GetAllCertSANs
	CertSANs          []string           `json:"certSANs,omitempty" optional:"true"`
	ExternalCaCert    string             `json:"externalCaCert,omitempty" optional:"true"`
	ExternalCaKey     string             `json:"externalCaKey,omitempty" optional:"true"`
	KubeProxy         KubeProxy          `json:"kubeProxy,omitempty" optional:"true"`
	Etcd              Etcd               `json:"etcd,omitempty" optional:"true"`
	Kubelet           Kubelet            `json:"kubelet,omitempty" optional:"true"`
	Networking        Networking         `json:"networking"`
	ContainerRuntime  ContainerRuntime   `json:"containerRuntime"`
	CNI               CNI                `json:"cni"`
	KubeConfig        []byte             `json:"kubeConfig,omitempty"`
	Addons            []Addon            `json:"addons" optional:"true"`
	Description       string             `json:"description,omitempty" optional:"true"`
	Status            ClusterStatus      `json:"status,omitempty" optional:"true"`
	PendingOperations []PendingOperation `json:"pendingOperations,omitempty" optional:"true"`
	FeatureGates      map[string]bool    `json:"featureGates,omitempty"`
}

func (*Cluster) Complete

func (c *Cluster) Complete()

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) GetAllCertSANs added in v1.3.3

func (c *Cluster) GetAllCertSANs() []string

GetAllCertSANs if api server set externalIP,use it as certSans

func (*Cluster) GetAllNodes

func (c *Cluster) GetAllNodes() sets.Set[string]

func (*Cluster) Offline

func (c *Cluster) Offline() bool

type ClusterBackupStatus

type ClusterBackupStatus string

ClusterBackupStatus describes the status of a cluster backup

const (
	// ClusterBackupCreating means the backup is in creating.
	ClusterBackupCreating ClusterBackupStatus = "creating"
	// ClusterBackupAvailable means the backup is available for restoring.
	ClusterBackupAvailable ClusterBackupStatus = "available"
	// ClusterBackupError means the backup is created failed and must not be used.
	ClusterBackupError ClusterBackupStatus = "error"
	// ClusterBackupRestoring means the backup is in using for restoring.
	ClusterBackupRestoring ClusterBackupStatus = "restoring"
)

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

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 ClusterPhase

type ClusterPhase string
const (
	ClusterInstalling      ClusterPhase = "Installing"
	ClusterInstallFailed   ClusterPhase = "InstallFailed"
	ClusterRunning         ClusterPhase = "Running"
	ClusterUpdating        ClusterPhase = "Updating"
	ClusterUpdateFailed    ClusterPhase = "UpdateFailed"
	ClusterUpgrading       ClusterPhase = "Upgrading"
	ClusterUpgradeFailed   ClusterPhase = "UpgradeFailed"
	ClusterBackingUp       ClusterPhase = "BackingUp"
	ClusterRestoring       ClusterPhase = "Restoring"
	ClusterRestoreFailed   ClusterPhase = "RestoreFailed"
	ClusterTerminating     ClusterPhase = "Terminating"
	ClusterTerminateFailed ClusterPhase = "TerminateFailed"
)

These are the valid phases of a project.

type ClusterStatus

type ClusterStatus struct {
	// Phase is a description of the current cluster status, summarizing the various conditions,
	// possible active updates etc. This field is for informational purpose only and no logic
	// should be tied to the phase.
	// +optional
	Phase ClusterPhase `json:"phase,omitempty"`
	// Status ClusterStatusType `json:"status,omitempty"`
	// Versions contains information regarding the current and desired versions
	// of the cluster control plane and worker nodes.
	// +optional
	Versions ClusterVersionsStatus `json:"versions,omitempty"`
	// cluster component health status
	ComponentConditions []ComponentConditions `json:"componentConditions,omitempty"`

	Certifications []Certification `json:"certifications,omitempty"`
	// Registries all CRI registry
	Registries []RegistrySpec `json:"registries,omitempty"`
	// ControlPlane Health
	ControlPlaneHealth []ControlPlaneHealth `json:"controlPlaneHealth,omitempty"`
}

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 ClusterVersionsStatus

type ClusterVersionsStatus struct {
	// ControlPlane is the currently active cluster version. This can lag behind the apiserver
	// version if an update is currently rolling out.
	ControlPlane string `json:"controlPlane"`
	// Apiserver is the currently desired version of the kube-apiserver. During
	// upgrades across multiple minor versions (e.g. from 1.20 to 1.23), this will gradually
	// be increased by the update-controller until the desired cluster version (spec.version)
	// is reached.
	Apiserver string `json:"apiserver"`
	// ControllerManager is the currently desired version of the kube-controller-manager. This
	// field behaves the same as the apiserver field.
	ControllerManager string `json:"controllerManager"`
	// Scheduler is the currently desired version of the kube-scheduler. This field behaves the
	// same as the apiserver field.
	Scheduler string `json:"scheduler"`
}

ClusterVersionsStatus contains information regarding the current and desired versions of the cluster control plane and worker nodes.

func (*ClusterVersionsStatus) DeepCopy

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

func (*ClusterVersionsStatus) DeepCopyInto

func (in *ClusterVersionsStatus) DeepCopyInto(out *ClusterVersionsStatus)

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

type Command

type Command struct {
	Type          CommandType      `json:"type"`
	ShellCommand  []string         `json:"shellCommand,omitempty"`
	Identity      string           `json:"identity,omitempty"`
	CustomCommand []byte           `json:"customCommand,omitempty"`
	Template      *TemplateCommand `json:"template,omitempty"`
}

func (*Command) DeepCopy

func (in *Command) DeepCopy() *Command

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

func (*Command) DeepCopyInto

func (in *Command) DeepCopyInto(out *Command)

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

type CommandType

type CommandType string
const (
	CommandShell          CommandType = "shell"
	CommandTemplateRender CommandType = "templateRender"
	CommandCustom         CommandType = "custom"
)

type ComponentConditions

type ComponentConditions struct {
	Name     string          `json:"name"`
	Category string          `json:"category"`
	Status   ComponentStatus `json:"status"`
}

func (*ComponentConditions) DeepCopy

func (in *ComponentConditions) DeepCopy() *ComponentConditions

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

func (*ComponentConditions) DeepCopyInto

func (in *ComponentConditions) DeepCopyInto(out *ComponentConditions)

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

type ComponentStatus

type ComponentStatus string
const (
	ComponentHealthy     ComponentStatus = "Healthy"
	ComponentUnhealthy   ComponentStatus = "Unhealthy"
	ComponentUnKnown     ComponentStatus = "Unknown"
	ComponentUnsupported ComponentStatus = "Unsupported"
)

type ConditionStatus

type ConditionStatus string
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 kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.

type ConfigMap added in v1.2.0

type ConfigMap struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Immutable field, if set, ensures that data stored in the ConfigMap cannot
	// be updated (only object metadata can be modified).
	// +optional
	Immutable *bool

	// 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.
	// Using this field will require 1.10+ apiserver and
	// kubelet.
	// +optional
	BinaryData map[string][]byte
}

ConfigMap holds configuration data for components or applications to consume. +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=false

func (*ConfigMap) DeepCopy added in v1.2.0

func (in *ConfigMap) DeepCopy() *ConfigMap

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

func (*ConfigMap) DeepCopyInto added in v1.2.0

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 added in v1.2.0

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

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

type ConfigMapList added in v1.2.0

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. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ConfigMapList) DeepCopy added in v1.2.0

func (in *ConfigMapList) DeepCopy() *ConfigMapList

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

func (*ConfigMapList) DeepCopyInto added in v1.2.0

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 added in v1.2.0

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

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

type ContainerRuntime

type ContainerRuntime struct {
	Type        string `json:"type" enum:"docker|containerd"`
	Version     string `json:"version,omitempty" enum:"1.4.4"`
	DataRootDir string `json:"rootDir,omitempty"`
	// Deprecated use Registries  insteadof
	InsecureRegistry []string `json:"insecureRegistry,omitempty"`
	// When updating
	Registries []CRIRegistry `json:"registries,omitempty"`
}

func (*ContainerRuntime) DeepCopy

func (in *ContainerRuntime) DeepCopy() *ContainerRuntime

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

func (*ContainerRuntime) DeepCopyInto

func (in *ContainerRuntime) DeepCopyInto(out *ContainerRuntime)

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

type ControlPlaneHealth added in v1.3.1

type ControlPlaneHealth struct {
	ID       string          `json:"id,omitempty"`
	Hostname string          `json:"hostname,omitempty"`
	Address  string          `json:"address,omitempty"`
	Status   ComponentStatus `json:"status,omitempty"`
}

func (*ControlPlaneHealth) DeepCopy added in v1.3.1

func (in *ControlPlaneHealth) DeepCopy() *ControlPlaneHealth

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

func (*ControlPlaneHealth) DeepCopyInto added in v1.3.1

func (in *ControlPlaneHealth) DeepCopyInto(out *ControlPlaneHealth)

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

type CronBackup

type CronBackup struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec CronBackupSpec `json:"spec"`
	// +optional
	Status CronBackupStatus `json:"status,omitempty"`
}

func (*CronBackup) DeepCopy

func (in *CronBackup) DeepCopy() *CronBackup

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

func (*CronBackup) DeepCopyInto

func (in *CronBackup) DeepCopyInto(out *CronBackup)

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

func (*CronBackup) DeepCopyObject

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

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

type CronBackupList

type CronBackupList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CronBackup `json:"items"`
}

func (*CronBackupList) DeepCopy

func (in *CronBackupList) DeepCopy() *CronBackupList

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

func (*CronBackupList) DeepCopyInto

func (in *CronBackupList) DeepCopyInto(out *CronBackupList)

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

func (*CronBackupList) DeepCopyObject

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

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

type CronBackupSpec

type CronBackupSpec struct {
	// the cluster to which the cronBackup belongs
	ClusterName string `json:"clusterName,omitempty"`
	// the schedule in cron format
	Schedule string `json:"schedule,omitempty"`
	// maximum number of reserved backups
	MaxBackupNum int `json:"maxBackupNum,omitempty"`
	// specific run time
	RunAt *metav1.Time `json:"runAt,omitempty"`
}

CronBackupSpec defines the desired state of CronBackup

func (*CronBackupSpec) DeepCopy

func (in *CronBackupSpec) DeepCopy() *CronBackupSpec

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

func (*CronBackupSpec) DeepCopyInto

func (in *CronBackupSpec) DeepCopyInto(out *CronBackupSpec)

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

type CronBackupStatus

type CronBackupStatus struct {
	// next create backup time
	NextScheduleTime *metav1.Time `json:"NextScheduleTime,omitempty"`
	// last create backup time
	LastScheduleTime *metav1.Time `json:"LastScheduleTime,omitempty"`
	// last successfully create backup time
	LastSuccessfulTime *metav1.Time `json:"LastSuccessfulTime,omitempty"`
}

CronBackupStatus defines the status of cronBackup

func (*CronBackupStatus) DeepCopy

func (in *CronBackupStatus) DeepCopy() *CronBackupStatus

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

func (*CronBackupStatus) DeepCopyInto

func (in *CronBackupStatus) DeepCopyInto(out *CronBackupStatus)

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

type DockerRegistry

type DockerRegistry struct {
	InsecureRegistry []InsecureRegistry `json:"insecureRegistry"`
}

func (*DockerRegistry) DeepCopy

func (in *DockerRegistry) DeepCopy() *DockerRegistry

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

func (*DockerRegistry) DeepCopyInto

func (in *DockerRegistry) DeepCopyInto(out *DockerRegistry)

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

type Domain

type Domain struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DomainSpec   `json:"spec,omitempty"`
	Status            DomainStatus `json:"status,omitempty"`
}

func (*Domain) DeepCopy

func (in *Domain) DeepCopy() *Domain

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

func (*Domain) DeepCopyInto

func (in *Domain) DeepCopyInto(out *Domain)

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

func (*Domain) DeepCopyObject

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

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

type DomainList

type DomainList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Domain `json:"items"`
}

DomainList contains a list of Domain

func (*DomainList) DeepCopy

func (in *DomainList) DeepCopy() *DomainList

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

func (*DomainList) DeepCopyInto

func (in *DomainList) DeepCopyInto(out *DomainList)

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

func (*DomainList) DeepCopyObject

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

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

type DomainSpec

type DomainSpec struct {
	// +optional
	Description string `json:"description,omitempty"`
	// +optional
	Records map[string]Record `json:"records,omitempty"` // key: rr.domain value: record
	// +optional
	SyncCluster []string `json:"syncCluster,omitempty"`
}

func (*DomainSpec) DeepCopy

func (in *DomainSpec) DeepCopy() *DomainSpec

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

func (*DomainSpec) DeepCopyInto

func (in *DomainSpec) DeepCopyInto(out *DomainSpec)

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

type DomainStatus

type DomainStatus struct {
	Count int64 `json:"count"` // update by informer
}

func (*DomainStatus) DeepCopy

func (in *DomainStatus) DeepCopy() *DomainStatus

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

func (*DomainStatus) DeepCopyInto

func (in *DomainStatus) DeepCopyInto(out *DomainStatus)

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

type Etcd

type Etcd struct {
	DataDir string `json:"dataDir,omitempty" optional:"true"`
}

func (*Etcd) DeepCopy

func (in *Etcd) DeepCopy() *Etcd

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

func (*Etcd) DeepCopyInto

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

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

type Event

type Event struct {
	metav1.TypeMeta          `json:",inline"`
	metav1.ObjectMeta        `json:"metadata,omitempty"`
	AuditID                  string `json:"auditID,omitempty"`
	RequestURI               string `json:"requestURI"`
	UserID                   string `json:"userID,omitempty"`
	Username                 string `json:"username,omitempty"`
	Verb                     string `json:"verb"`
	Type                     string `json:"type,omitempty"`
	SourceIP                 string `json:"sourceIP"`
	UserAgent                string `json:"userAgent,omitempty"`
	Success                  bool   `json:"success"`
	RequestReceivedTimestamp metav1.MicroTime
	StageTimestamp           metav1.MicroTime
	Resource                 string `json:"resource"`
	ResourceName             string `json:"resourceName"`
	Subresource              string `json:"subresource"`
	ResourceAPIGroup         string `json:"resourceAPIGroup"`
	ResourceAPIVersion       string `json:"resourceAPIVersion"`
}

func (*Event) DeepCopy

func (in *Event) DeepCopy() *Event

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

func (*Event) DeepCopyInto

func (in *Event) DeepCopyInto(out *Event)

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

func (*Event) DeepCopyObject

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

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

type EventList

type EventList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Event `json:"items"`
}

EventList contains a list of EventList

func (*EventList) DeepCopy

func (in *EventList) DeepCopy() *EventList

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

func (*EventList) DeepCopyInto

func (in *EventList) DeepCopyInto(out *EventList)

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

func (*EventList) DeepCopyObject

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

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

type FsConfig

type FsConfig struct {
	BackupRootDir string `json:"backupRootDir,omitempty" yaml:"backupRootDir,omitempty"`
}

func (*FsConfig) DeepCopy

func (in *FsConfig) DeepCopy() *FsConfig

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

func (*FsConfig) DeepCopyInto

func (in *FsConfig) DeepCopyInto(out *FsConfig)

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

type IPFamily

type IPFamily string
const (
	// IPFamilyIPv4 represents IPv4-only address family.
	IPFamilyIPv4 IPFamily = "IPv4"
	// IPFamilyDualStack represents dual-stack address family with IPv4 as the primary address family.
	IPFamilyDualStack IPFamily = "IPv4+IPv6"
)

type InsecureRegistry

type InsecureRegistry struct {
	Host        string `json:"host"`
	Description string `json:"description,omitempty"`
	Username    string `json:"username,omitempty"`
	Password    string `json:"password,omitempty"`
	// +optional
	CreateAt metav1.Time `json:"createAt,omitempty"`
}

func (*InsecureRegistry) DeepCopy

func (in *InsecureRegistry) DeepCopy() *InsecureRegistry

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

func (*InsecureRegistry) DeepCopyInto

func (in *InsecureRegistry) DeepCopyInto(out *InsecureRegistry)

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

type KubeProxy

type KubeProxy struct {
}

func (*KubeProxy) DeepCopy

func (in *KubeProxy) DeepCopy() *KubeProxy

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

func (*KubeProxy) DeepCopyInto

func (in *KubeProxy) DeepCopyInto(out *KubeProxy)

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

type Kubelet

type Kubelet struct {
	RootDir    string `json:"rootDir" yaml:"rootDir"`
	NodeIP     string `json:"nodeIP" yaml:"nodeIP"`
	IPAsName   bool   `json:"ipAsName" yaml:"ipAsName"`
	ResolvConf string `json:"resolvConf" yaml:"resolvConf"`
}

func (*Kubelet) DeepCopy

func (in *Kubelet) DeepCopy() *Kubelet

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

func (*Kubelet) DeepCopyInto

func (in *Kubelet) DeepCopyInto(out *Kubelet)

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

type NetworkRanges

type NetworkRanges struct {
	CIDRBlocks []string `json:"cidrBlocks"`
}

NetworkRanges represents ranges of network addresses.

func (*NetworkRanges) DeepCopy

func (in *NetworkRanges) DeepCopy() *NetworkRanges

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

func (*NetworkRanges) DeepCopyInto

func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)

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

type Networking

type Networking struct {
	// Optional: IP family used for cluster networking. Supported values are "IPv4" or "IPv4+IPv6".
	// Can be omitted / empty if pods and services network ranges are specified.
	// In that case it defaults according to the IP families of the provided network ranges.
	// If neither ipFamily nor pods & services network ranges are specified, defaults to "IPv4".
	// +optional
	IPFamily IPFamily `json:"ipFamily,omitempty"`
	// The network ranges from which service VIPs are allocated.
	// It can contain one IPv4 and/or one IPv6 CIDR.
	// If both address families are specified, the first one defines the primary address family.
	Services NetworkRanges `json:"services"`

	// The network ranges from which POD networks are allocated.
	// It can contain one IPv4 and/or one IPv6 CIDR.
	// If both address families are specified, the first one defines the primary address family.
	Pods NetworkRanges `json:"pods"`
	// Domain name for services.
	DNSDomain string `json:"dnsDomain"`
	// ProxyMode defines the kube-proxy mode ("ipvs" / "iptables" / "ebpf").
	// Defaults to "ipvs". "ebpf" disables kube-proxy and requires CNI support.
	ProxyMode     string `json:"proxyMode"`
	WorkerNodeVip string `json:"workerNodeVip" optional:"true"`
}

func (*Networking) DeepCopy

func (in *Networking) DeepCopy() *Networking

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

func (*Networking) DeepCopyInto

func (in *Networking) DeepCopyInto(out *Networking)

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

type Node

type Node struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	ProxyIpv4CIDR     string `` /* 142-byte string literal not displayed */
	// Most recently observed status of the node.
	// Populated by the system.
	// Read-only.
	// +optional
	Status NodeStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=false

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

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

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

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

func (*Node) DeepCopyObject

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

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

type NodeAddress

type NodeAddress struct {
	// Node address type, one of Hostname, ExternalIP or InternalIP.
	Type NodeAddressType `json:"type"`
	// The node address.
	Address string `json:"address"`
}

NodeAddress contains information for the node's address.

func (*NodeAddress) DeepCopy

func (in *NodeAddress) DeepCopy() *NodeAddress

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

func (*NodeAddress) DeepCopyInto

func (in *NodeAddress) DeepCopyInto(out *NodeAddress)

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

type NodeAddressType

type NodeAddressType string
const (
	NodeHostName    NodeAddressType = "Hostname"
	NodeIPV4Addr    NodeAddressType = "IPV4"
	NodeIPV6Addr    NodeAddressType = "IPV6"
	NodeExternalIP  NodeAddressType = "ExternalIP"
	NodeInternalIP  NodeAddressType = "InternalIP"
	NodeExternalDNS NodeAddressType = "ExternalDNS"
	NodeInternalDNS NodeAddressType = "InternalDNS"
)

These are valid address type of node.

type NodeCondition

type NodeCondition struct {
	// Type of node condition.
	Type NodeConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status"`
	// Last time we got an update on a given condition.
	// +optional
	LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime,omitempty"`
	// Last time the condition transit from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

NodeCondition contains condition information for a node.

func (*NodeCondition) DeepCopy

func (in *NodeCondition) DeepCopy() *NodeCondition

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

func (*NodeCondition) DeepCopyInto

func (in *NodeCondition) DeepCopyInto(out *NodeCondition)

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

type NodeConditionType

type NodeConditionType string
const (
	NodeReady              NodeConditionType = "Ready"
	NodeMemoryPressure     NodeConditionType = "MemoryPressure"
	NodeDiskPressure       NodeConditionType = "DiskPressure"
	NodePIDPressure        NodeConditionType = "PIDPressure"
	NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)

These are valid conditions of node. Currently, we don't have enough information to decide node condition. In the future, we will add more. The proposed set of conditions are: NodeReachable, NodeLive, NodeReady, NodeSchedulable, NodeRunnable.

type NodeList

type NodeList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Node `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object NodeList contains a list of Node

func (*NodeList) DeepCopy

func (in *NodeList) DeepCopy() *NodeList

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

func (*NodeList) DeepCopyInto

func (in *NodeList) DeepCopyInto(out *NodeList)

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

func (*NodeList) DeepCopyObject

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

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

type NodeStatus

type NodeStatus struct {
	// Note: It is usually used for routing between kc nodes and belongs to the operation and maintenance management network.
	Ipv4DefaultIP string `json:"ipv4DefaultIP" description:"node ipv4 default gateway interface ip"`
	Ipv4DefaultGw string `json:"ipv4DefaultGw" description:"node ipv4 default gateway ip"`
	// Note: It is commonly used for routing between nodes in a kubernetes cluster.
	// If the `--node-ip-detect` parameter is not specified at deployment time, it is the same as `Ipv4DefaultIP`;
	// otherwise, it depends on the ip detect method.
	NodeIpv4DefaultIP string `json:"nodeIpv4DefaultIP"`
	// Capacity represents the total resources of a node.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
	// +optional
	Capacity ResourceList `json:"capacity,omitempty"`
	// Allocatable represents the resources of a node that are available for scheduling.
	// Defaults to Capacity.
	// +optional
	Allocatable ResourceList `json:"allocatable,omitempty"`
	// Conditions is an array of current observed node conditions.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []NodeCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
	// List of addresses reachable to the node.
	// Queried from cloud provider, if available.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
	// Note: This field is declared as mergeable, but the merge key is not sufficiently
	// unique, which can cause data corruption when it is merged. Callers should instead
	// use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Addresses []NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
	// Set of ids/uuids to uniquely identify the node.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#info
	// +optional
	NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"`
	// List of volumes that are attached to the node.
	// +optional
	VolumesAttached      []AttachedVolume `json:"volumesAttached,omitempty"`
	ContainerRuntimeInfo ContainerRuntime `json:"containerRuntime"`
}

func (*NodeStatus) DeepCopy

func (in *NodeStatus) DeepCopy() *NodeStatus

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

func (*NodeStatus) DeepCopyInto

func (in *NodeStatus) DeepCopyInto(out *NodeStatus)

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

type NodeSystemInfo

type NodeSystemInfo struct {
	Hostname        string `json:"hostname"`
	OS              string `json:"os"` // ex: freebsd, linux
	Arch            string `json:"arch"`
	Platform        string `json:"platform"`        // ex: ubuntu, linuxmint
	PlatformFamily  string `json:"platformFamily"`  // ex: debian, rhel
	PlatformVersion string `json:"platformVersion"` // version of the complete OS
	KernelVersion   string `json:"kernelVersion"`   // version of the OS kernel (if available)
	KernelArch      string `json:"kernelArch"`      // native cpu architecture queried at runtime, as returned by `uname -m` or empty string in case of error
	HostID          string `json:"hostId"`          // MachineId
}

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

func (*NodeSystemInfo) DeepCopy

func (in *NodeSystemInfo) DeepCopy() *NodeSystemInfo

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

func (*NodeSystemInfo) DeepCopyInto

func (in *NodeSystemInfo) DeepCopyInto(out *NodeSystemInfo)

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

type Operation

type Operation struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Steps             []Step          `json:"steps,omitempty"`
	Status            OperationStatus `json:"status,omitempty"`
}

func (*Operation) DeepCopy

func (in *Operation) DeepCopy() *Operation

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

func (*Operation) DeepCopyInto

func (in *Operation) DeepCopyInto(out *Operation)

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

func (*Operation) DeepCopyObject

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

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

func (*Operation) GetStep

func (op *Operation) GetStep(stepID string) (step Step, ok bool)

type OperationCondition

type OperationCondition struct {
	StepID string       `json:"stepID,omitempty"`
	Status []StepStatus `json:"status,omitempty"`
}

OperationCondition contains condition information for a node.

func (*OperationCondition) DeepCopy

func (in *OperationCondition) DeepCopy() *OperationCondition

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

func (*OperationCondition) DeepCopyInto

func (in *OperationCondition) DeepCopyInto(out *OperationCondition)

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

type OperationList

type OperationList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Operation `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object OperationList contains a list of User

func (*OperationList) DeepCopy

func (in *OperationList) DeepCopy() *OperationList

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

func (*OperationList) DeepCopyInto

func (in *OperationList) DeepCopyInto(out *OperationList)

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

func (*OperationList) DeepCopyObject

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

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

type OperationStatus

type OperationStatus struct {
	Status     OperationStatusType  `json:"status,omitempty"`
	Conditions []OperationCondition `json:"conditions,omitempty"`
}

func (*OperationStatus) DeepCopy

func (in *OperationStatus) DeepCopy() *OperationStatus

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

func (*OperationStatus) DeepCopyInto

func (in *OperationStatus) DeepCopyInto(out *OperationStatus)

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

type OperationStatusType

type OperationStatusType string
const (
	OperationStatusPending     OperationStatusType = "pending"
	OperationStatusRunning     OperationStatusType = "running"
	OperationStatusFailed      OperationStatusType = "failed"
	OperationStatusTermination OperationStatusType = "termination"
	OperationStatusUnknown     OperationStatusType = "unknown"
	OperationStatusSuccessful  OperationStatusType = "successful"
)

type ParseRecord

type ParseRecord struct {
	Type string `json:"type,omitempty"` // resolve record. A or AAAA
	IP   string `json:"ip,omitempty"`   // ipv4 or ipv6
}

func (*ParseRecord) DeepCopy

func (in *ParseRecord) DeepCopy() *ParseRecord

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

func (*ParseRecord) DeepCopyInto

func (in *ParseRecord) DeepCopyInto(out *ParseRecord)

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

type PendingOperation added in v1.4.0

type PendingOperation struct {
	OperationID            string `json:"operationID"`
	OperationType          string `json:"operationType"`
	OperationSponsor       string `json:"operationSponsor"`
	Timeout                string `json:"timeout"`
	ClusterResourceVersion string `json:"clusterResourceVersion"`
	ExtraData              []byte `json:"extraData,omitempty"`
}

func (*PendingOperation) DeepCopy added in v1.4.0

func (in *PendingOperation) DeepCopy() *PendingOperation

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

func (*PendingOperation) DeepCopyInto added in v1.4.0

func (in *PendingOperation) DeepCopyInto(out *PendingOperation)

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

type PlatformSetting

type PlatformSetting struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Template          DockerRegistry `json:"template,omitempty"`
	Terminal          WebTerminal    `json:"terminal,omitempty"`
}

func (*PlatformSetting) DeepCopy

func (in *PlatformSetting) DeepCopy() *PlatformSetting

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

func (*PlatformSetting) DeepCopyInto

func (in *PlatformSetting) DeepCopyInto(out *PlatformSetting)

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

func (*PlatformSetting) DeepCopyObject

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

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

type PlatformSettingList

type PlatformSettingList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PlatformSetting `json:"items"`
}

func (*PlatformSettingList) DeepCopy

func (in *PlatformSettingList) DeepCopy() *PlatformSettingList

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

func (*PlatformSettingList) DeepCopyInto

func (in *PlatformSettingList) DeepCopyInto(out *PlatformSettingList)

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

func (*PlatformSettingList) DeepCopyObject

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

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

type Record

type Record struct {
	Domain      string        `json:"domain,omitempty"` // domain e.g. baidu.com
	RR          string        `json:"rr,omitempty"`     // resource record e.g. www
	CreateTime  metav1.Time   `json:"createTime,omitempty"`
	Description string        `json:"description,omitempty"`
	ParseRecord []ParseRecord `json:"parseRecord,omitempty"`
}

func (*Record) DeepCopy

func (in *Record) DeepCopy() *Record

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

func (*Record) DeepCopyInto

func (in *Record) DeepCopyInto(out *Record)

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

type Recovery

type Recovery struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	UseBackupName     string `json:"useBackupName"`
	// a node selected for executing recovery tasks
	Description string `json:"description,omitempty" optional:"true"`
}

func (*Recovery) DeepCopy

func (in *Recovery) DeepCopy() *Recovery

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

func (*Recovery) DeepCopyInto

func (in *Recovery) DeepCopyInto(out *Recovery)

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

func (*Recovery) DeepCopyObject

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

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

type RecoveryList

type RecoveryList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Recovery `json:"items"`
}

func (*RecoveryList) DeepCopy

func (in *RecoveryList) DeepCopy() *RecoveryList

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

func (*RecoveryList) DeepCopyInto

func (in *RecoveryList) DeepCopyInto(out *RecoveryList)

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

func (*RecoveryList) DeepCopyObject

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

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

type Region

type Region struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
}

func (*Region) DeepCopy

func (in *Region) DeepCopy() *Region

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

func (*Region) DeepCopyInto

func (in *Region) DeepCopyInto(out *Region)

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

func (*Region) DeepCopyObject

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

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

type RegionList

type RegionList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Region `json:"items"`
}

func (*RegionList) DeepCopy

func (in *RegionList) DeepCopy() *RegionList

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

func (*RegionList) DeepCopyInto

func (in *RegionList) DeepCopyInto(out *RegionList)

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

func (*RegionList) DeepCopyObject

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

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

type Registry added in v1.3.1

type Registry struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	RegistrySpec      `json:",inline"`
}

func (*Registry) DeepCopy added in v1.3.1

func (in *Registry) DeepCopy() *Registry

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

func (*Registry) DeepCopyInto added in v1.3.1

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 added in v1.3.1

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

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

type RegistryList added in v1.3.1

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

	// Items is the list of registry.
	Items []Registry
}

RegistryList is a resource containing a list of RegistryList objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RegistryList) DeepCopy added in v1.3.1

func (in *RegistryList) DeepCopy() *RegistryList

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

func (*RegistryList) DeepCopyInto added in v1.3.1

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 added in v1.3.1

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

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

type RegistrySpec added in v1.3.1

type RegistrySpec struct {
	Scheme     string `json:"scheme,omitempty"`
	Host       string `json:"host,omitempty"`
	SkipVerify bool   `json:"skipVerify,omitempty"`
	CA         string `json:"ca,omitempty"`
}

func (*RegistrySpec) DeepCopy added in v1.3.1

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto added in v1.3.1

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[ResourceName]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 ResourceName

type ResourceName string

ResourceName is the name identifying various resources in a ResourceList.

const (
	// CPU, in cores. (500m = .5 cores)
	ResourceCPU ResourceName = "cpu"
	// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	ResourceMemory ResourceName = "memory"
	// Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024)
	ResourceStorage ResourceName = "storage"
	// Local ephemeral storage, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	// The resource name for ResourceEphemeralStorage is alpha and it can change across releases.
	ResourceEphemeralStorage ResourceName = "ephemeral-storage"
)

Resource names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, with the -, _, and . characters allowed anywhere, except the first or last character. The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than camel case, separating compound words. Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name.

type S3Config

type S3Config struct {
	Bucket          string `json:"bucket" yaml:"bucket"`
	Endpoint        string `json:"endpoint" yaml:"endpoint"`
	AccessKeyID     string `json:"accessKeyID" yaml:"accessKeyID"`
	AccessKeySecret string `json:"accessKeySecret" yaml:"accessKeySecret"`
	Region          string `json:"region" yaml:"region"`
	SSL             bool   `json:"ssl" yaml:"ssl"`
}

func (*S3Config) DeepCopy

func (in *S3Config) DeepCopy() *S3Config

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

func (*S3Config) DeepCopyInto

func (in *S3Config) DeepCopyInto(out *S3Config)

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

type SSH added in v1.2.0

type SSH struct {
	User               string `json:"user,omitempty"`
	Password           string `json:"password,omitempty"`
	PrivateKey         string `json:"privateKey,omitempty"`
	PrivateKeyPassword string `json:"privateKeyPassword,omitempty"`
	Port               int    `json:"port,omitempty"`
}

func (*SSH) DeepCopy added in v1.2.0

func (in *SSH) DeepCopy() *SSH

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

func (*SSH) DeepCopyInto added in v1.2.0

func (in *SSH) DeepCopyInto(out *SSH)

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

type Step

type Step struct {
	ID                string          `json:"id,omitempty"`
	Name              string          `json:"name,omitempty"`
	Nodes             []StepNode      `json:"nodes,omitempty"`
	Action            StepAction      `json:"action,omitempty"`
	Timeout           metav1.Duration `json:"timeout,omitempty"`
	ErrIgnore         bool            `json:"errIgnore"`
	Commands          []Command       `json:"commands,omitempty"`
	BeforeRunCommands []Command       `json:"beforeRunCommands,omitempty"`
	AfterRunCommands  []Command       `json:"afterRunCommands,omitempty"`
	RetryTimes        int32           `json:"retryTimes,omitempty"`
	AutomaticRetry    bool            `json:"automaticRetry"`
}

Step TODO: add commands struct instead of string

func (*Step) DeepCopy

func (in *Step) DeepCopy() *Step

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

func (*Step) DeepCopyInto

func (in *Step) DeepCopyInto(out *Step)

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

type StepAction

type StepAction string
const (
	ActionInstall   StepAction = "install"
	ActionUninstall StepAction = "uninstall"
	ActionUpgrade   StepAction = "upgrade"
)

type StepNode

type StepNode struct {
	ID       string `json:"id,omitempty"`
	IPv4     string `json:"ipv4,omitempty"`
	NodeIPv4 string `json:"nodeIPv4,omitempty"`
	Hostname string `json:"hostname,omitempty"`
}

func (*StepNode) DeepCopy

func (in *StepNode) DeepCopy() *StepNode

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

func (*StepNode) DeepCopyInto

func (in *StepNode) DeepCopyInto(out *StepNode)

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

type StepStatus

type StepStatus struct {
	StartAt metav1.Time    `json:"startAt,omitempty"`
	EndAt   metav1.Time    `json:"endAt,omitempty"`
	Node    string         `json:"node,omitempty"`
	Status  StepStatusType `json:"status,omitempty"`
	// (brief) reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	// +optional
	Message  string `json:"message,omitempty"`
	Response []byte `json:"response,omitempty"`
}

func (*StepStatus) DeepCopy

func (in *StepStatus) DeepCopy() *StepStatus

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

func (*StepStatus) DeepCopyInto

func (in *StepStatus) DeepCopyInto(out *StepStatus)

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

type StepStatusType

type StepStatusType string
const (
	StepStatusSuccessful StepStatusType = "successful"
	StepStatusFailed     StepStatusType = "failed"
)

type Taint

type Taint struct {
	// Required. The taint key to be applied to a node.
	Key string `json:"key" protobuf:"bytes,1,opt,name=key"`
	// The taint value corresponding to the taint key.
	// +optional
	Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
	// Required. The effect of the taint on pods
	// that do not tolerate the taint.
	// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
	Effect TaintEffect `json:"effect" protobuf:"bytes,3,opt,name=effect,casttype=TaintEffect"`
}

func (*Taint) DeepCopy

func (in *Taint) DeepCopy() *Taint

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

func (*Taint) DeepCopyInto

func (in *Taint) DeepCopyInto(out *Taint)

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

type TaintEffect

type TaintEffect string
const (
	TaintEffectNoSchedule       TaintEffect = "NoSchedule"
	TaintEffectPreferNoSchedule TaintEffect = "PreferNoSchedule"
	TaintEffectNoExecute        TaintEffect = "NoExecute"
)

type Template

type Template struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Config            runtime.RawExtension `json:"config"`
}

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

func (*Template) DeepCopyObject

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

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

type TemplateCommand

type TemplateCommand struct {
	Identity string `json:"identity,omitempty"`
	Data     []byte `json:"data,omitempty"`
}

func (*TemplateCommand) DeepCopy

func (in *TemplateCommand) DeepCopy() *TemplateCommand

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

func (*TemplateCommand) DeepCopyInto

func (in *TemplateCommand) DeepCopyInto(out *TemplateCommand)

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

type TemplateList

type TemplateList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Template `json:"items"`
}

func (*TemplateList) DeepCopy

func (in *TemplateList) DeepCopy() *TemplateList

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

func (*TemplateList) DeepCopyInto

func (in *TemplateList) DeepCopyInto(out *TemplateList)

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

func (*TemplateList) DeepCopyObject

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

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

type UniqueVolumeName

type UniqueVolumeName string

type WebTerminal

type WebTerminal struct {
	PrivateKey string `json:"privateKey,omitempty"`
	PublicKey  string `json:"publicKey,omitempty"`
}

func (*WebTerminal) DeepCopy

func (in *WebTerminal) DeepCopy() *WebTerminal

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

func (*WebTerminal) DeepCopyInto

func (in *WebTerminal) DeepCopyInto(out *WebTerminal)

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

type WorkerNode

type WorkerNode struct {
	ID               string            `json:"id"`
	Labels           map[string]string `json:"labels,omitempty"`
	Taints           []Taint           `json:"taints,omitempty"`
	ContainerRuntime ContainerRuntime  `json:"containerRuntime,omitempty"`
}

WorkerNode define

func (*WorkerNode) DeepCopy

func (in *WorkerNode) DeepCopy() *WorkerNode

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

func (*WorkerNode) DeepCopyInto

func (in *WorkerNode) DeepCopyInto(out *WorkerNode)

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

type WorkerNodeList

type WorkerNodeList []WorkerNode

func (WorkerNodeList) Complement

func (l WorkerNodeList) Complement(nodes ...WorkerNode) WorkerNodeList

Relative complement of original worker nodes list in the provided one.

func (WorkerNodeList) DeepCopy

func (in WorkerNodeList) DeepCopy() WorkerNodeList

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

func (WorkerNodeList) DeepCopyInto

func (in WorkerNodeList) DeepCopyInto(out *WorkerNodeList)

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

func (WorkerNodeList) GetNodeIDs

func (l WorkerNodeList) GetNodeIDs() (nodes []string)

func (WorkerNodeList) Intersect

func (l WorkerNodeList) Intersect(nodes ...WorkerNode) WorkerNodeList

Intersection of original worker nodes list and the provided one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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