Skip to content

Commit 5b862d0

Browse files
Romain JACQUETrjacquet31
authored andcommitted
fix: broken backup job, the resource cannot be created
split the hostname to keep only the first part
1 parent ae978d0 commit 5b862d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

charts/kargo/templates/_db-backup.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ The restore cronjob is suspended to be started manually.
343343
{{- define "kargo.mongodb-backup-restore-cronjobs" -}}
344344
{{- $remotePath := include "kargo.tplvalues.render" (dict "value" .args.remotePath "context" .context) }}
345345
{{- $rcloneSecret := include "kargo.tplvalues.render" (dict "value" .args.rcloneSecret "context" .context) }}
346-
{{- $name := print .args.host (.args.nameSuffix | default "") }}
346+
{{- $name := print (splitList "." .args.host| first ) (.args.nameSuffix | default "") }}
347347
{{- $dbSecret := print "backup-restore-" $name }}
348348
{{- $restoreFile := print $name "-" .args.restoreTimestamp ".gz" }}
349349
apiVersion: v1

0 commit comments

Comments
 (0)