Documentation ¶
Index ¶
- func CreateKubeconfigs(cfg *kubeadmapi.InitConfiguration, kubeConfigDir string) error
- func CreateNewBootstrapToken(kubeconfig string, tokenTTL time.Duration) (string, error)
- func CreatePKICertificates(cfg *kubeadmapi.InitConfiguration) error
- func CreateSACertificates(cfg *kubeadmapi.InitConfiguration) error
- func GetDiscoveryHashes(kubeConfigFile string) ([]string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeconfigs ¶
func CreateKubeconfigs(cfg *kubeadmapi.InitConfiguration, kubeConfigDir string) error
CreateKubeconfigs creates kubeconfigs for all profiles.
func CreateNewBootstrapToken ¶
CreateNewBootstrapToken creates new bootstrap token using in cluster config.
func CreatePKICertificates ¶
func CreatePKICertificates(cfg *kubeadmapi.InitConfiguration) error
CreatePKICertificates creates base pki assets in cfg.CertDir directory.
func CreateSACertificates ¶
func CreateSACertificates(cfg *kubeadmapi.InitConfiguration) error
CreateSACertificates creates sa certificates in cfg.CertDir directory.
func GetDiscoveryHashes ¶
GetDiscoveryHashes returns discovery hashes from a given kubeconfig file.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.
func NewService ¶
NewService returns a new service given the api clients.
func (*Service) CreateOrUpdate ¶
CreateOrUpdate Helper function so this can be unittested.