Documentation ¶
Index ¶
- Constants
- func CreateBootstrapToken(client corev1.SecretInterface, expiry time.Duration) (string, error)
- func GetClusterVersion(platform *platform.Platform) (string, error)
- func GetFilesToMountForPrimary(platform *platform.Platform) (map[string]string, error)
- func GetFilesToMountForSecondary(platform *platform.Platform) (map[string]string, error)
- func GetNodeVersion(platform *platform.Platform, node v1.Node) string
- func GetOrCreateBootstrapToken(platform *platform.Platform, expiry time.Duration) (string, error)
- func NewClusterConfig(cfg *platform.Platform) api.ClusterConfiguration
- func NewControlPlaneJoinConfiguration(cfg *platform.Platform) ([]byte, error)
- func NewInitConfig(cfg *platform.Platform) api.InitConfiguration
- func NewJoinConfiguration(cfg *platform.Platform, node types.VM) ([]byte, error)
- func TestAudit(p *platform.Platform, tr *console.TestResults)
- func TestEncryption(p *platform.Platform, tr *console.TestResults)
- func UploadControlPlaneCerts(platform *platform.Platform) (string, error)
- func UploadEtcdCerts(platform *platform.Platform) (*certs.Certificate, error)
Constants ¶
View Source
const ( // AuditPolicyPath is the fixed location where kubernetes cluster audit policy files are placed. AuditPolicyPath = "/etc/kubernetes/policies/audit-policy.yaml" EncryptionProviderConfigPath = "/etc/kubernetes/policies/encryption-provider-config.yaml" CSRCAPath = "/etc/kubernetes/pki/csr-ca.crt" CSRKeyPath = "/etc/kubernetes/pki/csr-ca.key" )
Variables ¶
This section is empty.
Functions ¶
func CreateBootstrapToken ¶
createBootstrapToken is extracted from https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/blob/master/controllers/token.go
func GetFilesToMountForPrimary ¶ added in v0.17.14
func GetFilesToMountForSecondary ¶ added in v0.17.14
func NewClusterConfig ¶
func NewClusterConfig(cfg *platform.Platform) api.ClusterConfiguration
NewClusterConfig constructs a default new ClusterConfiguration from a given Platform config
func NewInitConfig ¶
func NewInitConfig(cfg *platform.Platform) api.InitConfiguration
func NewJoinConfiguration ¶
func TestAudit ¶
func TestAudit(p *platform.Platform, tr *console.TestResults)
Test k8s auditing functionality.
func TestEncryption ¶
func TestEncryption(p *platform.Platform, tr *console.TestResults)
Test k8s encryption provider functionality.
func UploadControlPlaneCerts ¶
func UploadEtcdCerts ¶
func UploadEtcdCerts(platform *platform.Platform) (*certs.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.