helm-implementation #3
@ -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 }}
|
|
||||||
@ -1,16 +1,16 @@
|
|||||||
{{ $repository := .Values.subchartData.repository }}
|
{{ $repository := .Values.subchartData.repository }}
|
||||||
{{- if hasPrefix "oci://" .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 }}
|
{{- end }}
|
||||||
apiVersion: helm.cattle.io/v1
|
apiVersion: helm.cattle.io/v1
|
||||||
kind: HelmChart
|
kind: HelmChart
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Chart.Name }}
|
name: {{ .Values.name }}
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
spec:
|
spec:
|
||||||
chart: {{ .Chart.Name }}
|
chart: {{ .Values.name }}
|
||||||
repo: {{ $repository }}
|
repo: {{ $repository }}
|
||||||
targetNamespace: {{ .namespace }}
|
targetNamespace: {{ .Values.namespace }}
|
||||||
version: {{ .Values.subchartData.version }}
|
version: {{ .Values.subchartData.version }}
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
{{ toYaml .Values.global | indent 4 }}
|
{{ toYaml .Values.global | indent 4 }}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Chart.Name }}
|
name: {{ .Values.name }}
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
spec:
|
spec:
|
||||||
routes:
|
routes:
|
||||||
|
|||||||
18
values.yaml
18
values.yaml
@ -1,14 +1,16 @@
|
|||||||
subchart: false
|
subchart: false
|
||||||
|
|
||||||
namespace: default
|
chart_template:
|
||||||
|
name: chart_template
|
||||||
|
namespace: default
|
||||||
|
|
||||||
# expose:
|
# expose:
|
||||||
# service:
|
# service:
|
||||||
# name:
|
# name:
|
||||||
# port:
|
# port:
|
||||||
# match: Host(`n8n.ties.one`)
|
# match: Host(`n8n.ties.one`)
|
||||||
# middlewares:
|
# middlewares:
|
||||||
# - authentik
|
# - authentik
|
||||||
|
|
||||||
global:
|
global:
|
||||||
# values.yaml contents
|
# values.yaml contents
|
||||||
Loading…
x
Reference in New Issue
Block a user