- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MaxGeneratedNameLength (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/names/generate.go
maxNameLength = 63 randomLength = 5 MaxGeneratedNameLength = maxNameLength - randomLength ) func (simpleNameGenerator) GenerateName(base string) string { if len(base) > MaxGeneratedNameLength { base = base[:MaxGeneratedNameLength] } return fmt.Sprintf("%s%s", base, utilrand.String(randomLength))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 07:03:14 UTC 2022 - 1.9K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils.go
appendIndex := "-" + strconv.Itoa(index) + "-" generateNamePrefix := jobName + appendIndex if len(generateNamePrefix) > names.MaxGeneratedNameLength { generateNamePrefix = generateNamePrefix[:names.MaxGeneratedNameLength-len(appendIndex)] + appendIndex } return generateNamePrefix } type byCompletionIndex []*v1.Pod func (bci byCompletionIndex) Less(i, j int) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 00:44:53 UTC 2023 - 17.5K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
index: 1, wantPodGenerateName: "hhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhh-1-", }, "job name with index suffix exceeds MaxGeneratedNameLength": { jobname: "hhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhhoo", index: 1, wantPodGenerateName: "hhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhhooooohhhhh-1-", }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0)