apps: create kustomization for directory
This commit is contained in:
parent
7b297aa568
commit
0710ff6532
|
@ -1,9 +1,14 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# Generates kubernetes kustomizations
|
# Generates kubernetes kustomizations
|
||||||
find -mindepth 1 -maxdepth 1 -type d | while read dir;
|
if test $# -gt 0
|
||||||
do echo "$dir"
|
then dir=$1
|
||||||
{ echo 'apiVersion: kustomize.config.k8s.io/v1beta1
|
{ echo 'apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:'
|
resources:'
|
||||||
find $dir -type f -not -name "*.bak" -not -name "kustomization.yaml" -printf " - %f\n"; } | tee $dir/kustomization.yaml
|
find $dir -maxdepth 1 -type f -name "*.yaml" -not -name "kustomization.yaml" -printf " - %f\n"; } | tee $dir/kustomization.yaml
|
||||||
done
|
else
|
||||||
|
find -mindepth 1 -maxdepth 1 -type d | while read dir
|
||||||
|
do echo "$dir"
|
||||||
|
$0 "$dir"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- gitea-kustomization.yaml
|
||||||
|
- forgejo-kustomization.yaml
|
||||||
|
- invoiceninja-customization.yaml
|
||||||
|
- vikunja-kustomization.yaml
|
||||||
|
- vikunja-test-kustomization.yaml
|
Loading…
Reference in New Issue