Skip to content

Commit

Permalink
Merge pull request spidernet-io#2177 from Icarus9913/fix/wk/autopool-…
Browse files Browse the repository at this point in the history
…name-len

optimize the autopool name length to 253
  • Loading branch information
weizhoublue authored Aug 10, 2023
2 parents 3b3ebc4 + 7de69b1 commit e092177
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 e092177

Please sign in to comment.