Skip to content

Commit

Permalink
Merge pull request openshift#581 from zeeke/use-cni-image-entrypoint
Browse files Browse the repository at this point in the history
Use default `{ib-}sriov-cni` entrypoint script
  • Loading branch information
zeeke authored Feb 20, 2024
2 parents d8459ee + 0a74848 commit 6d52067
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions bindata/manifests/daemon/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ spec:
initContainers:
- name: sriov-cni
image: {{.SRIOVCNIImage}}
command:
- /bin/sh
- -c
- cp /usr/bin/sriov /host/opt/cni/bin/
args: ["--no-sleep"]
securityContext:
privileged: true
resources:
Expand All @@ -55,12 +52,12 @@ spec:
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
- name: os-release
mountPath: /host/etc/os-release
readOnly: true
- name: sriov-infiniband-cni
image: {{.SRIOVInfiniBandCNIImage}}
command:
- /bin/sh
- -c
- cp /usr/bin/ib-sriov /host/opt/cni/bin/
args: ["--no-sleep"]
securityContext:
privileged: true
resources:
Expand All @@ -70,6 +67,9 @@ spec:
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
- name: os-release
mountPath: /host/etc/os-release
readOnly: true
{{- if .UsedSystemdMode}}
- name: sriov-service-copy
image: {{.Image}}
Expand Down Expand Up @@ -136,3 +136,7 @@ spec:
- name: cnibin
hostPath:
path: {{.CNIBinPath}}
- name: os-release
hostPath:
path: /etc/os-release
type: File

0 comments on commit 6d52067

Please sign in to comment.