Documentation ¶
Index ¶
- func AddCoreDNS(client kubernetes.Interface, config *Configuration) error
- func AddKubeProxy(client kubernetes.Interface, config *Configuration) error
- func BootstrapToken(client kubernetes.Interface, config *Configuration) error
- func CreateKubeconfig(kubeconfigName string, ca CertificatePrivateKeyPair, config *Configuration) ([]byte, error)
- func EncondeToYaml(o runtime.Object) ([]byte, error)
- func GetKubeadmInitConfigurationMap(config Configuration) (map[string]string, error)
- func IsCertificatePrivateKeyPairValid(certificate []byte, privKey []byte) (bool, error)
- func IsKubeconfigValid(kubeconfigBytes []byte) bool
- func IsPublicKeyPrivateKeyPairValid(pubKey []byte, privKey []byte) (bool, error)
- func RemoveCoreDNSAddon(ctx context.Context, client kubernetes.Interface) error
- func RemoveKubeProxy(ctx context.Context, client kubernetes.Interface) error
- func UploadKubeadmConfig(client kubernetes.Interface, config *Configuration) error
- func UploadKubeletConfig(client kubernetes.Interface, config *Configuration) error
- type CertificatePrivateKeyPair
- type Configuration
- type KubeletConfiguration
- type Parameters
- type PublicKeyPrivateKeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCoreDNS ¶ added in v0.1.0
func AddCoreDNS(client kubernetes.Interface, config *Configuration) error
func AddKubeProxy ¶ added in v0.1.0
func AddKubeProxy(client kubernetes.Interface, config *Configuration) error
func BootstrapToken ¶
func BootstrapToken(client kubernetes.Interface, config *Configuration) error
func CreateKubeconfig ¶
func CreateKubeconfig(kubeconfigName string, ca CertificatePrivateKeyPair, config *Configuration) ([]byte, error)
func GetKubeadmInitConfigurationMap ¶
func GetKubeadmInitConfigurationMap(config Configuration) (map[string]string, error)
func IsKubeconfigValid ¶
func RemoveCoreDNSAddon ¶ added in v0.1.0
func RemoveCoreDNSAddon(ctx context.Context, client kubernetes.Interface) error
func RemoveKubeProxy ¶ added in v0.1.0
func RemoveKubeProxy(ctx context.Context, client kubernetes.Interface) error
func UploadKubeadmConfig ¶
func UploadKubeadmConfig(client kubernetes.Interface, config *Configuration) error
func UploadKubeletConfig ¶
func UploadKubeletConfig(client kubernetes.Interface, config *Configuration) error
Types ¶
type CertificatePrivateKeyPair ¶
func GenerateCACertificatePrivateKeyPair ¶
func GenerateCACertificatePrivateKeyPair(baseName string, config *Configuration) (*CertificatePrivateKeyPair, error)
func GenerateCertificatePrivateKeyPair ¶
func GenerateCertificatePrivateKeyPair(baseName string, config *Configuration, ca CertificatePrivateKeyPair) (*CertificatePrivateKeyPair, error)
type Configuration ¶
type Configuration struct { InitConfiguration kubeadmapi.InitConfiguration Kubeconfig kubeconfigutil.Kubeconfig Parameters Parameters }
func CreateKubeadmInitConfiguration ¶
func CreateKubeadmInitConfiguration(params Parameters) Configuration
func GetKubeadmInitConfigurationFromMap ¶
func GetKubeadmInitConfigurationFromMap(config map[string]string) (*Configuration, error)
type KubeletConfiguration ¶
type Parameters ¶
type Parameters struct { TenantControlPlaneName string TenantControlPlaneNamespace string TenantControlPlaneEndpoint string TenantControlPlaneAddress string TenantControlPlanePort int32 TenantControlPlaneDomain string TenantControlPlanePodCIDR string TenantControlPlaneServiceCIDR string TenantDNSServiceIPs []string TenantControlPlaneVersion string TenantControlPlaneCGroupDriver string ETCDs []string ETCDCompactionInterval string CertificatesDir string KubeconfigDir string }
type PublicKeyPrivateKeyPair ¶
func GeneratePublicKeyPrivateKeyPair ¶
func GeneratePublicKeyPrivateKeyPair(baseName string, config *Configuration) (*PublicKeyPrivateKeyPair, error)
Click to show internal directories.
Click to hide internal directories.