From 3764df0ca4cc3547c5492d37f9a0fb3c2a64258f Mon Sep 17 00:00:00 2001 From: Daniel Vystrcil Date: Wed, 29 Jul 2026 21:58:27 -0700 Subject: [PATCH] chore: standardize k8s/ to base/+overlays/ convention (homelab#141) k8s/ previously had no kustomization.yaml -- ArgoCD applied the flat files directly as a raw manifest source. Introduces kustomize for the first time: k8s/base/ holds the manifests (unchanged), k8s/overlays/ is a thin wrapper (resources: [../base]). Verified additive/structural only: rendered `kubectl kustomize k8s/overlays/` produces the same 7 objects with identical content as the original flat files. Fork-pressure note: this is a fork of AUTOMATIC1111's stable-diffusion- webui with a custom Dockerfile/deploy layer. This PR only touches the deploy manifests (k8s/), not the forked application code, so it doesn't add to future upstream-merge friction. Depends on a matching path update in dvystrcil/argocd-projects (sd-webui-rcom Application, spec.sources[0].path 'k8s' -> 'k8s/overlays') -- merge both PRs together. automated.selfHeal is enabled, so whichever merges first will show a brief non-destructive transient sync error. --- k8s/{ => base}/deployment.yaml | 0 k8s/base/kustomization.yaml | 5 +++++ k8s/{ => base}/namespace.yaml | 0 k8s/{ => base}/sd-webui-rcom-infisical-secret.yaml | 0 k8s/{ => base}/vpa.yaml | 0 k8s/overlays/kustomization.yaml | 2 ++ 6 files changed, 7 insertions(+) rename k8s/{ => base}/deployment.yaml (100%) create mode 100644 k8s/base/kustomization.yaml rename k8s/{ => base}/namespace.yaml (100%) rename k8s/{ => base}/sd-webui-rcom-infisical-secret.yaml (100%) rename k8s/{ => base}/vpa.yaml (100%) create mode 100644 k8s/overlays/kustomization.yaml diff --git a/k8s/deployment.yaml b/k8s/base/deployment.yaml similarity index 100% rename from k8s/deployment.yaml rename to k8s/base/deployment.yaml diff --git a/k8s/base/kustomization.yaml b/k8s/base/kustomization.yaml new file mode 100644 index 0000000..b388c28 --- /dev/null +++ b/k8s/base/kustomization.yaml @@ -0,0 +1,5 @@ +resources: + - deployment.yaml + - namespace.yaml + - sd-webui-rcom-infisical-secret.yaml + - vpa.yaml diff --git a/k8s/namespace.yaml b/k8s/base/namespace.yaml similarity index 100% rename from k8s/namespace.yaml rename to k8s/base/namespace.yaml diff --git a/k8s/sd-webui-rcom-infisical-secret.yaml b/k8s/base/sd-webui-rcom-infisical-secret.yaml similarity index 100% rename from k8s/sd-webui-rcom-infisical-secret.yaml rename to k8s/base/sd-webui-rcom-infisical-secret.yaml diff --git a/k8s/vpa.yaml b/k8s/base/vpa.yaml similarity index 100% rename from k8s/vpa.yaml rename to k8s/base/vpa.yaml diff --git a/k8s/overlays/kustomization.yaml b/k8s/overlays/kustomization.yaml new file mode 100644 index 0000000..6f69d81 --- /dev/null +++ b/k8s/overlays/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - ../base