Move flux to NixOS and add URL hashes

This commit is contained in:
Greg Hellings
2025-09-11 21:39:53 -05:00
parent 305ca30ad5
commit 3cf32090d6
3 changed files with 6 additions and 12812 deletions
-2
View File
@@ -6,8 +6,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Change to the script directory # Change to the script directory
cd "$SCRIPT_DIR" cd "$SCRIPT_DIR"
kubectl apply -f helm/flux.yaml
sleep 5
kubectl apply -f helm/kyverno.yaml kubectl apply -f helm/kyverno.yaml
sleep 15 sleep 15
kubectl apply -k helm kubectl apply -k helm
File diff suppressed because it is too large Load Diff
+6
View File
@@ -8,6 +8,11 @@ let
cfg = config.greg.kubernetes; cfg = config.greg.kubernetes;
cert-manager = pkgs.fetchurl { cert-manager = pkgs.fetchurl {
url = "https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yaml"; url = "https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.yaml";
sha256 = "0vx1nfyhl0rzb6psfxplq8pfp18mrrdk83n8rj2ph8q6r15vcih5";
};
flux = pkgs.fetchurl {
url = "https://github.com/fluxcd/flux2/releases/download/v2.5.1/install.yaml";
sha256 = "1cjpxfgnzycwnac58gd3naxgmwsj5bdrx0vzh56aiq1m5c0h3dhs";
}; };
in in
{ {
@@ -86,6 +91,7 @@ in
]; ];
manifests = { manifests = {
cert-manager.source = cert-manager; cert-manager.source = cert-manager;
flux.source = flux;
node-annotations.content = ../../manifests/nodes.yaml; node-annotations.content = ../../manifests/nodes.yaml;
}; };
role = if cfg.agentOnly then "agent" else "server"; role = if cfg.agentOnly then "agent" else "server";