Files
homelab/pkg/root/root.go
T
2026-04-30 13:18:59 -04:00

48 lines
1.4 KiB
Go

package root
import (
core "k8s.io/api/core/v1"
)
const (
HYDRA_CLUSTER = "hydra"
HYDRA_HOSTNAME = "hydra-0" // VPN Host
GITEA_HOST = "danicos.dev"
TMP_FOLDER = "./tmp"
SECRETS_FOLDER = TMP_FOLDER + "/secrets"
GO_SECRETS_FOLDER = "./pkg/secrets"
GO_ENC_SECRETS_FOLDER = "./pkg/enc"
)
const (
FLUX_NAMESPACE = "flux-system"
FLUX_APPS_HYDRA_PATH = "./apps/" + HYDRA_CLUSTER
FLUX_APPS_SECRETS_HYDRA_PATH = "./apps/" + HYDRA_CLUSTER + "/secrets"
FLUX_CLUSTER_HYDRA_PATH = "./clusters/" + HYDRA_CLUSTER
FLUX_INFRA_HYDRA_PATH = "./infrastructure/" + HYDRA_CLUSTER
FLUX_DECRYPTION_PROVIDER = "sops"
FLUX_HELM_MONITORING_INTERVAL = 24 // in hours
)
const (
HELM_PROMETHEUS_URL = "https://prometheus-community.github.io/helm-charts"
HELM_PROMETHEUS_CHART = "kube-prometheus-stack"
HELM_PROMETHEUS_CHART_VERSION = "66.x"
HELM_LONGHORN_URL = "https://charts.longhorn.io"
HELM_LONGHORN_CHART = "longhorn"
HELM_LONGHORN_CHART_VERSION = "1.11.1"
HELM_CLOUD_NATIVE_PG_URL = "https://cloudnative-pg.github.io/charts"
HELM_CLOUD_NATIVE_PG_CHART = "cnpg/cloudnative-pg"
HELM_CLOUD_NATIVE_PG_CHART_VERSION = ""
)
var (
ContainerSecurityContext = &core.SecurityContext{
AllowPrivilegeEscalation: new(false),
}
HYDRA_WORKERS = []string{
"hydra-1",
"hydra-2",
}
)