Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Replacements = []Replacement{ { Kind: "KubeadmControlPlane", Name: "${CLUSTER_NAME}", Value: env.ControlPlaneMachineCountVar, FieldPath: []string{"spec", "replicas"}, }, { Kind: "MachineDeployment", Name: "${CLUSTER_NAME}-md-0", Value: env.WorkerMachineCountVar, FieldPath: []string{"spec", "replicas"}, }, { Kind: "MachineDeployment", Name: "${CLUSTER_NAME}-md-0", Value: map[string]interface{}{}, FieldPath: []string{"spec", "selector", "matchLabels"}, }, { Kind: "ICSMachineTemplate", Name: "${CLUSTER_NAME}-control-plane", Value: env.DefaultMemoryMiB, FieldPath: []string{"spec", "template", "spec", "memoryMiB"}, }, { Kind: "ICSMachineTemplate", Name: "${CLUSTER_NAME}-control-plane", Value: env.DefaultNumCPUs, FieldPath: []string{"spec", "template", "spec", "numCPUs"}, }, { Kind: "ICSMachineTemplate", Name: "${CLUSTER_NAME}-md-0", Value: env.DefaultMemoryMiB, FieldPath: []string{"spec", "template", "spec", "memoryMiB"}, }, { Kind: "ICSMachineTemplate", Name: "${CLUSTER_NAME}-md-0", Value: env.DefaultNumCPUs, FieldPath: []string{"spec", "template", "spec", "numCPUs"}, }, { Kind: "Secret", Name: "${CLUSTER_NAME}-cloud-config", Value: env.ICSServerConfig, FieldPath: []string{"data", "clouds.yaml"}, }, { Kind: "Secret", Name: "${CLUSTER_NAME}-cloud-config", Value: env.ICSServerCa, FieldPath: []string{"data", "cacert"}, }, } )
Functions ¶
func GenerateObjectYAML ¶
func GenerateObjectYAML(obj runtime.Object, replacements []Replacement) string
func PrintObjects ¶
func TypeToKind ¶
func TypeToKind(i interface{}) string
Types ¶
type Replacement ¶
Click to show internal directories.
Click to hide internal directories.