Files
homelab/pkg/root/root.go

56 lines
1.7 KiB
Go
Raw Normal View History

2026-04-17 18:11:18 -04:00
package root
2026-04-18 12:10:01 -04:00
import (
core "k8s.io/api/core/v1"
)
2026-04-17 20:49:37 -04:00
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"
2026-04-17 18:11:18 -04:00
)
2026-04-17 20:49:37 -04:00
2026-04-30 14:01:55 -04:00
const (
KUBE_LOCAL_STORAGE_CLASS = "local-path"
2026-05-06 18:30:57 -04:00
LONGHORN_STORAGE_CLASS = "longhorn"
2026-04-30 14:01:55 -04:00
)
2026-04-17 20:49:37 -04:00
const (
2026-04-21 13:06:42 -04:00
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 (
2026-04-30 13:18:59 -04:00
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"
2026-04-30 13:24:15 -04:00
HELM_CLOUD_NATIVE_PG_CHART = "cloudnative-pg"
HELM_CLOUD_NATIVE_PG_CHART_VERSION = "0.28.0"
2026-05-05 13:45:42 -04:00
PG_VERSION_NAME = "pg-minimal-trixie"
PG_VERSION_18 = 18
PG_VERSION_18_IMAGE = "ghcr.io/cloudnative-pg/postgresql:18.3-minimal-trixie"
2026-04-17 20:49:37 -04:00
)
2026-04-18 12:10:01 -04:00
var (
ContainerSecurityContext = &core.SecurityContext{
AllowPrivilegeEscalation: new(false),
}
HYDRA_WORKERS = []string{
"hydra-1",
"hydra-2",
}
2026-04-18 12:10:01 -04:00
)