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" FlagNameManagementClusterName = "management-cluster-name" FlagNameManagementClusterNameDefaultValue = "management-cluster" FlagNameConfig = "config" FlagNameSkipMonitoringSetup = "skip-monitoring-setup" FlagNameSkipKubePrometheusBuild = "skip-kube-prometheus-build" FlagNameSkipPRFlow = "skip-pr-flow" FlagNameSkipClusterctlMove = "skip-clusterctl-move" FlagNameAWSAccessKeyID = "aws-access-key-id" FlagNameAWSSecretAccessKey = "aws-secret-access-key" FlagNameAWSSessionToken = "aws-session-token" FlagNameAWSRegion = "aws-region" FlagNameAMIID = "ami-id" FlagNameHetznerAPIToken = "hetzner-cloud-api-token" FlagNameHetznerRobotUsername = "hetzner-robot-username" FlagNameHetznerRobotPassword = "hetzner-robot-password" FlagNameAzureClientSecret = "azure-client-secret" )
CLI flags.
View Source
const ( KubeAPIServerFlagAuditPolicyFile = "audit-policy-file" KubeAPIServerFlagAuditLogPath = "audit-log-path" )
Kube API server CLI flags.
View Source
const ( CloudProviderAWS = "aws" CloudProviderHetzner = "hetzner" CloudProviderAzure = "azure" CloudProviderLocal = "local" )
Cloud providers.
View Source
const ( NamespaceArgoCD = "argocd" ReleaseNameArgoCD = "argocd" // Project. ArgoCDProjectKubeAid = "kubeaid" // Apps. ArgoCDAppRoot = "root" ArgoCDAppCapiCluster = "capi-cluster" ArgoCDAppHetznerRobot = "hetzner-robot" ArgoCDAppClusterAutoscaler = "cluster-autoscaler" ArgoCDAppVelero = "velero" ArgoCDAppKubePrometheus = "kube-prometheus" )
ArgoCD.
View Source
const ( BlobContainerNameWorkloadIdentity = "workload-identity-oidc-provider" AzureBlobNameOpenIDConfiguration = ".well-known/openid-configuration" AzureBlobNameJWKSDocument = "openid/v1/jwks" AzureRoleIDContributor = "b24988ac-6180-42a0-ab88-20f7382dd24c" AzureStorageBlobDataOwner = "b7e6dc6d-f1e8-4753-8033-0f276bb0955b" AzureResponseStatusCodeResourceAlreadyExists = 409 ServiceAccountNameCAPZ = "capz-manager" ServiceAccountNameASO = "azureserviceoperator-default" )
Azure
View Source
const ( RepoURLObmondoKubeAid = "https://github.com/Obmondo/KubeAid" ClusterTypeManagement = "management" ClusterTypeMain = "main" )
Miscellaneous.
Variables ¶
View Source
var ( OutputDirectory = "./outputs" OutputPathGeneratedConfig = path.Join(OutputDirectory, "config.yaml") OutputPathLogFile = path.Join(OutputDirectory, ".log") OutputPathManagementClusterK3DConfig = path.Join(OutputDirectory, "k3d.config.yaml") OutputPathManagementClusterHostKubeconfig = path.Join(OutputDirectory, "kubeconfigs/clusters/management/host.yaml") OutputPathManagementClusterContainerKubeconfig = path.Join(OutputDirectory, "kubeconfigs/clusters/management/container.yaml") OutputPathMainClusterKubeconfig = path.Join(OutputDirectory, "kubeconfigs/clusters/main.yaml") OutputPathJWKSDocument = path.Join(OutputDirectory, "workload-identity/openid-provider/jwks.json") )
Output paths.
View Source
var ( TemplateNameAWSSampleConfig = "files/templates/aws.sample.config.yaml.tmpl" TemplateNameHetznerSampleConfig = "files/templates/hetzner.sample.config.yaml.tmpl" TemplateNameLocalSampleConfig = "files/templates/local.sample.config.yaml.tmpl" TemplateNameOpenIDConfig = "templates/openid-configuration.json.tmpl" TemplateNameK3DConfig = "templates/k3d.config.yaml.tmpl" CommonNonSecretTemplateNames = []string{ "argocd-apps/templates/argocd.yaml.tmpl", "argocd-apps/values-argocd.yaml.tmpl", "argocd-apps/Chart.yaml", "argocd-apps/templates/root.yaml.tmpl", "argocd-apps/templates/cert-manager.yaml.tmpl", "argocd-apps/values-cert-manager.yaml.tmpl", "argocd-apps/templates/sealed-secrets.yaml.tmpl", "argocd-apps/values-sealed-secrets.yaml.tmpl", "argocd-apps/templates/secrets.yaml.tmpl", } // For KubePrometheus. TemplateNameKubePrometheusArgoCDApp = "argocd-apps/templates/kube-prometheus.yaml.tmpl" TemplateNameKubePrometheusVars = "cluster-vars.jsonnet.tmpl" CommonCloudNonSecretTemplateNames = []string{ "argocd-apps/templates/cilium.yaml.tmpl", "argocd-apps/values-cilium.yaml.tmpl", "argocd-apps/templates/cluster-api.yaml.tmpl", "argocd-apps/values-cluster-api.yaml.tmpl", "argocd-apps/templates/capi-cluster.yaml.tmpl", "argocd-apps/values-capi-cluster.yaml.tmpl", "argocd-apps/templates/cluster-autoscaler.yaml.tmpl", "argocd-apps/values-cluster-autoscaler.yaml.tmpl", } CommonSecretTemplateNames = []string{ "sealed-secrets/argocd/kubeaid-config.yaml.tmpl", } CommonCloudSecretTemplateNames = []string{ "sealed-secrets/capi-cluster/cloud-credentials.yaml.tmpl", } AWSSpecificNonSecretTemplateNames = []string{ "argocd-apps/templates/ccm-aws.yaml.tmpl", "argocd-apps/values-ccm-aws.yaml.tmpl", } AWSDisasterRecoverySpecificTemplateNames = []string{ "argocd-apps/templates/kube2iam.yaml.tmpl", "argocd-apps/values-kube2iam.yaml.tmpl", "argocd-apps/templates/velero.yaml.tmpl", "argocd-apps/values-velero.yaml.tmpl", "argocd-apps/templates/k8s-configs.yaml.tmpl", "k8s-configs/sealed-secrets.namespace.yaml.tmpl", "k8s-configs/velero.namespace.yaml.tmpl", } AzureSpecificNonSecretTemplateNames = []string{ "argocd-apps/templates/ccm-azure.yaml.tmpl", "argocd-apps/values-ccm-azure.yaml.tmpl", } HetznerSpecificNonSecretTemplateNames = []string{ "argocd-apps/templates/ccm-hetzner.yaml.tmpl", "argocd-apps/values-ccm-hetzner.yaml.tmpl", } HetznerSpecificSecretTemplateNames = []string{ "sealed-secrets/kube-system/cloud-credentials.yaml.tmpl", } )
Template names.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.