Documentation ¶
Index ¶
- Constants
- func ClusterID(getter LabelsGetter) string
- func GenerateAssetName(values ...string) string
- func GenerateID() string
- func GetCAPAEnvVars() []string
- func GetControlPlaneInstanceProfile(clusterID string) string
- func GetNodeInstanceProfile(machinePoolID string, clusterID string) string
- func IsCAPAVersion(version string) bool
- func IsClusterIDInvalid(err error) bool
- func IsUnmashalToMapFailed(err error) bool
- func MachinePoolName(getter AnnotationsGetter) string
- func MachinePoolScaling(getter AnnotationsGetter) (int, int)
- func OrganizationNamespaceFromName(name string) string
- func ReadConfigMapYamlFromFile(fs afero.Fs, path string) (string, error)
- func ReadSecretYamlFromFile(fs afero.Fs, path string) ([]byte, error)
- func ReleaseVersion(getter LabelsGetter) string
- type AnnotationsGetter
- type LabelsGetter
Constants ¶
View Source
const ( // IDChars represents the character set used to generate cluster IDs. // (does not contain 1 and l, to avoid confusion) IDChars = "023456789abcdefghijkmnopqrstuvwxyz" // IDLength represents the number of characters used to create a cluster ID. IDLength = 5 )
View Source
const ( ProviderAWS = "aws" ProviderAzure = "azure" ProviderKVM = "kvm" )
View Source
const AppCRTemplate = `
{{- .UserConfigConfigMap -}}
---
{{ .UserConfigSecret -}}
---
{{ .AppCR -}}
`
View Source
const CatalogCRTemplate = `
{{- .ConfigMap -}}
---
{{ .Secret -}}
---
{{ .CatalogCR -}}
`
View Source
const ClusterAWSCRsTemplate = `
{{- .ClusterCR -}}
---
{{ .AWSClusterCR -}}
---
{{ .G8sControlPlaneCR -}}
---
{{ .AWSControlPlaneCR -}}
`
View Source
const ClusterAzureCRsTemplate = `
{{- .ProviderClusterCR -}}
---
{{ .ClusterCR -}}
---
{{ .MasterMachineCR -}}
`
View Source
const ClusterCAPACRsTemplate = `` /* 149-byte string literal not displayed */
View Source
const MachineDeploymentCRsTemplate = `
{{- .MachineDeploymentCR -}}
---
{{ .AWSMachineDeploymentCR -}}
`
View Source
const MachinePoolAWSCRsTemplate = `
{{- .ProviderMachinePoolCR -}}
---
{{ .MachinePoolCR -}}
---
{{ .KubeadmConfigCR -}}
`
View Source
const MachinePoolAzureCRsTemplate = `
{{- .ProviderMachinePoolCR -}}
---
{{ .MachinePoolCR -}}
---
{{ .SparkCR -}}
`
View Source
const NetworkPoolCRsTemplate = `
{{- .NetworkPoolCR -}}
`
Variables ¶
This section is empty.
Functions ¶
func ClusterID ¶ added in v1.20.0
func ClusterID(getter LabelsGetter) string
func GenerateAssetName ¶ added in v0.2.0
func GenerateID ¶
func GenerateID() string
func GetCAPAEnvVars ¶ added in v1.32.0
func GetCAPAEnvVars() []string
func GetControlPlaneInstanceProfile ¶ added in v1.32.0
func GetNodeInstanceProfile ¶ added in v1.32.0
func IsCAPAVersion ¶ added in v1.32.0
IsCAPAVersion returns whether a given GS Release Version is based on the CAPI/CAPA projects TODO: make this a >= comparison
func IsClusterIDInvalid ¶ added in v0.3.0
IsClusterIDInvalid asserts clusterIDInvalidError.
func IsUnmashalToMapFailed ¶ added in v0.2.0
IsUnmashalToMapFailed asserts unmashalToMapFailedError.
func MachinePoolName ¶ added in v1.20.0
func MachinePoolName(getter AnnotationsGetter) string
func MachinePoolScaling ¶ added in v1.20.0
func MachinePoolScaling(getter AnnotationsGetter) (int, int)
func OrganizationNamespaceFromName ¶ added in v0.8.0
func ReadConfigMapYamlFromFile ¶ added in v0.2.0
readConfigMapFromFile reads a configmap from a YAML file.
func ReadSecretYamlFromFile ¶ added in v0.2.0
readSecretFromFile reads a configmap from a YAML file.
func ReleaseVersion ¶ added in v1.20.0
func ReleaseVersion(getter LabelsGetter) string
Types ¶
type AnnotationsGetter ¶ added in v1.20.0
type LabelsGetter ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.