From cbe8dcb7d542f095c64e6dc56dc4895886343539 Mon Sep 17 00:00:00 2001
From: xeruf <27jf@pm.me>
Date: Tue, 12 Jul 2022 22:11:36 +0100
Subject: [PATCH] apps: fix kubernetes kustomization

---
 basic/apps/dev/kustomization.yaml     | 1 -
 basic/apps/do/kustomization.yaml      | 1 -
 basic/apps/generate-kustomizations.sh | 2 +-
 basic/apps/people/kustomization.yaml  | 1 -
 basic/apps/time/kustomization.yaml    | 1 -
 5 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/basic/apps/dev/kustomization.yaml b/basic/apps/dev/kustomization.yaml
index 4648dea..47de58c 100644
--- a/basic/apps/dev/kustomization.yaml
+++ b/basic/apps/dev/kustomization.yaml
@@ -1,7 +1,6 @@
 apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
-  - kustomization.yaml
   - gitea-postgres-pvc.yaml
   - gitea-release.yaml
   - gitea-oauth-client.yaml
diff --git a/basic/apps/do/kustomization.yaml b/basic/apps/do/kustomization.yaml
index a8c0ca5..4aa48ff 100644
--- a/basic/apps/do/kustomization.yaml
+++ b/basic/apps/do/kustomization.yaml
@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
   - vikunja-oauth-client.yaml
-  - kustomization.yaml
   - vikunja-release.yaml
   - vikunja-values-configmap.yaml
   - vikunja-postgres-pvc.yaml
diff --git a/basic/apps/generate-kustomizations.sh b/basic/apps/generate-kustomizations.sh
index 1cbf25a..0d138e2 100755
--- a/basic/apps/generate-kustomizations.sh
+++ b/basic/apps/generate-kustomizations.sh
@@ -5,5 +5,5 @@ do  echo "$dir"
 	{ echo 'apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:'
-	find $dir -type f -not -name "*.bak" -printf "  - %f\n"; } | tee $dir/kustomization.yaml
+	find $dir -type f -not -name "*.bak" -not -name "kustomization.yaml" -printf "  - %f\n"; } | tee $dir/kustomization.yaml
 done
diff --git a/basic/apps/people/kustomization.yaml b/basic/apps/people/kustomization.yaml
index e2ba269..6ebe0bc 100644
--- a/basic/apps/people/kustomization.yaml
+++ b/basic/apps/people/kustomization.yaml
@@ -1,6 +1,5 @@
 apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
-  - kustomization.yaml
   - suitecrm-values-configmap.yaml
   - suitecrm-release.yaml
diff --git a/basic/apps/time/kustomization.yaml b/basic/apps/time/kustomization.yaml
index 5c6619b..ba38c45 100644
--- a/basic/apps/time/kustomization.yaml
+++ b/basic/apps/time/kustomization.yaml
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
   - kimai-release.yaml
-  - kustomization.yaml
   - kimai-values-configmap.yaml
-- 
GitLab