Skip to content

Commit 8e967b6

Browse files
committed
feat: 📝 add an Application label to enhance filtering
1 parent 66e1f99 commit 8e967b6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

charts/dso-env/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: dso-env
33
description: Creates argocd Project and Applications to deploy DSO project repositories.
44
type: application
5-
version: 1.5.2
5+
version: 1.5.3
66
appVersion: 1.0.0
77
maintainers:
88
- name: this-is-tobi

charts/dso-env/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dso-env
22

3-
![Version: 1.5.2](https://img.shields.io/badge/Version-1.5.2-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)
3+
![Version: 1.5.3](https://img.shields.io/badge/Version-1.5.3-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)
44

55
Creates argocd Project and Applications to deploy DSO project repositories.
66

charts/dso-env/templates/application-app.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{{- range .Values.application.repositories }}
2+
{{- $repositoryName := base .repoURL | trimSuffix ".git" }}
23
---
34
apiVersion: argoproj.io/v1alpha1
45
kind: Application
56
metadata:
6-
name: {{ $.Values.argocd.project }}-{{ base .repoURL | trimSuffix ".git" }}-{{ sha1sum .repoURL | trunc 4 }}
7+
name: {{ $.Values.argocd.project }}-{{ $repositoryName }}-{{ sha1sum .repoURL | trunc 4 }}
78
namespace: {{ $.Values.argocd.namespace }}
89
labels:
910
app.kubernetes.io/managed-by: dso-console
1011
{{- $.Values.common | toYaml | nindent 4 }}
12+
dso/repository: {{ $repositoryName }}
1113
annotations:
1214
argocd.argoproj.io/sync-wave: "4" # Force la suppression avant le AppProject
1315
finalizers:

0 commit comments

Comments
 (0)