From dfae763596b069c22c0a602a8fb947b85cc6d022 Mon Sep 17 00:00:00 2001 From: Said Sef <6002187+saidsef@users.noreply.github.com> Date: Mon, 8 May 2023 12:19:03 +0100 Subject: [PATCH] truncate pallication labale branch to 63 chars (#108) --- charts/applicationset/Chart.yaml | 4 ++-- charts/applicationset/README.md | 2 +- charts/applicationset/templates/github-pr.yml | 2 +- charts/applicationset/templates/gitlab-mr.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/applicationset/Chart.yaml b/charts/applicationset/Chart.yaml index 085eef0..00b33c7 100644 --- a/charts/applicationset/Chart.yaml +++ b/charts/applicationset/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: argocd-applicationsets-services description: A HELM Chart for ArgoCD ApplicationSets for Kubernetes type: application -version: &version "0.11.0" +version: &version "0.11.1" appVersion: *version kubeVersion: ">= 1.23" home: https://github.com/saidsef/argocd-applicationsets-services @@ -24,7 +24,7 @@ annotations: artifacthub.io/license: "Apache-2.0" artifacthub.io/changes: | - kind: changed - description: truncate application name to 63 chars + description: truncate pallication labale branch to 63 chars artifacthub.io/links: | - name: README url: https://raw.githubusercontent.com/saidsef/argocd-applicationsets-services/main/README.md diff --git a/charts/applicationset/README.md b/charts/applicationset/README.md index 88fb325..899bc8c 100644 --- a/charts/applicationset/README.md +++ b/charts/applicationset/README.md @@ -1,6 +1,6 @@ # argocd-applicationsets-services -![Version: 0.11.0](https://img.shields.io/badge/Version-0.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.0](https://img.shields.io/badge/AppVersion-0.11.0-informational?style=flat-square) +![Version: 0.11.1](https://img.shields.io/badge/Version-0.11.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.1](https://img.shields.io/badge/AppVersion-0.11.1-informational?style=flat-square) A HELM Chart for ArgoCD ApplicationSets for Kubernetes diff --git a/charts/applicationset/templates/github-pr.yml b/charts/applicationset/templates/github-pr.yml index 1b9470d..cf0b2c4 100644 --- a/charts/applicationset/templates/github-pr.yml +++ b/charts/applicationset/templates/github-pr.yml @@ -49,7 +49,7 @@ spec: name: {{ printf "pr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name | trunc 63 | trimSuffix "-" }} labels: app.kubernetes.io/name: {{ $repo.name }} - app.kubernetes.io/branch: {{ $branch }} + app.kubernetes.io/branch: {{ $branch | trunc 63 | trimSuffix "-" }} app.kubernetes.io/created-by: 'applicationset' annotations: argocd-image-updater.argoproj.io/force-update: 'true' diff --git a/charts/applicationset/templates/gitlab-mr.yml b/charts/applicationset/templates/gitlab-mr.yml index cba3ccf..cd27f12 100644 --- a/charts/applicationset/templates/gitlab-mr.yml +++ b/charts/applicationset/templates/gitlab-mr.yml @@ -48,7 +48,7 @@ spec: name: {{ printf "mr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name | trunc 63 | trimSuffix "-" }} labels: app.kubernetes.io/name: {{ $repo.name }} - app.kubernetes.io/branch: {{ $branch }} + app.kubernetes.io/branch: {{ $branch | trunc 63 | trimSuffix "-" }} app.kubernetes.io/created-by: 'applicationset' annotations: argocd-image-updater.argoproj.io/force-update: 'true'