Skip to content

Commit

Permalink
chore(service/name): Refactored to remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef committed Nov 30, 2023
1 parent d8ba2eb commit 6e480ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/applicationset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.2"
version: &version "0.12.3"
appVersion: *version
kubeVersion: ">= 1.23"
home: https://github.com/saidsef/argocd-applicationsets-services
Expand All @@ -24,7 +24,7 @@ annotations:
artifacthub.io/license: "Apache-2.0"
artifacthub.io/changes: |
- kind: changed
description: Truncate application name to 40 chars and trim suffix
description: Refactored to remove redundant code
artifacthub.io/links: |
- name: README
url: https://raw.githubusercontent.com/saidsef/argocd-applicationsets-services/main/README.md
Expand Down
2 changes: 1 addition & 1 deletion charts/applicationset/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# argocd-applicationsets-services

![Version: 0.12.2](https://img.shields.io/badge/Version-0.12.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.2](https://img.shields.io/badge/AppVersion-0.12.2-informational?style=flat-square)
![Version: 0.12.3](https://img.shields.io/badge/Version-0.12.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.12.3](https://img.shields.io/badge/AppVersion-0.12.3-informational?style=flat-square)

A Helm chart for ArgoCD ApplicationSets, a declarative, GitOps continuous delivery tool for Kubernetes

Expand Down
3 changes: 1 addition & 2 deletions charts/applicationset/templates/github-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ spec:
requeueAfterSeconds: {{ $refresh | default 500 }}
template:
metadata:
{{- $localName := printf "pr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name }}
name: {{ trunc 45 $localName | trimSuffix "-" }}
name: {{ printf "pr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name | trunc 50 | trimSuffix "-" }}
labels:
app.kubernetes.io/name: {{ $repo.name }}
app.kubernetes.io/branch: {{ trunc 63 $branch | trimSuffix "-" }}
Expand Down
3 changes: 1 addition & 2 deletions charts/applicationset/templates/gitlab-mr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ spec:
requeueAfterSeconds: {{ $refresh | default 500 }}
template:
metadata:
{{- $localName := printf "mr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name }}
name: {{ trunc 45 $localName | trimSuffix "-" }}
name: {{ printf "mr-%sbranch_slug%s-%snumber%s-%s" $dqf $dqb $dqf $dqb $name | trunc 50 | trimSuffix "-" }}
labels:
app.kubernetes.io/name: {{ $repo.name }}
app.kubernetes.io/branch: {{ trunc 63 $branch | trimSuffix "-" }}
Expand Down

0 comments on commit 6e480ac

Please sign in to comment.