e2e: redeployvm use deterministic suffix for uptime pod name

This commit is contained in:
Tanmay Satam 2022-12-19 15:46:11 -05:00
Родитель 306bcd0f91
Коммит c4ed4a2090
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -18,7 +18,6 @@ import (
mgmtcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilrand "k8s.io/apimachinery/pkg/util/rand"
"github.com/Azure/ARO-RP/pkg/util/ready"
"github.com/Azure/ARO-RP/pkg/util/stringutils"
@ -82,7 +81,7 @@ var _ = Describe("[Admin API] VM redeploy action", func() {
func getNodeUptime(g Gomega, ctx context.Context, node string) (time.Time, error) {
// container kernel = node kernel = `uptime` in a Pod reflects the Node as well
namespace := "default"
name := fmt.Sprintf("%s-uptime-%s", node, utilrand.String(5))
name := fmt.Sprintf("%s-uptime-%d", node, GinkgoParallelProcess())
pod := &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: name,