fix zero-padded cache pvc namespace suffix
Some checks failed
Run the E2E test on kind / get-go-version (push) Failing after 1m7s
Run the E2E test on kind / build (push) Has been skipped
Run the E2E test on kind / setup-test-matrix (push) Successful in 6s
Run the E2E test on kind / run-e2e-test (push) Has been skipped

Agent-Logs-Url: https://github.com/velero-io/velero/sessions/7f0d29fc-2b25-469f-abfa-8cef55e1a3a1

Co-authored-by: blackpiglet <59276555+blackpiglet@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-09 07:27:08 +00:00
committed by GitHub
parent c45ec750e1
commit add0e5e290

View File

@@ -57,7 +57,7 @@ func (c *CachePVCTestCase) Init() error {
c.NamespacesTotal = 1
c.NSIncluded = &[]string{}
for nsNum := 0; nsNum < c.NamespacesTotal; nsNum++ {
createNSName := fmt.Sprintf("%s-%00000d", c.CaseBaseName, nsNum)
createNSName := fmt.Sprintf("%s-%05d", c.CaseBaseName, nsNum)
*c.NSIncluded = append(*c.NSIncluded, createNSName)
}