Skip to content

Commit

Permalink
optimize the autopool name length to 253
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus9913 <[email protected]>
  • Loading branch information
Icarus9913 committed Aug 9, 2023
1 parent 71c15e0 commit 7de69b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/applicationcontroller/applicationinformers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
apitypes "k8s.io/apimachinery/pkg/types"
k8svalidation "k8s.io/apimachinery/pkg/util/validation"
"k8s.io/client-go/dynamic"
"k8s.io/utils/pointer"
"k8s.io/utils/strings/slices"
Expand All @@ -41,7 +42,7 @@ var errInvalidInput = func(str string) error {
}

const (
maxNameLength = 63
maxNameLength = k8svalidation.DNS1123SubdomainMaxLength
randomLength = 5
)

Expand Down

0 comments on commit 7de69b1

Please sign in to comment.