Skip to content

Commit 628d902

Browse files
committed
fix lint
1 parent ccf9b5d commit 628d902

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

charts/platform/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ release: {{ .Release.Name | quote }}
7575
{{- define "platform.argocd.application" -}}
7676
{{- $root := .root -}}
7777
{{- $clusterName := include "platform.clusterName" $root -}}
78-
{{- $namePrefix := printf "%s--" $clusterName -}}
78+
{{- $namePrefix := ternary "" (printf "%s--" $clusterName) (empty $clusterName) -}}
7979
{{- $nameWithPrefix := printf "%s%s" $namePrefix .name -}}
8080
{{- $name := ternary .name $nameWithPrefix (hasPrefix $namePrefix .name) -}}
8181
{{- $project := default "default" $root.Values.argocd.project -}}

charts/platform/values.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ imagePullSecrets: []
3434

3535
argocd:
3636
project: default
37-
# destination:
38-
# name:
39-
# namespace:
37+
destination: {}
4038
syncPolicy:
4139
automated:
4240
enabled: true

0 commit comments

Comments
 (0)