From 124d59b48018c881479376d16dd5e5d9548ed9d6 Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:14:57 +0000 Subject: [PATCH 1/5] Update values.yaml --- values.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/values.yaml b/values.yaml index 58830bd..d35ae82 100644 --- a/values.yaml +++ b/values.yaml @@ -1,14 +1,16 @@ subchart: false -namespace: default +chart_template: + name: chart_template + namespace: default -# expose: -# service: -# name: -# port: -# match: Host(`n8n.ties.one`) -# middlewares: -# - authentik +# expose: +# service: +# name: +# port: +# match: Host(`n8n.ties.one`) +# middlewares: +# - authentik global: # values.yaml contents \ No newline at end of file From b6792730edc7569e59f0895054d51b08b35aff02 Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:15:36 +0000 Subject: [PATCH 2/5] Update templates/traefik.yaml --- templates/traefik.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/traefik.yaml b/templates/traefik.yaml index f1e090b..049e15a 100644 --- a/templates/traefik.yaml +++ b/templates/traefik.yaml @@ -1,7 +1,7 @@ apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: - name: {{ .Chart.Name }} + name: {{ .Values.name }} namespace: {{ .Values.namespace }} spec: routes: From db68178fb2aa31604109def6fc26277ea7df427f Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:16:14 +0000 Subject: [PATCH 3/5] Update templates/helm.yaml --- templates/helm.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/helm.yaml b/templates/helm.yaml index 0ab4706..cd7068b 100644 --- a/templates/helm.yaml +++ b/templates/helm.yaml @@ -1,14 +1,14 @@ {{ $repository := .Values.subchartData.repository }} {{- if hasPrefix "oci://" .Values.subchartData.repository }} -{{- $repository = printf "%s/%s" .Values.subchartData.repository .Chart.Name }} +{{- $repository = printf "%s/%s" .Values.subchartData.repository .Values.name }} {{- end }} apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: - name: {{ .Chart.Name }} + name: {{ .Values.name }} namespace: {{ .Values.namespace }} spec: - chart: {{ .Chart.Name }} + chart: {{ .Values.name }} repo: {{ $repository }} targetNamespace: {{ .namespace }} version: {{ .Values.subchartData.version }} From 219d92511d290fb046edab900502502d279c7edd Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:16:39 +0000 Subject: [PATCH 4/5] Delete .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml deleted file mode 100644 index f77d3df..0000000 --- a/.gitea/workflows/deploy.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Deploy -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Docker Test - uses: docker://git.ties.one/public/custom_act_runner:latest - env: - action: print - KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }} \ No newline at end of file From b7d52846f5d3efdb62820f9d46875224c84e89aa Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:18:17 +0000 Subject: [PATCH 5/5] Update templates/helm.yaml --- templates/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/helm.yaml b/templates/helm.yaml index cd7068b..cec5d09 100644 --- a/templates/helm.yaml +++ b/templates/helm.yaml @@ -10,7 +10,7 @@ metadata: spec: chart: {{ .Values.name }} repo: {{ $repository }} - targetNamespace: {{ .namespace }} + targetNamespace: {{ .Values.namespace }} version: {{ .Values.subchartData.version }} valuesContent: |- {{ toYaml .Values.global | indent 4 }} \ No newline at end of file