Documentation ¶
Index ¶
- func AuditPolicyV1() *auditv1.Policy
- func AuditPolicyV1Yaml() ([]byte, error)
- func BootstrapClusterOpts(clusterConfig *v1alpha1.Cluster, serverEndpoints ...string) ([]bootstrapper.BootstrapClusterOption, error)
- func CPMachineTemplateBase(clusterName string) string
- func CPMachineTemplateName(clusterName string, now types.NowFunc) string
- func EtcdMachineTemplateBase(clusterName string) string
- func EtcdMachineTemplateName(clusterName string, now types.NowFunc) string
- func GenerateKMSEncryptionConfiguration(confs *[]v1alpha1.EtcdEncryption) (string, error)
- func GenerateSSHAuthKey(writer filewriter.FileWriter) (string, error)
- func GetAuditPolicy(kubeVersion v1alpha1.KubernetesVersion) (string, error)
- func GetCAPIBottlerocketSettingsConfig(config *v1alpha1.BottlerocketConfiguration) (string, error)
- func KubeadmConfigTemplateName(clusterName, workerNodeGroupName string, now types.NowFunc) string
- func StripSshAuthorizedKeyComment(key string) (string, error)
- func WorkerMachineTemplateBase(clusterName, workerNodeGroupName string) string
- func WorkerMachineTemplateName(clusterName, workerNodeGroupName string, now types.NowFunc) string
- type SshAuthKeyGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditPolicyV1 ¶ added in v0.12.0
AuditPolicyV1 returns the v1 audit policy.
func AuditPolicyV1Yaml ¶ added in v0.12.0
AuditPolicyV1Yaml returns the byte array for yaml created with v1 api version for audit policy.
func BootstrapClusterOpts ¶ added in v0.8.0
func BootstrapClusterOpts(clusterConfig *v1alpha1.Cluster, serverEndpoints ...string) ([]bootstrapper.BootstrapClusterOption, error)
func CPMachineTemplateBase ¶ added in v0.11.0
func CPMachineTemplateName ¶ added in v0.8.0
func EtcdMachineTemplateBase ¶ added in v0.11.0
func EtcdMachineTemplateName ¶ added in v0.8.0
func GenerateKMSEncryptionConfiguration ¶ added in v0.18.0
func GenerateKMSEncryptionConfiguration(confs *[]v1alpha1.EtcdEncryption) (string, error)
GenerateKMSEncryptionConfiguration takes a list of the EtcdEncryption configs and generates the corresponding Kubernetes EncryptionConfig.
func GenerateSSHAuthKey ¶ added in v0.8.0
func GenerateSSHAuthKey(writer filewriter.FileWriter) (string, error)
func GetAuditPolicy ¶
func GetAuditPolicy(kubeVersion v1alpha1.KubernetesVersion) (string, error)
GetAuditPolicy returns the audit policy either v1 or v1beta1 depending on kube version.
func GetCAPIBottlerocketSettingsConfig ¶ added in v0.15.0
func GetCAPIBottlerocketSettingsConfig(config *v1alpha1.BottlerocketConfiguration) (string, error)
GetCAPIBottlerocketSettingsConfig returns the formatted CAPI Bottlerocket settings config as a YAML marshaled string.
func KubeadmConfigTemplateName ¶ added in v0.8.0
func StripSshAuthorizedKeyComment ¶ added in v0.8.0
func WorkerMachineTemplateBase ¶ added in v0.11.0
Types ¶
type SshAuthKeyGenerator ¶ added in v0.9.0
type SshAuthKeyGenerator struct{}
sshAuthKeyGenerator satisfies SSHAuthKeyGenerator. It exists to wrap the common key generation function so we can isolate the RNG in testing.
func (SshAuthKeyGenerator) GenerateSSHAuthKey ¶ added in v0.9.0
func (SshAuthKeyGenerator) GenerateSSHAuthKey(w filewriter.FileWriter) (string, error)
Click to show internal directories.
Click to hide internal directories.