We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcde38c commit 53872cfCopy full SHA for 53872cf
internal/framework/controller/resource.go
@@ -17,7 +17,12 @@ func CreateNginxResourceName(prefix, suffix string) string {
17
// CreateInferencePoolServiceName creates the name for a headless Service that
18
// we create for an InferencePool.
19
func CreateInferencePoolServiceName(name string) string {
20
- return fmt.Sprintf("%s%s", name, inferencePoolServiceSuffix)
+ svcName := fmt.Sprintf("%s%s", name, inferencePoolServiceSuffix)
21
+ // if InferencePool name is already at or near max length, just use that name
22
+ if len(svcName) > 253 {
23
+ return name
24
+ }
25
+ return svcName
26
}
27
28
// GetInferencePoolName returns the name of the InferencePool for a given headless Service name.
0 commit comments