From f99ea13dc7cf14b0de5d4f2c1f29748d7e1a39e6 Mon Sep 17 00:00:00 2001 From: Said Sef Date: Thu, 30 Nov 2023 09:28:46 +0000 Subject: [PATCH] chore(app/name): truncate application name to 45 chars --- charts/applicationset/Chart.yaml | 6 +++--- charts/applicationset/README.md | 4 ++-- charts/applicationset/templates/github-pr.yml | 2 +- charts/applicationset/templates/gitlab-mr.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/applicationset/Chart.yaml b/charts/applicationset/Chart.yaml index ba64fcb..6393ab3 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, a declarative, GitOps continuous delivery tool for Kubernetes type: application -version: &version "0.12.0" +version: &version "0.12.1" appVersion: *version kubeVersion: ">= 1.23" home: https://github.com/saidsef/argocd-applicationsets-services @@ -23,8 +23,8 @@ sources: annotations: artifacthub.io/license: "Apache-2.0" artifacthub.io/changes: | - - kind: added - description: Enabled ability to set all on server field use cluster generators + - kind: changed + description: Truncate application name to 50 chars and trim suffix 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 0a6d391..d8b9275 100644 --- a/charts/applicationset/README.md +++ b/charts/applicationset/README.md @@ -1,6 +1,6 @@ # argocd-applicationsets-services -![Version: 0.12.0](https://img.shields.io/badge/Version-0.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.0](https://img.shields.io/badge/AppVersion-0.12.0-informational?style=flat-square) +![Version: 0.12.1](https://img.shields.io/badge/Version-0.12.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.1](https://img.shields.io/badge/AppVersion-0.12.1-informational?style=flat-square) A Helm chart for ArgoCD ApplicationSets, a declarative, GitOps continuous delivery tool for Kubernetes @@ -43,4 +43,4 @@ Kubernetes: `>= 1.23` | repos | object | `{"github":[{"images":["docker.io/saidsef/node-webserver:{{branch}}"],"name":"node-webserver"},{"name":"alpine-jenkins-dockerfile","path":"deployment/preview"},{"images":["docker.io/saidsef/aws-kinesis-local:{{branch}}"],"name":"aws-kinesis-local"},{"images":["docker.io/saidsef/aws-dynamodb-local:{{branch}}"],"name":"aws-dynamodb-local"},{"name":"tika-document-to-text","path":"deployment/preview"},{"images":["docker.io/saidsef/k8s-spot-termination-notice:merge"],"name":"k8s-spot-termination-notice"},{"name":"scapy-containerised","path":"charts/scapy","values":{"image":{"tag":"{{branch}}"}}},{"chart":"reverse-geocoding","name":"faas-reverse-geocoding","parameters":[{"name":"image.tag","value":"{{branch}}"},{"name":"ingress.enabled","value":"true"},{"name":"ingress.enabled","value":"true"},{"name":"ingress.hosts[0].host","value":"{{branch}}"}],"repoUrl":"https://saidsef.github.io/faas-reverse-geocoding"}],"gitlab":{}}` | List of repo names and override images for preview environment to dynamically pass the branch of the pull request head use '{{branch}}' variable see: https://argocd-applicationset.readthedocs.io/en/stable/Generators-Pull-Request/#template | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) +Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3) diff --git a/charts/applicationset/templates/github-pr.yml b/charts/applicationset/templates/github-pr.yml index e41ce73..8b6c713 100644 --- a/charts/applicationset/templates/github-pr.yml +++ b/charts/applicationset/templates/github-pr.yml @@ -19,7 +19,7 @@ apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: - name: '{{ required "A valid repo name is required" $repo.name }}-github-{{ $name }}' + name: '{{ required "A valid repo name is required" $repo.name | trunc 45 | trimSuffix "-" }}-github-{{ $name }}' namespace: {{ required "A valied namespace is required" $namespace | replace "." "-" }} labels: app.kubernetes.io/name: {{ $repo.name }} diff --git a/charts/applicationset/templates/gitlab-mr.yml b/charts/applicationset/templates/gitlab-mr.yml index 52b4145..292bdd9 100644 --- a/charts/applicationset/templates/gitlab-mr.yml +++ b/charts/applicationset/templates/gitlab-mr.yml @@ -18,7 +18,7 @@ apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: - name: '{{ required "A valid repo name is required" $repo.name }}-gitlab-{{ $name }}' + name: '{{ required "A valid repo name is required" $repo.name | trunc 45 | trimSuffix "-" }}-gitlab-{{ $name }}' namespace: {{ required "A valied namespace is required" $namespace | replace "." "-" }} labels: app.kubernetes.io/name: {{ $repo.name }}