Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitConfiguration = "InitConfiguration" JoinConfiguration = "JoinConfiguration" ClusterConfiguration = "ClusterConfiguration" KubeProxyConfiguration = "KubeProxyConfiguration" KubeletConfiguration = "KubeletConfiguration" )
View Source
const ( V1991 = "v1.19.1" V1992 = "v1.19.2" V1150 = "v1.15.0" V1200 = "v1.20.0" V1230 = "v1.23.0" // kubeadm api version KubeadmV1beta1 = "kubeadm.k8s.io/v1beta1" KubeadmV1beta2 = "kubeadm.k8s.io/v1beta2" KubeadmV1beta3 = "kubeadm.k8s.io/v1beta3" )
View Source
const (
DefaultKubeadmConfig = `` /* 3742-byte string literal not displayed */
)
View Source
const (
EtcdServers = "etcd-servers"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeadmConfig ¶
type KubeadmConfig struct { v1beta3.InitConfiguration v1beta3.ClusterConfiguration v1alpha1.KubeProxyConfiguration v1beta1.KubeletConfiguration v1beta3.JoinConfiguration }
nolint
func LoadKubeadmConfigs ¶
func NewKubeadmConfig ¶
func (*KubeadmConfig) GetCertSANS ¶
func (k *KubeadmConfig) GetCertSANS() []string
func (*KubeadmConfig) GetDNSDomain ¶
func (k *KubeadmConfig) GetDNSDomain() string
func (*KubeadmConfig) GetSvcCIDR ¶
func (k *KubeadmConfig) GetSvcCIDR() string
func (*KubeadmConfig) LoadFromClusterfile ¶
func (k *KubeadmConfig) LoadFromClusterfile(kubeadmConfig KubeadmConfig) error
LoadFromClusterfile :Load KubeadmConfig from Clusterfile. If it has `KubeadmConfig` in Clusterfile, load every field to each configuration. If Kubeadm raw config in Clusterfile, just load it.
func (*KubeadmConfig) Merge ¶
func (k *KubeadmConfig) Merge(kubeadmYamlPath string, decode func(arg string, kind string) (interface{}, error)) error
Merge Using github.com/imdario/mergo to merge KubeadmConfig to the ClusterImage default kubeadm config, overwrite some field. if defaultKubeadmConfig file not exist, use default raw kubeadm config to merge k.KubeConfigSpec empty value
Click to show internal directories.
Click to hide internal directories.