v1alpha1

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubekey v1alpha1 API group +kubebuilder:object:generate=true +groupName=kubekey.kubesphere.io

Index

Constants

View Source
const (
	DefaultPreDir              = "kubekey"
	DefaultTmpDir              = "/tmp/kubekey"
	DefaultSSHPort             = 22
	DefaultLBPort              = 6443
	DefaultLBDomain            = "lb.kubesphere.local"
	DefaultNetworkPlugin       = "calico"
	DefaultPodsCIDR            = "10.233.64.0/18"
	DefaultServiceCIDR         = "10.233.0.0/18"
	DefaultKubeImageNamespace  = "kubesphere"
	DefaultClusterName         = "cluster.local"
	DefaultArch                = "amd64"
	DefaultEtcdVersion         = "v3.4.13"
	DefaultEtcdPort            = "2379"
	DefaultDockerVersion       = "20.10.8"
	DefaultCrictlVersion       = "v1.22.0"
	DefaultKubeVersion         = "v1.21.5"
	DefaultCalicoVersion       = "v3.20.0"
	DefaultFlannelVersion      = "v0.12.0"
	DefaultCniVersion          = "v0.9.1"
	DefaultCiliumVersion       = "v1.8.3"
	DefaultKubeovnVersion      = "v1.5.0"
	DefaultHelmVersion         = "v3.6.3"
	DefaultMaxPods             = 110
	DefaultNodeCidrMaskSize    = 24
	DefaultIPIPMode            = "Always"
	DefaultVXLANMode           = "Never"
	DefaultVethMTU             = 1440
	DefaultBackendMode         = "vxlan"
	DefaultProxyMode           = "ipvs"
	DefaultCrioEndpoint        = "unix:///var/run/crio/crio.sock"
	DefaultContainerdEndpoint  = "unix:///run/containerd/containerd.sock"
	DefaultIsulaEndpoint       = "unix:///var/run/isulad.sock"
	Etcd                       = "etcd"
	Master                     = "master"
	Worker                     = "worker"
	K8s                        = "k8s"
	DefaultEtcdBackupDir       = "/var/backups/kube_etcd"
	DefaultEtcdBackupPeriod    = 30
	DefaultKeepBackNumber      = 5
	DefaultEtcdBackupScriptDir = "/usr/local/bin/kube-scripts"
	DefaultJoinCIDR            = "100.64.0.0/16"
	DefaultNetworkType         = "geneve"
	DefaultVlanID              = "100"
	DefaultOvnLabel            = "node-role.kubernetes.io/control-plane"
	DefaultDPDKVersion         = "19.11"
	DefaultDNSAddress          = "114.114.114.114"

	Docker     = "docker"
	Conatinerd = "containerd"
	Crio       = "crio"
	Isula      = "isula"
)
View Source
const (
	Haproxy = "haproxy"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kubekey.kubesphere.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Addon

type Addon struct {
	Name      string  `yaml:"name" json:"name,omitempty"`
	Namespace string  `yaml:"namespace" json:"namespace,omitempty"`
	Sources   Sources `yaml:"sources" json:"sources,omitempty"`
	Retries   int     `yaml:"retries" json:"retries,omitempty"`
	Delay     int     `yaml:"delay" json:"delay,omitempty"`
}

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 CalicoCfg

type CalicoCfg struct {
	IPIPMode  string `yaml:"ipipMode" json:"ipipMode,omitempty"`
	VXLANMode string `yaml:"vxlanMode" json:"vxlanMode,omitempty"`
	VethMTU   int    `yaml:"vethMTU" json:"vethMTU,omitempty"`
}

func (*CalicoCfg) DeepCopy

func (in *CalicoCfg) DeepCopy() *CalicoCfg

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

func (*CalicoCfg) DeepCopyInto

func (in *CalicoCfg) DeepCopyInto(out *CalicoCfg)

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

type Chart

type Chart struct {
	Name       string   `yaml:"name" json:"name,omitempty"`
	Repo       string   `yaml:"repo" json:"repo,omitempty"`
	Path       string   `yaml:"path" json:"path,omitempty"`
	Version    string   `yaml:"version" json:"version,omitempty"`
	ValuesFile string   `yaml:"valuesFile" json:"valuesFile,omitempty"`
	Values     []string `yaml:"values" json:"values,omitempty"`
}

func (*Chart) DeepCopy

func (in *Chart) DeepCopy() *Chart

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

func (*Chart) DeepCopyInto

func (in *Chart) DeepCopyInto(out *Chart)

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"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API +kubebuilder:resource:path=clusters,scope=Cluster

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.

type ClusterList

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

ClusterList contains a list of Cluster

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 ClusterSpec

type ClusterSpec struct {

	// Foo is an example field of Cluster. Edit Cluster_types.go to remove/update
	Hosts                []HostCfg            `yaml:"hosts" json:"hosts,omitempty"`
	RoleGroups           RoleGroups           `yaml:"roleGroups" json:"roleGroups,omitempty"`
	ControlPlaneEndpoint ControlPlaneEndpoint `yaml:"controlPlaneEndpoint" json:"controlPlaneEndpoint,omitempty"`
	Kubernetes           Kubernetes           `yaml:"kubernetes" json:"kubernetes,omitempty"`
	Network              NetworkConfig        `yaml:"network" json:"network,omitempty"`
	Registry             RegistryConfig       `yaml:"registry" json:"registry,omitempty"`
	Addons               []Addon              `yaml:"addons" json:"addons,omitempty"`
	KubeSphere           KubeSphere           `json:"kubesphere,omitempty"`
}

ClusterSpec defines the desired state of Cluster

func (*ClusterSpec) ClusterDNS

func (cfg *ClusterSpec) ClusterDNS() string

ClusterDNS is used to get the dns server address inside the cluster.

func (*ClusterSpec) ClusterIP

func (cfg *ClusterSpec) ClusterIP() string

ClusterIP is used to get the kube-apiserver service address inside the cluster.

func (*ClusterSpec) CorednsClusterIP

func (cfg *ClusterSpec) CorednsClusterIP() string

CorednsClusterIP is used to get the coredns service address inside the 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.

func (*ClusterSpec) GenerateCertSANs

func (cfg *ClusterSpec) GenerateCertSANs() []string

GenerateCertSANs is used to generate cert sans for cluster.

func (*ClusterSpec) GroupHosts

func (cfg *ClusterSpec) GroupHosts() (*HostGroups, error)

GroupHosts is used to group hosts according to the configuration file.s

func (*ClusterSpec) ParseRolesList

func (cfg *ClusterSpec) ParseRolesList(hostList map[string]string) ([]string, []string, []string, error)

ParseRolesList is used to parse the host grouping list.

func (*ClusterSpec) SetDefaultClusterSpec

func (cfg *ClusterSpec) SetDefaultClusterSpec(incluster bool) (*ClusterSpec, *HostGroups, error)

type ClusterStatus

type ClusterStatus struct {
	JobInfo       JobInfo      `json:"jobInfo,omitempty"`
	Version       string       `json:"version,omitempty"`
	NetworkPlugin string       `json:"networkPlugin,omitempty"`
	NodesCount    int          `json:"nodesCount,omitempty"`
	EtcdCount     int          `json:"etcdCount,omitempty"`
	MasterCount   int          `json:"masterCount,omitempty"`
	WorkerCount   int          `json:"workerCount,omitempty"`
	Nodes         []NodeStatus `json:"nodes,omitempty"`
	Conditions    []Condition  `json:"Conditions,omitempty"`
}

ClusterStatus defines the observed state of 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 Condition

type Condition struct {
	Step      string      `json:"step,omitempty"`
	StartTime metav1.Time `json:"startTime,omitempty"`
	EndTime   metav1.Time `json:"endTime,omitempty"`
	Status    bool        `json:"status,omitempty"`
}

Condition defines the process information.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ContainerInfo

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

ContainerInfo defines the container information to be used to create a cluster or add a node.

func (*ContainerInfo) DeepCopy

func (in *ContainerInfo) DeepCopy() *ContainerInfo

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

func (*ContainerInfo) DeepCopyInto

func (in *ContainerInfo) DeepCopyInto(out *ContainerInfo)

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

type ControlPlaneEndpoint

type ControlPlaneEndpoint struct {
	InternalLoadbalancer string `yaml:"internalLoadbalancer" json:"internalLoadbalancer,omitempty"`
	Domain               string `yaml:"domain" json:"domain,omitempty"`
	Address              string `yaml:"address" json:"address,omitempty"`
	Port                 int    `yaml:"port" json:"port,omitempty"`
}

ControlPlaneEndpoint defines the control plane endpoint information for cluster.

func SetDefaultLBCfg

func SetDefaultLBCfg(cfg *ClusterSpec, masterGroup []HostCfg, incluster bool) ControlPlaneEndpoint

func (*ControlPlaneEndpoint) DeepCopy

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

func (*ControlPlaneEndpoint) DeepCopyInto

func (in *ControlPlaneEndpoint) DeepCopyInto(out *ControlPlaneEndpoint)

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

func (ControlPlaneEndpoint) IsInternalLBEnabled

func (c ControlPlaneEndpoint) IsInternalLBEnabled() bool

type ExternalEtcd

type ExternalEtcd struct {
	Endpoints []string
	CaFile    string
	CertFile  string
	KeyFile   string
}

ExternalEtcd defines configuration information of external etcd.

func (*ExternalEtcd) DeepCopy

func (in *ExternalEtcd) DeepCopy() *ExternalEtcd

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

func (*ExternalEtcd) DeepCopyInto

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

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

type FlannelCfg

type FlannelCfg struct {
	BackendMode   string `yaml:"backendMode" json:"backendMode,omitempty"`
	Directrouting bool   `yaml:"directRouting" json:"directRouting,omitempty"`
}

func (*FlannelCfg) DeepCopy

func (in *FlannelCfg) DeepCopy() *FlannelCfg

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

func (*FlannelCfg) DeepCopyInto

func (in *FlannelCfg) DeepCopyInto(out *FlannelCfg)

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

type HostCfg

type HostCfg struct {
	Name            string `yaml:"name,omitempty" json:"name,omitempty"`
	Address         string `yaml:"address,omitempty" json:"address,omitempty"`
	InternalAddress string `yaml:"internalAddress,omitempty" json:"internalAddress,omitempty"`
	Port            int    `yaml:"port,omitempty" json:"port,omitempty"`
	User            string `yaml:"user,omitempty" json:"user,omitempty"`
	Password        string `yaml:"password,omitempty" json:"password,omitempty"`
	PrivateKey      string `yaml:"privateKey,omitempty" json:"privateKey,omitempty"`
	PrivateKeyPath  string `yaml:"privateKeyPath,omitempty" json:"privateKeyPath,omitempty"`
	Arch            string `yaml:"arch,omitempty" json:"arch,omitempty"`

	Labels   map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
	ID       string            `yaml:"id,omitempty" json:"id,omitempty"`
	Index    int               `json:"-"`
	IsEtcd   bool              `json:"-"`
	IsMaster bool              `json:"-"`
	IsWorker bool              `json:"-"`

	EtcdExist bool   `json:"-"`
	EtcdName  string `json:"-"`
}

HostCfg defines host information for cluster.

func SetDefaultHostsCfg

func SetDefaultHostsCfg(cfg *ClusterSpec) []HostCfg

func (*HostCfg) Copy

func (h *HostCfg) Copy() *HostCfg

Copy is used to create a copy for Runtime.

func (*HostCfg) DeepCopy

func (in *HostCfg) DeepCopy() *HostCfg

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

func (*HostCfg) DeepCopyInto

func (in *HostCfg) DeepCopyInto(out *HostCfg)

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

type HostGroups

type HostGroups struct {
	All    []HostCfg
	Etcd   []HostCfg
	Master []HostCfg
	Worker []HostCfg
	K8s    []HostCfg
}

HostGroups defines the grouping of hosts for cluster (all / etcd / master / worker / k8s).

func (*HostGroups) DeepCopy

func (in *HostGroups) DeepCopy() *HostGroups

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

func (*HostGroups) DeepCopyInto

func (in *HostGroups) DeepCopyInto(out *HostGroups)

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

type JobInfo

type JobInfo struct {
	Namespace string    `json:"namespace,omitempty"`
	Name      string    `json:"name,omitempty"`
	Pods      []PodInfo `json:"pods,omitempty"`
}

JobInfo defines the job information to be used to create a cluster or add a node.

func (*JobInfo) DeepCopy

func (in *JobInfo) DeepCopy() *JobInfo

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

func (*JobInfo) DeepCopyInto

func (in *JobInfo) DeepCopyInto(out *JobInfo)

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

type KubeSphere

type KubeSphere struct {
	Enabled        bool   `json:"enabled,omitempty"`
	Version        string `json:"version,omitempty"`
	Configurations string `json:"configurations,omitempty"`
}

KubeSphere defines the configuration information of the KubeSphere.

func (*KubeSphere) DeepCopy

func (in *KubeSphere) DeepCopy() *KubeSphere

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

func (*KubeSphere) DeepCopyInto

func (in *KubeSphere) DeepCopyInto(out *KubeSphere)

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

type KubeovnCfg

type KubeovnCfg struct {
	JoinCIDR              string `yaml:"joinCIDR" json:"joinCIDR,omitempty"`
	NetworkType           string `yaml:"networkType" json:"networkType,omitempty"`
	Label                 string `yaml:"label" json:"label,omitempty"`
	Iface                 string `yaml:"iface" json:"iface,omitempty"`
	VlanInterfaceName     string `yaml:"vlanInterfaceName" json:"vlanInterfaceName,omitempty"`
	VlanID                string `yaml:"vlanID" json:"vlanID,omitempty"`
	DpdkMode              bool   `yaml:"dpdkMode" json:"dpdkMode,omitempty"`
	EnableSSL             bool   `yaml:"enableSSL" json:"enableSSL,omitempty"`
	EnableMirror          bool   `yaml:"enableMirror" json:"enableMirror,omitempty"`
	HwOffload             bool   `yaml:"hwOffload" json:"hwOffload,omitempty"`
	DpdkVersion           string `yaml:"dpdkVersion" json:"dpdkVersion,omitempty"`
	PingerExternalAddress string `yaml:"pingerExternalAddress" json:"pingerExternalAddress,omitempty"`
	PingerExternalDomain  string `yaml:"pingerExternalDomain" json:"pingerExternalDomain,omitempty"`
}

func (*KubeovnCfg) DeepCopy

func (in *KubeovnCfg) DeepCopy() *KubeovnCfg

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

func (*KubeovnCfg) DeepCopyInto

func (in *KubeovnCfg) DeepCopyInto(out *KubeovnCfg)

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

type Kubernetes

type Kubernetes struct {
	Type                   string   `yaml:"type" json:"type,omitempty"`
	Version                string   `yaml:"version" json:"version,omitempty"`
	ClusterName            string   `yaml:"clusterName" json:"clusterName,omitempty"`
	MasqueradeAll          bool     `yaml:"masqueradeAll" json:"masqueradeAll,omitempty"`
	MaxPods                int      `yaml:"maxPods" json:"maxPods,omitempty"`
	NodeCidrMaskSize       int      `yaml:"nodeCidrMaskSize" json:"nodeCidrMaskSize,omitempty"`
	ApiserverCertExtraSans []string `yaml:"apiserverCertExtraSans" json:"apiserverCertExtraSans,omitempty"`
	ProxyMode              string   `yaml:"proxyMode" json:"proxyMode,omitempty"`
	// +optional
	Nodelocaldns             *bool                `yaml:"nodelocaldns" json:"nodelocaldns,omitempty"`
	EtcdBackupDir            string               `yaml:"etcdBackupDir" json:"etcdBackupDir,omitempty"`
	EtcdBackupPeriod         int                  `yaml:"etcdBackupPeriod" json:"etcdBackupPeriod,omitempty"`
	KeepBackupNumber         int                  `yaml:"keepBackupNumber" json:"keepBackupNumber,omitempty"`
	EtcdBackupScriptDir      string               `yaml:"etcdBackupScript" json:"etcdBackupScript,omitempty"`
	ContainerManager         string               `yaml:"containerManager" json:"containerManager,omitempty"`
	ContainerRuntimeEndpoint string               `yaml:"containerRuntimeEndpoint" json:"containerRuntimeEndpoint,omitempty"`
	ApiServerArgs            []string             `yaml:"apiserverArgs" json:"apiserverArgs,omitempty"`
	ControllerManagerArgs    []string             `yaml:"controllerManagerArgs" json:"controllerManagerArgs,omitempty"`
	SchedulerArgs            []string             `yaml:"schedulerArgs" json:"schedulerArgs,omitempty"`
	KubeletArgs              []string             `yaml:"kubeletArgs" json:"kubeletArgs,omitempty"`
	KubeProxyArgs            []string             `yaml:"kubeProxyArgs" json:"kubeProxyArgs,omitempty"`
	KubeletConfiguration     runtime.RawExtension `yaml:"kubeletConfiguration" json:"kubeletConfiguration,omitempty"`
	KubeProxyConfiguration   runtime.RawExtension `yaml:"kubeProxyConfiguration" json:"kubeProxyConfiguration,omitempty"`
}

func SetDefaultClusterCfg

func SetDefaultClusterCfg(cfg *ClusterSpec) Kubernetes

func (*Kubernetes) DeepCopy

func (in *Kubernetes) DeepCopy() *Kubernetes

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

func (*Kubernetes) DeepCopyInto

func (in *Kubernetes) DeepCopyInto(out *Kubernetes)

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

func (*Kubernetes) EnableNodelocaldns

func (k *Kubernetes) EnableNodelocaldns() bool

EnableNodelocaldns is used to determine whether to deploy nodelocaldns.

type NetworkConfig

type NetworkConfig struct {
	Plugin          string     `yaml:"plugin" json:"plugin,omitempty"`
	KubePodsCIDR    string     `yaml:"kubePodsCIDR" json:"kubePodsCIDR,omitempty"`
	KubeServiceCIDR string     `yaml:"kubeServiceCIDR" json:"kubeServiceCIDR,omitempty"`
	Calico          CalicoCfg  `yaml:"calico" json:"calico,omitempty"`
	Flannel         FlannelCfg `yaml:"flannel" json:"flannel,omitempty"`
	Kubeovn         KubeovnCfg `yaml:"kubeovn" json:"kubeovn,omitempty"`
}

func SetDefaultNetworkCfg

func SetDefaultNetworkCfg(cfg *ClusterSpec) NetworkConfig

func (*NetworkConfig) DeepCopy

func (in *NetworkConfig) DeepCopy() *NetworkConfig

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

func (*NetworkConfig) DeepCopyInto

func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig)

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

