From 4adfdef8cefbbd669a0030568a364ff968941d08 Mon Sep 17 00:00:00 2001 From: Radim Hrazdil Date: Thu, 10 Sep 2020 17:02:03 +0200 Subject: [PATCH] Fix container command quotes in macvtap.yaml.in Use double quotes instead of single quotes in: command: ['cp', '/macvtap-cni', '/host/opt/cni/bin/macvtap'] because we are using single quotes around template variables and having single quotes in the above command list blocks us from using simple sed to remove all single quotes in the entire yaml template. Signed-off-by: Radim Hrazdil --- templates/macvtap.yaml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/macvtap.yaml.in b/templates/macvtap.yaml.in index 0caeda29..0b0734a3 100644 --- a/templates/macvtap.yaml.in +++ b/templates/macvtap.yaml.in @@ -16,7 +16,7 @@ spec: hostPID: true containers: - name: macvtap-cni - command: [ "/macvtap-deviceplugin", "-v", "3", "-logtostderr"] + command: ["/macvtap-deviceplugin", "-v", "3", "-logtostderr"] envFrom: - configMapRef: name: macvtap-deviceplugin-config @@ -33,7 +33,7 @@ spec: mountPath: /var/lib/kubelet/device-plugins initContainers: - name: install-cni - command: ['cp', '/macvtap-cni', '/host/opt/cni/bin/macvtap'] + command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"] image: '{{ .MacvtapImage }}' imagePullPolicy: '{{ .ImagePullPolicy }}' securityContext: