mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
feat: add foundation
This commit is contained in:
@@ -20,7 +20,7 @@ It sets up:
|
||||
Run the following command to install the chart directly:
|
||||
|
||||
```bash
|
||||
helm upgrade --install argocd-apps ./charts/argocd-apps \
|
||||
helm upgrade --install argocd-apps ./apps/root \
|
||||
--namespace argocd
|
||||
```
|
||||
|
||||
|
||||
6
foundation/root/Chart.yaml
Normal file
6
foundation/root/Chart.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: foundation
|
||||
description: A Helm chart for the foundation of the homelab
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
38
foundation/root/templates/_applicationset.yaml
Normal file
38
foundation/root/templates/_applicationset.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: foundation
|
||||
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 }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: foundation
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
29
foundation/root/templates/cloudnative-pg.yaml
Normal file
29
foundation/root/templates/cloudnative-pg.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cloudnative-pg-operator
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: foundation
|
||||
server: https://kubernetes.default.svc
|
||||
project: foundation
|
||||
source:
|
||||
repoURL: https://cloudnative-pg.github.io/charts
|
||||
targetRevision: 0.26.1
|
||||
chart: cloudnative-pg
|
||||
helm: {}
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- ServerSideApply=true
|
||||
- ApplyOutOfSyncOnly=true
|
||||
- CreateNamespace=true
|
||||
info:
|
||||
- name: "Documentation: "
|
||||
value: "https://cloudnative-pg.io/documentation/current/"
|
||||
15
foundation/root/templates/project.yaml
Normal file
15
foundation/root/templates/project.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: "{{ .Values.project }}"
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: "Project for homelab apps"
|
||||
sourceRepos:
|
||||
- "*"
|
||||
destinations:
|
||||
- namespace: foundation
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
7
foundation/root/values.yaml
Normal file
7
foundation/root/values.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
repoURL: "https://github.com/morten-olsen/homelab-apps"
|
||||
targetRevision: "main"
|
||||
path: "foundation/charts"
|
||||
exclude: "*.disabled"
|
||||
project: "foundation"
|
||||
globals:
|
||||
timezone: Europe/Amsterdam
|
||||
Reference in New Issue
Block a user