key

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrganizationGiantSwarm  = "giantswarm"
	RepositoryInstallations = "installations"
	RepositoryCMC           = "cmc"
	RepositoryGithub        = "github"
	RepositoryMCBootstrap   = "mc-bootstrap"
	InstallationsMainBranch = "master"
	CMCMainBranch           = "main"
	MCBMainBranch           = "main"
	Employees               = "employees"
	Bots                    = "bots"
	CMCTemplateRepository   = "template-management-clusters"
	CMCEntryTemplatePath    = "scripts/setup-cmc-branch/management-cluster-template"
	FluxNamespace           = "flux-giantswarm"
)
View Source
const (
	ClusterValuesFile = "cluster-values.yaml"
	CommonSecretsFile = "common.secrets"
)
View Source
const (
	ProviderAWS     = "capa"
	ProviderAzure   = "capz"
	ProviderVCD     = "cloud-director"
	ProviderVsphere = "vsphere"
	ProviderGCP     = "gcp"
)

Variables

This section is empty.

Functions

func CMCTemplate

func CMCTemplate() string

func GetAgeKey

func GetAgeKey(cluster string) string

func GetCMCName

func GetCMCName(customer string) string

func GetCMCPath

func GetCMCPath(cluster string) string

func GetCertManagerSecretName

func GetCertManagerSecretName(cluster string) string

func GetClusterSecretFile

func GetClusterSecretFile(cluster string) string

func GetContainerRegistriesFile

func GetContainerRegistriesFile(cluster string) string

func GetData

func GetData(data any) ([]byte, error)

func GetDefaultConfigBranch

func GetDefaultConfigBranch(cluster string) string

func GetDefaultPRBranch

func GetDefaultPRBranch(cluster string) string

func GetDeployKey

func GetDeployKey(cluster string) string

func GetInstallationsPath

func GetInstallationsPath(cluster string) string

func GetKnownHosts

func GetKnownHosts(cluster string) string

func GetMultiLineValue

func GetMultiLineValue(key string, data string) (string, error)

func GetNamespacedName

func GetNamespacedName(data string) (name, namespace string)

func GetOwnershipBranch

func GetOwnershipBranch(customer string) string

func GetPassphrase

func GetPassphrase(cluster string) string

func GetRandom

func GetRandom() string

func GetSecretValue

func GetSecretValue(key string, data string) (string, error)

func GetTMPLFile

func GetTMPLFile(file string) string

func GetValidProviders

func GetValidProviders() []string

func GetValidRepositories

func GetValidRepositories() []string

func GetValue

func GetValue(key string, data string) (string, error)

func IsProviderAWS

func IsProviderAWS(provider string) bool

sometimes providers are called differently. todo: identify cases and add const for them

func IsProviderAzure

func IsProviderAzure(provider string) bool

func IsProviderGCP

func IsProviderGCP(provider string) bool

func IsProviderVCD

func IsProviderVCD(provider string) bool

func IsProviderVsphere

func IsProviderVsphere(provider string) bool

func IsValidProvider

func IsValidProvider(provider string) bool

func IsValidRepository

func IsValidRepository(repository string) bool

func MergeValues

func MergeValues(valuesA string, valuesB string) (string, error)

func Skip

func Skip(name string, skip []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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