mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-30 11:46:16 +00:00
Change the CreateFileToPod function's OS parameter as the E2E pass-in value.
Fix GetResourceWithLabel's bug: labels were not applied. Add workOS for deployment and pod creationg. Add OS label for select node. Enlarge the context timeout to 10 minutes. 5 min is not enough for Windows. Enlarge the Kibishii test context to 15 minutes for Windows. Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
@@ -72,10 +72,13 @@ func GetListByCmdPipes(ctx context.Context, cmdLines []*OsCommandLine) ([]string
|
||||
|
||||
func GetResourceWithLabel(ctx context.Context, namespace, resourceName string, labels map[string]string) ([]string, error) {
|
||||
labelStr := ""
|
||||
parts := make([]string, 0, len(labels))
|
||||
|
||||
for key, value := range labels {
|
||||
strings.Join([]string{labelStr, key + "=" + value}, ",")
|
||||
parts = append(parts, key+"="+value)
|
||||
}
|
||||
labelStr = strings.Join(parts, ",")
|
||||
|
||||
cmds := []*OsCommandLine{}
|
||||
cmd := &OsCommandLine{
|
||||
|
||||
Reference in New Issue
Block a user