mirror of https://github.com/kubernetes/kops.git
limit jobname value to 80
This commit is contained in:
parent
e880d5eba4
commit
f76852048e
|
|
@ -274,6 +274,9 @@ func defaultClusterName(cloudProvider string) (string, error) {
|
|||
suffix = "k8s.local"
|
||||
}
|
||||
|
||||
if len(jobName) > 79 { // SNS has char limit of 80
|
||||
jobName = jobName[:79]
|
||||
}
|
||||
if jobType == "presubmit" {
|
||||
return fmt.Sprintf("e2e-pr%s.%s.%s", pullNumber, jobName, suffix), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue