Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvNameAWSAccessKey = "AWS_ACCESS_KEY_ID" EnvNameAWSSecretKey = "AWS_SECRET_ACCESS_KEY" EnvNameAWSSessionToken = "AWS_SESSION_TOKEN" EnvNameAWSRegion = "AWS_REGION" EnvNameAWSB64EcodedCredentials = "AWS_B64ENCODED_CREDENTIALS" EnvNameHCloudToken = "HCLOUD_TOKEN" EnvNameRobotUser = "ROBOT_USER" EnvNameRobotPassword = "ROBOT_PASSWORD" EnvNameKubeconfig = "KUBECONFIG" )
Environment variable names.
View Source
const ( FlagNameDebug = "debug" FlagNameK8sVersion = "k8s-version" FlagNameConfig = "config" FlagNameSkipKubeAidConfigSetup = "skip-kubeaid-config-setup" FlagNameSkipClusterctlMove = "skip-clusterctl-move" FlagNameDeleteOldCluster = "delete-old-cluster" FlagNameHetznerAPIToken = "hetzner-api-token" FlagNameHetznerRobotUser = "hetzner-robot-user" FlagNameHetznerRobotPassword = "hetzner-robot-password" FlagNameAWSAccessKey = "aws-access-key-id" FlagNameAWSSecretKey = "aws-secret-access-key" FlagNameAWSSessionToken = "aws-session-token" FlagNameAWSRegion = "aws-region" )
CLI flags.
View Source
const ( CloudProviderAWS = "aws" CloudProviderHetzner = "hetzner" CloudProviderAzure = "azure" )
Cloud providers.
View Source
const ( OutputPathManagementClusterKubeconfig = "./outputs/management-cluster.kubeconfig.yaml" OutputPathProvisionedClusterKubeconfig = "./outputs/provisioned-cluster.kubeconfig.yaml" OutputPathGeneratedConfig = "./outputs/kubeaid-bootstrap-script.config.yaml" )
Output paths.
View Source
const ( ArgoCDAppRoot = "root" ArgoCDAppCapiCluster = "capi-cluster" ArgoCDAppClusterAutoscaler = "cluster-autoscaler" ArgoCDAppVelero = "velero" )
ArgoCD App names.
View Source
const ( RepoURLObmondoKubeAid = "https://github.com/Obmondo/KubeAid" NamespaceArgoCD = "argo-cd" )
Uncategorized.
Variables ¶
View Source
var ( TemplateNameAWSSampleConfig = "templates/aws.sample.config.yaml.tmpl" TemplateNameHetznerSampleConfig = "templates/hetzner.sample.config.yaml.tmpl" CommonNonSecretTemplateNames = []string{ "argocd-apps/templates/argo-cd.app.yaml.tmpl", "argocd-apps/argo-cd.values.yaml.tmpl", "argocd-apps/Chart.yaml", "argocd-apps/templates/root.yaml.tmpl", "argocd-apps/templates/kube-prometheus.app.yaml.tmpl", "argocd-apps/templates/cert-manager.app.yaml.tmpl", "argocd-apps/cert-manager.values.yaml.tmpl", "argocd-apps/templates/sealed-secrets.app.yaml.tmpl", "argocd-apps/sealed-secrets.values.yaml.tmpl", "argocd-apps/templates/secrets.app.yaml.tmpl", "argocd-apps/templates/cluster-api.app.yaml.tmpl", "argocd-apps/cluster-api.values.yaml.tmpl", "argocd-apps/templates/capi-cluster.app.yaml.tmpl", "argocd-apps/capi-cluster.values.yaml.tmpl", "argocd-apps/templates/cluster-autoscaler.app.yaml.tmpl", "argocd-apps/cluster-autoscaler.values.yaml.tmpl", } CommonSecretTemplateNames = []string{ "sealed-secrets/argo-cd/kubeaid-config.yaml.tmpl", "sealed-secrets/capi-cluster/cloud-credentials.yaml.tmpl", } AWSSpecificNonSecretTemplateNames = []string{ "argocd-apps/templates/ccm-aws.app.yaml.tmpl", "argocd-apps/ccm-aws.values.yaml.tmpl", } AWSDisasterRecoverySpecificTemplateNames = []string{ "argocd-apps/templates/kube2iam.app.yaml.tmpl", "argocd-apps/kube2iam.values.yaml.tmpl", "argocd-apps/templates/velero.app.yaml.tmpl", "argocd-apps/velero.values.yaml.tmpl", "argocd-apps/templates/k8s-configs.app.yaml.tmpl", "k8s-configs/sealed-secrets.namespace.yaml.tmpl", "k8s-configs/velero.namespace.yaml.tmpl", } HetznerSpecificNonSecretTemplateNames = []string{ "argocd-apps/templates/hetzner-robot.app.yaml.tmpl", "argocd-apps/hetzner-robot.values.yaml.tmpl", "argocd-apps/templates/ccm-hetzner.app.yaml.tmpl", "argocd-apps/ccm-hetzner.values.yaml.tmpl", } HetznerSpecificSecretTemplateNames = []string{ "sealed-secrets/capi-cluster/hetzner-robot-ssh-keypair.yaml.tmpl", "sealed-secrets/kube-system/cloud-credentials.yaml.tmpl", } TemplateNameJsonnet = "cluster-vars.jsonnet.tmpl" )
Template names.
View Source
var ( TempDir string ArgoCDApplicationClientCloser io.Closer ArgoCDApplicationClient application.ApplicationServiceClient )
Global states.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.