Skip to content

Commit

Permalink
Replace dots with "-" in K8s SUC Plan naming (#59)
Browse files Browse the repository at this point in the history
Replace '.' with '-'
  • Loading branch information
ipetrov117 authored Aug 26, 2024
1 parent 3e14ffd commit 384e32d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/upgrade/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const (
)

func kubernetesPlanName(typeKey, version string) string {
return fmt.Sprintf("%s-%s", typeKey, strings.ReplaceAll(version, "+", "-"))
versionReplacer := strings.NewReplacer(".", "-", "+", "-")
return fmt.Sprintf("%s-%s", typeKey, versionReplacer.Replace(version))
}

func kubernetesUpgradeImage(version string) string {
Expand Down

0 comments on commit 384e32d

Please sign in to comment.