key

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 = `
{{- .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 -}}
`
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 GenerateAssetName(values ...string) string

func GenerateID

func GenerateID() string

func IsClusterIDInvalid added in v0.3.0

func IsClusterIDInvalid(err error) bool

IsClusterIDInvalid asserts clusterIDInvalidError.

func IsUnmashalToMapFailed added in v0.2.0

func IsUnmashalToMapFailed(err error) bool

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 OrganizationNamespaceFromName(name string) string

func ReadConfigMapYamlFromFile added in v0.2.0

func ReadConfigMapYamlFromFile(fs afero.Fs, path string) (string, error)

readConfigMapFromFile reads a configmap from a YAML file.

func ReadSecretYamlFromFile added in v0.2.0

func ReadSecretYamlFromFile(fs afero.Fs, path string) ([]byte, error)

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 AnnotationsGetter interface {
	GetAnnotations() map[string]string
}

type LabelsGetter added in v1.20.0

type LabelsGetter interface {
	GetLabels() map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL