Add application-set

This commit is contained in:
2025-12-28 03:51:35 +01:00
parent 80b59c6b6c
commit dcfd9115c1
11 changed files with 74 additions and 98 deletions

View File

@@ -0,0 +1,36 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: nextcloud-apps
namespace: argocd
spec:
generators:
- git:
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
revision: main
# Il va chercher tous les dossiers dans "nextcloud/"
directories:
- path: nextcloud/*
template:
metadata:
# {{path.basename}} sera remplacé par "dev" ou "prd"
name: 'nextcloud-{{path.basename}}'
spec:
project: '{{path.basename}}'
source:
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
targetRevision: main
path: '{{path}}' # Utilise le chemin du dossier trouvé
helm:
valueFiles:
- values.yaml
destination:
server: https://kubernetes.default.svc
# Déploie dans le namespace "nextcloud-dev" ou "nextcloud-prd"
namespace: 'nextcloud-{{path.basename}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -1,25 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nextcloud-dev
namespace: argocd-namespace
spec:
project: default
sources: # Notez le 's' à sources
- repoURL: https://nextcloud.github.io/helm/
chart: nextcloud
targetRevision: 8.6.1
helm:
# On lie les values du second repo ci-dessous
valueFiles:
- $values/nextcloud/dev/values.yaml
- repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
targetRevision: main
ref: values # On donne un alias à ce repo
destination:
server: https://kubernetes.default.svc
namespace: nextcloud-dev
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@@ -1,25 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nextcloud2-dev
namespace: argocd-namespace
spec:
project: default
sources: # Notez le 's' à sources
- repoURL: https://nextcloud.github.io/helm/
chart: nextcloud
targetRevision: 8.6.1
helm:
# On lie les values du second repo ci-dessous
valueFiles:
- $values/nextcloud/dev/values.yaml
- repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
targetRevision: main
ref: values # On donne un alias à ce repo
destination:
server: https://kubernetes.default.svc
namespace: nextcloud2-dev
syncPolicy:
automated:
prune: true
selfHeal: true

6
nextcloud/dev/Chart.lock Normal file
View File

@@ -0,0 +1,6 @@
dependencies:
- name: nextcloud
repository: https://nextcloud.github.io/helm/
version: 8.7.0
digest: sha256:a6760eb06b4b5afb86459e5d2c9abc394b67bab985d391c1a0a7778b27d937e6
generated: "2025-12-28T03:43:31.0543605+01:00"

11
nextcloud/dev/Chart.yaml Normal file
View File

@@ -0,0 +1,11 @@
apiVersion: v2
name: nextcloud-wrapper
description: Wrapper pour Nextcloud - Environnement DEV
type: application
version: 1.0.0 # Version de votre wrapper (interne)
# appVersion: "27.1.0" # Optionnel : version de Nextcloud installée
dependencies:
- name: nextcloud
version: 8.7.0 # <--- C'est ICI que vous gérez la version du Chart officiel
repository: https://nextcloud.github.io/helm/

Binary file not shown.

View File

@@ -4,10 +4,10 @@ ingress:
enabled: true
nextcloud:
host: nextcloud.example.com
host: nextcloud-dev.example.com
username: admin
password: test
password: dev
persistence:
enabled: true
size: 6Gi
size: 1Gi

6
nextcloud/prd/Chart.lock Normal file
View File

@@ -0,0 +1,6 @@
dependencies:
- name: nextcloud
repository: https://nextcloud.github.io/helm/
version: 8.6.1
digest: sha256:9acd32eca4eccad630cadd46cce6f75fd8e1b663a6325ed703dc24064dace96f
generated: "2025-12-28T03:44:00.3388376+01:00"

View File

@@ -1,10 +1,11 @@
apiVersion: v2
name: nextcloud-wrapper
description: Wrapper Helm Nextcloud pour Argo CD
description: Wrapper pour Nextcloud - Environnement PRD
type: application
version: 0.1.1
version: 1.0.0 # Version de votre wrapper (interne)
# appVersion: "27.1.0" # Optionnel : version de Nextcloud installée
dependencies:
- name: nextcloud
version: 8.7.0
version: 8.6.1 # <--- C'est ICI que vous gérez la version du Chart officiel
repository: https://nextcloud.github.io/helm/

Binary file not shown.

View File

@@ -1,47 +1,13 @@
replicaCount: 1
replicaCount: 2
ingress:
enabled: true
nextcloud:
host: nextcloud.example.com
# existingSecret:
# enabled: true
# secretName: "nextcloud-db-credentials"
# usernameKey: "nextcloud-username"
# passwordKey: "nextcloud-password"
host: nextcloud-prd.example.com
username: admin
password: prd
# externalDatabase:
# enabled: true
# type: mysql
# user: nextcloud
# existingSecret:
# enabled: true
# secretName: "nextcloud-db-credentials"
# usernameKey: mariadb-username
# passwordKey: mariadb-password
# databaseKey: mariadb-database
# mariadb:
# enabled: true
# auth:
# database: nextcloud-db-name
# username: nextcloud-db-name
# existingSecret: "nextcloud-db-credentials"
# passwordKey: "mariadb-password"
# rootPasswordKey: "mariadb-root-password"
# rbac:
# enabled: true
# serviceaccount:
# create: true
# name: nextcloud-sa
# annotations: {}
# internalDatabase:
# enabled: false
primary:
persistence:
enabled: true
size: 2Gi