MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-run-button / tryFixServiceName

Function tryFixServiceName

cmd/cloudshell_open/cloudrun.go:121–149  ·  view source on GitHub ↗

tryFixServiceName attempts replace the service name with a better one to prevent deployment failures due to Cloud Run service naming constraints such as: - names with a leading non-letter (e.g. digit or '-') are prefixed - names over 63 characters are truncated - names ending with a '-' have the su

(name string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

runFunction · 0.85
Test_tryFixServiceNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_tryFixServiceNameFunction · 0.68