Skip to content

Commit

Permalink
separated url parser to its own function, created unit test for the f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
Edwinhr716 committed Mar 13, 2024
1 parent 5345def commit f8b4727
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cluster-autoscaler/cloudprovider/gce/gce_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func GenerateMigUrl(domainUrl string, ref GceRef) string {
return fmt.Sprintf(migUrlTemplate, ref.Project, ref.Zone, ref.Name)
}

// IsInstanceTemplateRegional verifies if the instance template is regional or global
func IsInstanceTemplateRegional(templateUrl string) (bool, error) {
return regexp.MatchString("(/projects/.*[A-Za-z0-9]+.*/regions/)", templateUrl)
}
Expand Down

0 comments on commit f8b4727

Please sign in to comment.