Limit GCP subnet secondary alias names to 63 chars

This commit is contained in:
Peter Rifel 2024-09-04 21:14:12 -05:00
parent 801abbc9c8
commit d47c0d0e66
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func (c *GCEModelContext) NameForIPAliasRange(key string) string {
// but there's a 5 IP alias range limit per subnet anwyay, so
// this is rather pointless and in practice we just use a
// separate subnet per cluster
return c.SafeObjectName(key)
return c.SafeSuffixedObjectName(key)
}
// LinkToSubnet returns a link to the GCE subnet object