1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

test/e2e: revise usage of nfd command line flags

Use the "single-dash" notation of flags and replace deprecated -sources
with -label-sources.
This commit is contained in:
Markus Lehtonen 2021-12-03 10:18:57 +02:00
parent 14ab512588
commit 3468e65387

View file

@ -311,7 +311,7 @@ func nfdWorkerPodSpec(image string, extraArgs []string) v1.PodSpec {
Image: image,
ImagePullPolicy: v1.PullAlways,
Command: []string{"nfd-worker"},
Args: append([]string{"--server=nfd-master-e2e:8080"}, extraArgs...),
Args: append([]string{"-server=nfd-master-e2e:8080"}, extraArgs...),
Env: []v1.EnvVar{
{
Name: "NODE_NAME",
@ -510,7 +510,7 @@ var _ = SIGDescribe("Node Feature Discovery", func() {
// Launch nfd-worker
By("Creating a nfd worker pod")
image := fmt.Sprintf("%s:%s", *dockerRepo, *dockerTag)
workerPod := nfdWorkerPod(image, []string{"--oneshot", "--sources=fake"})
workerPod := nfdWorkerPod(image, []string{"-oneshot", "-label-sources=fake"})
workerPod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(context.TODO(), workerPod, metav1.CreateOptions{})
Expect(err).NotTo(HaveOccurred())