diff --git a/apps/applicationset-headlamp.yaml b/apps/applicationset-headlamp.yaml new file mode 100644 index 0000000..4991893 --- /dev/null +++ b/apps/applicationset-headlamp.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: nextcloud-apps + namespace: argocd-namespace +spec: + generators: + - git: + repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git + revision: main + files: + - path: "nextcloud/*/config.json" # Il lit le fichier de config + 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: '{{server}}' # Il utilise la variable définie dans config.json + namespace: 'nextcloud-{{path.basename}}' + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true \ No newline at end of file diff --git a/headlamp/dev/Chart.lock b/headlamp/dev/Chart.lock new file mode 100644 index 0000000..bfbaf40 --- /dev/null +++ b/headlamp/dev/Chart.lock @@ -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" diff --git a/headlamp/dev/Chart.yaml b/headlamp/dev/Chart.yaml new file mode 100644 index 0000000..cdc5b31 --- /dev/null +++ b/headlamp/dev/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: headlamp-wrapper +description: Wrapper pour headlamp - Environnement DEV +type: application +version: 1.0.0 + +dependencies: + - name: headlamp + version: 0.27.0 # Assurez-vous que cette version correspond à celle poussée sur Harbor + # Utilisation de votre registre Harbor interne (OCI) + repository: "oci://harbor.example.com/charts" \ No newline at end of file diff --git a/headlamp/dev/charts/nextcloud-8.7.0.tgz b/headlamp/dev/charts/nextcloud-8.7.0.tgz new file mode 100644 index 0000000..020cd0f Binary files /dev/null and b/headlamp/dev/charts/nextcloud-8.7.0.tgz differ diff --git a/headlamp/dev/config.json b/headlamp/dev/config.json new file mode 100644 index 0000000..e625fef --- /dev/null +++ b/headlamp/dev/config.json @@ -0,0 +1 @@ +{"server": "https://kubernetes.default.svc"} \ No newline at end of file diff --git a/headlamp/dev/values.yaml b/headlamp/dev/values.yaml new file mode 100644 index 0000000..f342024 --- /dev/null +++ b/headlamp/dev/values.yaml @@ -0,0 +1,16 @@ +# Toutes les configurations destinées au chart Nextcloud +# doivent être indentées sous la clé 'nextcloud' +replicaCount: 1 + +image: + # On remplace ghcr.io par votre Harbor + registry: harbor.example.com + # On remplace le chemin d'origine par votre projet 'images' + repository: images/headlamp + # On précise le tag que vous avez poussé avec le script + tag: "v0.39.0" + pullPolicy: IfNotPresent + + # Si votre projet Harbor 'images' est en PRIVÉ, + # vous devrez créer un secret Kubernetes et le renseigner ici : + imagePullSecrets: [] \ No newline at end of file