Documentation ¶
Index ¶
- Constants
- func GenerateAssetName(values ...string) string
- func GenerateID() string
- func IsClusterIDInvalid(err error) bool
- func IsUnmashalToMapFailed(err error) bool
- func ReadConfigMapYamlFromFile(fs afero.Fs, path string) (string, error)
- func ReadSecretYamlFromFile(fs afero.Fs, path string) (map[string][]byte, error)
Constants ¶
View Source
const ( ClusterStatusConditionCreated = "Created" ClusterStatusConditionCreating = "Creating" ClusterStatusConditionDeleted = "Deleted" ClusterStatusConditionDeleting = "Deleting" ClusterStatusConditionUpdated = "Updated" ClusterStatusConditionUpdating = "Updating" )
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 = `
{{- .UserConfigConfigMapCR -}}
---
{{ .UserConfigSecretCR -}}
---
{{ .AppCR -}}
`
View Source
const AppCatalogCRTemplate = `
{{- .ConfigmapCR -}}
---
{{ .SecretCR -}}
---
{{ .AppCatalogCR -}}
`
View Source
const ClusterAWSCRsTemplate = `
{{- .ClusterCR -}}
---
{{ .AWSClusterCR -}}
---
{{ .G8sControlPlaneCR -}}
---
{{ .AWSControlPlaneCR -}}
`
View Source
const ClusterAzureCRsTemplate = `
{{- .ProviderClusterCR -}}
---
{{ .ClusterCR -}}
---
{{ .MasterMachineCR -}}
`
View Source
const MachineDeploymentCRsTemplate = `
{{- .MachineDeploymentCR -}}
---
{{ .AWSMachineDeploymentCR -}}
`
View Source
const MachinePoolAzureCRsTemplate = `
{{- .ProviderMachinePoolCR -}}
---
{{ .MachinePoolCR -}}
---
{{ .SparkCR -}}
`
Variables ¶
This section is empty.
Functions ¶
func GenerateAssetName ¶ added in v0.2.0
func GenerateID ¶
func GenerateID() string
func IsClusterIDInvalid ¶ added in v0.3.0
IsClusterIDInvalid asserts clusterIDInvalidError.
func IsUnmashalToMapFailed ¶ added in v0.2.0
IsUnmashalToMapFailed asserts unmashalToMapFailedError.
func ReadConfigMapYamlFromFile ¶ added in v0.2.0
readConfigMapFromFile reads a configmap from a YAML file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.