Skip to content

Commit

Permalink
feat: ✨ calculate app name from repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulaude committed Jul 11, 2024
1 parent 80e07ff commit d667e8b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/dso-env/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: dso-env
description: Creates argocd Project and Applications to deploy DSO project repositories.
type: application
version: 1.2.0
version: 1.2.1
appVersion: 1.0.0
maintainers:
- name: this-is-tobi
Expand Down
4 changes: 2 additions & 2 deletions charts/dso-env/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dso-env

![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)
![Version: 1.2.1](https://img.shields.io/badge/Version-1.2.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)

Creates argocd Project and Applications to deploy DSO project repositories.

Expand All @@ -16,7 +16,7 @@ Creates argocd Project and Applications to deploy DSO project repositories.
|-----|------|---------|-------------|
| application.destination.name | string | `"dest"` | Nom du cluster applicatif cible |
| application.destination.namespace | string | `"app1"` | Nom du namespace applicatif cible |
| 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.repositories | list | `[{"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 |
Expand Down
2 changes: 1 addition & 1 deletion charts/dso-env/templates/application-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ $.Values.argocd.project }}-app-{{ .name }}
name: {{ $.Values.argocd.project }}-{{ base .repoURL | trimSuffix ".git" }}
namespace: {{ $.Values.argocd.namespace }}
labels:
app.kubernetes.io/managed-by: dso-console
Expand Down
3 changes: 1 addition & 2 deletions charts/dso-env/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ application:
namespace: app1
# -- Liste des dépôts à déployer
repositories:
- name: quota-explorer
repoURL: https://gitlab.com/projects/org/demo/quota-explorer.git
- repoURL: https://gitlab.com/projects/org/demo/quota-explorer.git
targetRevision: main
path: '.'

0 comments on commit d667e8b

Please sign in to comment.