mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add shared resources
This commit is contained in:
6
shared/root/Chart.yaml
Normal file
6
shared/root/Chart.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: shared
|
||||
description: A Helm chart for the shared resources of the homelab
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
39
shared/root/templates/applicationset.yaml
Normal file
39
shared/root/templates/applicationset.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: shared
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: {{ .Values.repoURL }}
|
||||
revision: {{ .Values.targetRevision }}
|
||||
directories:
|
||||
- path: {{ .Values.path }}/*
|
||||
- path: {{ .Values.path }}/*{{ .Values.exclude }}
|
||||
exclude: true
|
||||
template:
|
||||
metadata:
|
||||
name: '{{`{{path.basename}}`}}'
|
||||
spec:
|
||||
project: {{ .Values.project }}
|
||||
source:
|
||||
repoURL: {{ .Values.repoURL }}
|
||||
targetRevision: {{ .Values.targetRevision }}
|
||||
path: '{{`{{path}}`}}'
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
values: |
|
||||
globals:
|
||||
timezone: {{ .Values.globals.timezone }}
|
||||
storageClass: {{ .Values.globals.storageClass }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{ .Values.project }}"
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
17
shared/root/templates/project.yaml
Normal file
17
shared/root/templates/project.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: "{{ .Values.project }}"
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: "Project for homelab apps"
|
||||
sourceRepos:
|
||||
- "*"
|
||||
destinations:
|
||||
- namespace: "{{ .Values.project }}"
|
||||
server: https://kubernetes.default.svc
|
||||
- namespace: argocd
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
8
shared/root/values.yaml
Normal file
8
shared/root/values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
repoURL: "https://github.com/morten-olsen/homelab-apps"
|
||||
targetRevision: "main"
|
||||
path: "shared/charts"
|
||||
exclude: "*.disabled"
|
||||
project: "shared"
|
||||
globals:
|
||||
timezone: Europe/Amsterdam
|
||||
storageClass: prod
|
||||
Reference in New Issue
Block a user