Documentation ¶
Index ¶
- Constants
- func CreateBootstrapToken(client corev1.SecretInterface) (string, error)
- func GetClusterVersion(platform *platform.Platform) (string, error)
- func GetNodeVersion(platform *platform.Platform, node v1.Node) string
- func GetOrCreateBootstrapToken(platform *platform.Platform) (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) ([]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" )
Variables ¶
This section is empty.
Functions ¶
func CreateBootstrapToken ¶
func CreateBootstrapToken(client corev1.SecretInterface) (string, error)
createBootstrapToken is extracted from https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/blob/master/controllers/token.go
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 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.