Skip to content

Commit b64a2f7

Browse files
authored
Fix container command quotes in macvtap.yaml.in (#27)
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 <rhrazdil@redhat.com>
1 parent 1c618bd commit b64a2f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/macvtap.yaml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
hostPID: true
1717
containers:
1818
- name: macvtap-cni
19-
command: [ "/macvtap-deviceplugin", "-v", "3", "-logtostderr"]
19+
command: ["/macvtap-deviceplugin", "-v", "3", "-logtostderr"]
2020
envFrom:
2121
- configMapRef:
2222
name: macvtap-deviceplugin-config
@@ -33,7 +33,7 @@ spec:
3333
mountPath: /var/lib/kubelet/device-plugins
3434
initContainers:
3535
- name: install-cni
36-
command: ['cp', '/macvtap-cni', '/host/opt/cni/bin/macvtap']
36+
command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"]
3737
image: '{{ .MacvtapImage }}'
3838
imagePullPolicy: '{{ .ImagePullPolicy }}'
3939
securityContext:

0 commit comments

Comments
 (0)