type NodeStatus

type NodeStatus struct {
	InternalIP string          `json:"internalIP,omitempty"`
	Hostname   string          `json:"hostname,omitempty"`
	Roles      map[string]bool `json:"roles,omitempty"`
}

NodeStatus defines the status information of the nodes in the cluster.

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 PodInfo

type PodInfo struct {
	Name       string          `json:"name,omitempty"`
	Containers []ContainerInfo `json:"containers,omitempty"`
}

PodInfo defines the pod information to be used to create a cluster or add a node.

func (*PodInfo) DeepCopy

func (in *PodInfo) DeepCopy() *PodInfo

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

func (*PodInfo) DeepCopyInto

func (in *PodInfo) DeepCopyInto(out *PodInfo)

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

type RegistryConfig

type RegistryConfig struct {
	RegistryMirrors    []string `yaml:"registryMirrors" json:"registryMirrors,omitempty"`
	InsecureRegistries []string `yaml:"insecureRegistries" json:"insecureRegistries,omitempty"`
	PrivateRegistry    string   `yaml:"privateRegistry" json:"privateRegistry,omitempty"`
}

RegistryConfig defines the configuration information of the image's repository.

func (*RegistryConfig) DeepCopy

func (in *RegistryConfig) DeepCopy() *RegistryConfig

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

func (*RegistryConfig) DeepCopyInto

func (in *RegistryConfig) DeepCopyInto(out *RegistryConfig)

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

type RoleGroups

type RoleGroups struct {
	Etcd   []string `yaml:"etcd" json:"etcd,omitempty"`
	Master []string `yaml:"master" json:"master,omitempty"`
	Worker []string `yaml:"worker" json:"worker,omitempty"`
}

RoleGroups defines the grouping of role for hosts (etcd / master / worker).

func (*RoleGroups) DeepCopy

func (in *RoleGroups) DeepCopy() *RoleGroups

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

func (*RoleGroups) DeepCopyInto

func (in *RoleGroups) DeepCopyInto(out *RoleGroups)

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

type Sources

type Sources struct {
	Chart Chart `yaml:"chart" json:"chart,omitempty"`
	Yaml  Yaml  `yaml:"yaml" json:"yaml,omitempty"`
}

func (*Sources) DeepCopy

func (in *Sources) DeepCopy() *Sources

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

func (*Sources) DeepCopyInto

func (in *Sources) DeepCopyInto(out *Sources)

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

type Yaml

type Yaml struct {
	Path []string `yaml:"path" json:"path,omitempty"`
}

func (*Yaml) DeepCopy

func (in *Yaml) DeepCopy() *Yaml

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

func (*Yaml) DeepCopyInto

func (in *Yaml) DeepCopyInto(out *Yaml)

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

Jump to

Keyboard shortcuts

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