mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
more-stuff
This commit is contained in:
0
charts/apps/values.yaml
Normal file
0
charts/apps/values.yaml
Normal file
3
charts/root/Chart.yaml
Normal file
3
charts/root/Chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
version: 1.0.0
|
||||||
|
name: root
|
||||||
33
charts/root/templates/apps.yaml
Normal file
33
charts/root/templates/apps.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: homelab-apps
|
||||||
|
namespace: '{{ .Values.env }}-argo'
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- git:
|
||||||
|
repoURL: '{{ .Values.repo }}'
|
||||||
|
revision: '{{ .Values.ref }}'
|
||||||
|
directories:
|
||||||
|
- path: charts/apps/*
|
||||||
|
include: '.*'
|
||||||
|
exclude: '.*.disabled'
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{`{{path.basename}}`}}'
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: '{{ .Values.repo }}'
|
||||||
|
targetRevision: '{{ .Values.ref }}'
|
||||||
|
path: charts/apps/{{`{{path.basename}}`}}
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
globals: {{ .Values.globals | toYaml | nindent 14 }}
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: '{{ .Values.globals.env }}'
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
21
charts/root/templates/root.yaml
Normal file
21
charts/root/templates/root.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: homelab-root
|
||||||
|
namespace: '{{ .Values.globals.env }}-argo'
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: '{{ .Values.repo }}'
|
||||||
|
targetRevision: '{{ .Values.ref }}'
|
||||||
|
path: charts/root
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- values.yaml
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: '{{ .Values.globals.env }}-argo'
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
4
charts/root/values.yaml
Normal file
4
charts/root/values.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
globals:
|
||||||
|
env: prod
|
||||||
|
repo: https://github.com/morten-olsen/homelab-operator.git
|
||||||
|
ref: HEAD
|
||||||
@@ -204,7 +204,11 @@ class Environment extends CustomResource<typeof specSchema> {
|
|||||||
spec: {
|
spec: {
|
||||||
targetNamespace: this.#argoNamespace.name,
|
targetNamespace: this.#argoNamespace.name,
|
||||||
interval: '1h',
|
interval: '1h',
|
||||||
values: {},
|
values: {
|
||||||
|
applicationset: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
chart: {
|
chart: {
|
||||||
spec: {
|
spec: {
|
||||||
chart: 'argo-cd',
|
chart: 'argo-cd',
|
||||||
|
|||||||
Reference in New Issue
Block a user