Skip to content

Commit c0a89a2

Browse files
committed
Reduce max API name length to 42
1 parent 09cb875 commit c0a89a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/operator/operator/validations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var _apiValidation = &cr.StructValidation{
4444
StringValidation: &cr.StringValidation{
4545
Required: true,
4646
DNS1035: true,
47-
MaxLength: 63 - len(k8sName("")),
47+
MaxLength: 42, // k8s adds 21 characters to the pod name, and 63 is the max before it starts to truncate
4848
},
4949
},
5050
{

0 commit comments

Comments
 (0)