From c0f9f382078d901881cbbba09f4356a0c5ddab40 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Tue, 4 Jun 2024 15:04:12 +0200 Subject: [PATCH] feat: move vcluster charts to charts/ --- {vcluster/chart => charts/vcluster}/.helmignore | 0 {vcluster/chart => charts/vcluster}/Chart.yaml | 0 {vcluster/chart => charts/vcluster}/templates/_helpers.tpl | 0 .../vcluster}/templates/allow-external-services.yaml | 0 .../vcluster}/templates/argo-cluster-connection.yaml | 0 {vcluster/chart => charts/vcluster}/templates/cnpg.yaml | 0 {vcluster/chart => charts/vcluster}/templates/jaeger.yaml | 0 .../kyverno-policies/allow-vcluster-apiserver.yaml | 0 .../kyverno-policies/sync-vcluster-atlantis-secrets.yaml | 0 .../kyverno-policies/sync-vcluster-oceanbox-regcred.yaml | 0 {vcluster/chart => charts/vcluster}/templates/rbac.yaml | 0 .../chart => charts/vcluster}/templates/vcluster.yaml | 0 {vcluster/chart => charts/vcluster}/values.yaml | 0 vcluster/create-vcluster.sh | 7 +------ 14 files changed, 1 insertion(+), 6 deletions(-) rename {vcluster/chart => charts/vcluster}/.helmignore (100%) rename {vcluster/chart => charts/vcluster}/Chart.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/_helpers.tpl (100%) rename {vcluster/chart => charts/vcluster}/templates/allow-external-services.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/argo-cluster-connection.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/cnpg.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/jaeger.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/kyverno-policies/allow-vcluster-apiserver.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/kyverno-policies/sync-vcluster-atlantis-secrets.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/kyverno-policies/sync-vcluster-oceanbox-regcred.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/rbac.yaml (100%) rename {vcluster/chart => charts/vcluster}/templates/vcluster.yaml (100%) rename {vcluster/chart => charts/vcluster}/values.yaml (100%) diff --git a/vcluster/chart/.helmignore b/charts/vcluster/.helmignore similarity index 100% rename from vcluster/chart/.helmignore rename to charts/vcluster/.helmignore diff --git a/vcluster/chart/Chart.yaml b/charts/vcluster/Chart.yaml similarity index 100% rename from vcluster/chart/Chart.yaml rename to charts/vcluster/Chart.yaml diff --git a/vcluster/chart/templates/_helpers.tpl b/charts/vcluster/templates/_helpers.tpl similarity index 100% rename from vcluster/chart/templates/_helpers.tpl rename to charts/vcluster/templates/_helpers.tpl diff --git a/vcluster/chart/templates/allow-external-services.yaml b/charts/vcluster/templates/allow-external-services.yaml similarity index 100% rename from vcluster/chart/templates/allow-external-services.yaml rename to charts/vcluster/templates/allow-external-services.yaml diff --git a/vcluster/chart/templates/argo-cluster-connection.yaml b/charts/vcluster/templates/argo-cluster-connection.yaml similarity index 100% rename from vcluster/chart/templates/argo-cluster-connection.yaml rename to charts/vcluster/templates/argo-cluster-connection.yaml diff --git a/vcluster/chart/templates/cnpg.yaml b/charts/vcluster/templates/cnpg.yaml similarity index 100% rename from vcluster/chart/templates/cnpg.yaml rename to charts/vcluster/templates/cnpg.yaml diff --git a/vcluster/chart/templates/jaeger.yaml b/charts/vcluster/templates/jaeger.yaml similarity index 100% rename from vcluster/chart/templates/jaeger.yaml rename to charts/vcluster/templates/jaeger.yaml diff --git a/vcluster/chart/templates/kyverno-policies/allow-vcluster-apiserver.yaml b/charts/vcluster/templates/kyverno-policies/allow-vcluster-apiserver.yaml similarity index 100% rename from vcluster/chart/templates/kyverno-policies/allow-vcluster-apiserver.yaml rename to charts/vcluster/templates/kyverno-policies/allow-vcluster-apiserver.yaml diff --git a/vcluster/chart/templates/kyverno-policies/sync-vcluster-atlantis-secrets.yaml b/charts/vcluster/templates/kyverno-policies/sync-vcluster-atlantis-secrets.yaml similarity index 100% rename from vcluster/chart/templates/kyverno-policies/sync-vcluster-atlantis-secrets.yaml rename to charts/vcluster/templates/kyverno-policies/sync-vcluster-atlantis-secrets.yaml diff --git a/vcluster/chart/templates/kyverno-policies/sync-vcluster-oceanbox-regcred.yaml b/charts/vcluster/templates/kyverno-policies/sync-vcluster-oceanbox-regcred.yaml similarity index 100% rename from vcluster/chart/templates/kyverno-policies/sync-vcluster-oceanbox-regcred.yaml rename to charts/vcluster/templates/kyverno-policies/sync-vcluster-oceanbox-regcred.yaml diff --git a/vcluster/chart/templates/rbac.yaml b/charts/vcluster/templates/rbac.yaml similarity index 100% rename from vcluster/chart/templates/rbac.yaml rename to charts/vcluster/templates/rbac.yaml diff --git a/vcluster/chart/templates/vcluster.yaml b/charts/vcluster/templates/vcluster.yaml similarity index 100% rename from vcluster/chart/templates/vcluster.yaml rename to charts/vcluster/templates/vcluster.yaml diff --git a/vcluster/chart/values.yaml b/charts/vcluster/values.yaml similarity index 100% rename from vcluster/chart/values.yaml rename to charts/vcluster/values.yaml diff --git a/vcluster/create-vcluster.sh b/vcluster/create-vcluster.sh index b08c8013..39b16a83 100755 --- a/vcluster/create-vcluster.sh +++ b/vcluster/create-vcluster.sh @@ -5,11 +5,6 @@ if [ ! $# -ge 1 ]; then exit 1 fi -if [ ! -d chart ]; then - echo "error: must be run from toplevel directory" - exit 1 -fi - k='kubectl --context oceanbox' name=$1 @@ -20,7 +15,7 @@ yq ".clusters[]|select(.name|contains(\"$name-vcluster\")).name" ~/.kube/config if [ $? = 0 ]; then $k get ns $ns >/dev/null 2>&1 || $k create ns $ns - helm template -n $ns $@ $name ./chart | $k apply -f - + helm template -n $ns $@ $name oceanbox/vcluster | $k apply -f - echo "waiting for vcluster $name to appear... " while true; do