mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 14:32:17 -04:00
Let operator manage autoscaling of node groups
This commit is contained in:
parent
67d9be38d7
commit
e301f575df
18 changed files with 499 additions and 42 deletions
|
@ -40,3 +40,12 @@ func uriNormalize(imageURI string) string {
|
|||
}
|
||||
return matches[1]
|
||||
}
|
||||
|
||||
// ensureURIPrefixed ensures that a compute API URI is prefixed with the optional URI prefix.
|
||||
func ensureURIPrefixed(uri string) string {
|
||||
matches := computeAPIBase.FindStringSubmatch(uri)
|
||||
if len(matches) == 2 {
|
||||
return uri
|
||||
}
|
||||
return "https://www.googleapis.com/compute/v1/" + uri
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue