-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🧵 split argo applications: one per repo
- Loading branch information
1 parent
815246c
commit ea87d14
Showing
11 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Helm chart automated files | ||
/charts/*/charts | ||
/charts/*/Chart.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,9 @@ apiVersion: v2 | |
name: dso-env | ||
description: Creates argocd Project and Applications to deploy DSO project repositories. | ||
type: application | ||
version: 1.1.1 | ||
version: 1.2.0 | ||
appVersion: 1.0.0 | ||
maintainers: | ||
- name: this-is-tobi | ||
email: [email protected] | ||
url: https://this-is-tobi.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
# dso-env | ||
|
||
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) | ||
![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) | ||
|
||
Creates argocd Project and Applications to deploy DSO project repositories. | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| this-is-tobi | <[email protected]> | <https://this-is-tobi.com> | | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| application.destination.name | string | `""` | Nom du cluster applicatif cible | | ||
| application.destination.name | string | `"dest"` | Nom du cluster applicatif cible | | ||
| application.destination.namespace | string | `"app1"` | Nom du namespace applicatif cible | | ||
| application.repositories | list | `[{"path":".","repoURL":"https://gitlab.com/projects/org/demo/quota-explorer.git","targetRevision":"main"}]` | Liste des dépôts à déployer | | ||
| application.repositories | list | `[{"name":"quota-explorer","path":".","repoURL":"https://gitlab.com/projects/org/demo/quota-explorer.git","targetRevision":"main"}]` | Liste des dépôts à déployer | | ||
| application.sourceReposPrefix | string | `"https://gitlab.com/projects/org/demo"` | Préfixe des dépôts autorisés | | ||
| argocd.namespace | string | `"argocd"` | Namespace de création des objets ArgoCD | | ||
| argocd.nsChartVersion | string | `"1.0.0"` | Version du Chart dso-ns à utiliser | | ||
| argocd.project | string | `"project1"` | Préfixe des projets ArgoCD à créer | | ||
| commonLabels | object | `{}` | Labels appliqués sur les différents objets | | ||
| commonLabels | string | `""` | Labels appliqués sur les différents objets | | ||
| environment.roGroup | string | `"/project/environment/RO"` | Nom du groupe à autoriser en lecture seule sur les objets applicatifs (-app) déployés par ArgoCD | | ||
| environment.rwGroup | string | `"/project/environment/RW"` | Nom du groupe à autoriser en lecture/écriture sur les objets applicatifs (-app) déployés par ArgoCD | | ||
| environment.valueFilePath | string | `"values.yaml"` | Chemin du fichier à utiliser lors de la récupération des values | | ||
| environment.valueFileRepository | string | `"https://gitlab.com/projects/Infra/org/demo/infra.git"` | URL du repo avec le fichier values à utiliser pour cet environnement | | ||
| environment.valueFileRevision | string | `"HEAD"` | Revision Git à utiliser lors de la récupération des values | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) | ||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
{{- range .Values.application.repositories }} | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: {{ .Values.argocd.project }}-app | ||
namespace: {{ .Values.argocd.namespace }} | ||
name: {{ $.Values.argocd.project }}-app-{{ .name }} | ||
namespace: {{ $.Values.argocd.namespace }} | ||
labels: | ||
app.kubernetes.io/managed-by: dso-console | ||
{{- .Values.commonLabels | toYaml | nindent 4 }} | ||
{{- if $.Values.commonLabels -}} | ||
{{- $.Values.commonLabels | toYaml | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
project: {{ .Values.argocd.project }}-app | ||
sources: {{ .Values.application.repositories | toYaml | nindent 4 }} | ||
project: {{ $.Values.argocd.project }}-app | ||
source: | ||
repoURL: {{ .repoURL }} | ||
targetRevision: {{ .targetRevision }} | ||
path: {{ .path }} | ||
destination: | ||
name: {{ .Values.application.destination.name }} | ||
namespace: {{ .Values.application.destination.namespace }} | ||
name: {{ $.Values.application.destination.name }} | ||
namespace: {{ $.Values.application.destination.namespace }} | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
allowEmpty: true | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v2 | ||
name: dso-ns | ||
description: A Helm chart to create all the necessary resources for deploying applications by the DSO console (namespace, secrets, quota, ...). | ||
version: 1.0.0 | ||
version: 1.0.1 | ||
appVersion: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters