Documentation ¶
Index ¶
- Constants
- func CreateBootstrapToken(client corev1.SecretInterface) (string, error)
- func GetEtcdLeaderClient(platform *platform.Platform) (*etcd.Client, error)
- func GetOrCreateBootstrapToken(platform *platform.Platform) (string, error)
- func NewClusterConfig(cfg *platform.Platform) api.ClusterConfiguration
- func NewInitConfig(cfg *platform.Platform) api.InitConfiguration
- func UploadControlPlaneCerts(platform *platform.Platform) (string, error)
- func UploadEtcdCerts(platform *platform.Platform) (*certs.Certificate, error)
Constants ¶
View Source
const AuditPolicyPath = "/etc/kubernetes/policies/audit-policy.yaml"
AuditPolicyPath is the fixed location where kubernetes cluster audit policy files are placed.
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 GetEtcdLeaderClient ¶
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 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.