mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +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:
parent
14ab512588
commit
3468e65387
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue