From 1943a7355b8040836fb7bca2ad0b23e9e466aa8f Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 12 Jul 2022 18:38:21 +0100 Subject: [PATCH] Add kubernetes kustomizations --- basic/apps/dev/gitea-data-pvc.yaml | 1 - basic/apps/dev/gitea-postgres-pvc.yaml | 1 - basic/apps/dev/gitea-values-configmap.yaml | 1 - basic/apps/dev/kustomization.yaml | 9 +++++++++ basic/apps/do/kustomization.yaml | 8 ++++++++ basic/apps/do/vikunja-postgres-pvc.yaml | 1 - basic/apps/do/vikunja-values-configmap.yaml | 1 - basic/apps/generate-kustomizations.sh | 9 +++++++++ basic/apps/people/kustomization.yaml | 6 ++++++ basic/apps/people/suitecrm-values-configmap.yaml | 1 - basic/apps/time/kimai-values-configmap.yaml | 1 - basic/apps/time/kustomization.yaml | 6 ++++++ .../kustomizations/gitea-kustomization.yaml | 1 - .../kustomizations/kimai-kustomization.yaml | 1 - .../kustomizations/suitecrm-kustomization.yaml | 1 - basic/overrides/stackspin-nextcloud-override.yaml | 1 - basic/overrides/stackspin-zulip-override.yaml | 1 - 17 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 basic/apps/dev/kustomization.yaml create mode 100644 basic/apps/do/kustomization.yaml create mode 100755 basic/apps/generate-kustomizations.sh create mode 100644 basic/apps/people/kustomization.yaml create mode 100644 basic/apps/time/kustomization.yaml diff --git a/basic/apps/dev/gitea-data-pvc.yaml b/basic/apps/dev/gitea-data-pvc.yaml index 2dc7fbf..f6278dd 100644 --- a/basic/apps/dev/gitea-data-pvc.yaml +++ b/basic/apps/dev/gitea-data-pvc.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/basic/apps/dev/gitea-postgres-pvc.yaml b/basic/apps/dev/gitea-postgres-pvc.yaml index cdde1fb..b8a6684 100644 --- a/basic/apps/dev/gitea-postgres-pvc.yaml +++ b/basic/apps/dev/gitea-postgres-pvc.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/basic/apps/dev/gitea-values-configmap.yaml b/basic/apps/dev/gitea-values-configmap.yaml index a248d52..2afb230 100644 --- a/basic/apps/dev/gitea-values-configmap.yaml +++ b/basic/apps/dev/gitea-values-configmap.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: diff --git a/basic/apps/dev/kustomization.yaml b/basic/apps/dev/kustomization.yaml new file mode 100644 index 0000000..4648dea --- /dev/null +++ b/basic/apps/dev/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - kustomization.yaml + - gitea-postgres-pvc.yaml + - gitea-release.yaml + - gitea-oauth-client.yaml + - gitea-values-configmap.yaml + - gitea-data-pvc.yaml diff --git a/basic/apps/do/kustomization.yaml b/basic/apps/do/kustomization.yaml new file mode 100644 index 0000000..a8c0ca5 --- /dev/null +++ b/basic/apps/do/kustomization.yaml @@ -0,0 +1,8 @@ +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/do/vikunja-postgres-pvc.yaml b/basic/apps/do/vikunja-postgres-pvc.yaml index 5c9c895..90a815f 100644 --- a/basic/apps/do/vikunja-postgres-pvc.yaml +++ b/basic/apps/do/vikunja-postgres-pvc.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/basic/apps/do/vikunja-values-configmap.yaml b/basic/apps/do/vikunja-values-configmap.yaml index f9bf15f..e479e20 100644 --- a/basic/apps/do/vikunja-values-configmap.yaml +++ b/basic/apps/do/vikunja-values-configmap.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: diff --git a/basic/apps/generate-kustomizations.sh b/basic/apps/generate-kustomizations.sh new file mode 100755 index 0000000..1cbf25a --- /dev/null +++ b/basic/apps/generate-kustomizations.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e +# Generates kubernetes kustomizations +find -mindepth 1 -maxdepth 1 -type d | while read dir; +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 +done diff --git a/basic/apps/people/kustomization.yaml b/basic/apps/people/kustomization.yaml new file mode 100644 index 0000000..e2ba269 --- /dev/null +++ b/basic/apps/people/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - kustomization.yaml + - suitecrm-values-configmap.yaml + - suitecrm-release.yaml diff --git a/basic/apps/people/suitecrm-values-configmap.yaml b/basic/apps/people/suitecrm-values-configmap.yaml index 46431fd..78f8eca 100644 --- a/basic/apps/people/suitecrm-values-configmap.yaml +++ b/basic/apps/people/suitecrm-values-configmap.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: diff --git a/basic/apps/time/kimai-values-configmap.yaml b/basic/apps/time/kimai-values-configmap.yaml index 30882e7..875c97b 100644 --- a/basic/apps/time/kimai-values-configmap.yaml +++ b/basic/apps/time/kimai-values-configmap.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: diff --git a/basic/apps/time/kustomization.yaml b/basic/apps/time/kustomization.yaml new file mode 100644 index 0000000..5c6619b --- /dev/null +++ b/basic/apps/time/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - kimai-release.yaml + - kustomization.yaml + - kimai-values-configmap.yaml diff --git a/basic/infrastructure/kustomizations/gitea-kustomization.yaml b/basic/infrastructure/kustomizations/gitea-kustomization.yaml index be597f9..33fceb5 100644 --- a/basic/infrastructure/kustomizations/gitea-kustomization.yaml +++ b/basic/infrastructure/kustomizations/gitea-kustomization.yaml @@ -1,4 +1,3 @@ ---- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 kind: Kustomization metadata: diff --git a/basic/infrastructure/kustomizations/kimai-kustomization.yaml b/basic/infrastructure/kustomizations/kimai-kustomization.yaml index 5a98714..f611e06 100644 --- a/basic/infrastructure/kustomizations/kimai-kustomization.yaml +++ b/basic/infrastructure/kustomizations/kimai-kustomization.yaml @@ -1,4 +1,3 @@ ---- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 kind: Kustomization metadata: diff --git a/basic/infrastructure/kustomizations/suitecrm-kustomization.yaml b/basic/infrastructure/kustomizations/suitecrm-kustomization.yaml index c89f19c..29bc47c 100644 --- a/basic/infrastructure/kustomizations/suitecrm-kustomization.yaml +++ b/basic/infrastructure/kustomizations/suitecrm-kustomization.yaml @@ -1,4 +1,3 @@ ---- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 kind: Kustomization metadata: diff --git a/basic/overrides/stackspin-nextcloud-override.yaml b/basic/overrides/stackspin-nextcloud-override.yaml index 00c2e38..40bac34 100644 --- a/basic/overrides/stackspin-nextcloud-override.yaml +++ b/basic/overrides/stackspin-nextcloud-override.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: diff --git a/basic/overrides/stackspin-zulip-override.yaml b/basic/overrides/stackspin-zulip-override.yaml index 3403512..a0ff70e 100644 --- a/basic/overrides/stackspin-zulip-override.yaml +++ b/basic/overrides/stackspin-zulip-override.yaml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: ConfigMap metadata: