mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-02 17:35:49 +00:00
Compare commits
4 Commits
release-3.
...
release-3.
Author | SHA1 | Date | |
---|---|---|---|
|
30668ec22b | ||
|
dc18392c36 | ||
|
6fb56fdcbe | ||
|
4459a257d5 |
@@ -1,5 +1,5 @@
|
||||
# This dockerfile is specific to building Multus for OpenShift
|
||||
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.6 as rhel8
|
||||
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.6 AS rhel8
|
||||
ADD . /usr/src/multus-cni
|
||||
WORKDIR /usr/src/multus-cni
|
||||
ENV CGO_ENABLED=1
|
||||
@@ -9,7 +9,7 @@ RUN ./build && \
|
||||
cd /usr/src/multus-cni/bin
|
||||
WORKDIR /
|
||||
|
||||
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-7-golang-1.15-openshift-4.6 AS rhel7
|
||||
FROM registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.15-openshift-4.6 AS rhel7
|
||||
ADD . /usr/src/multus-cni
|
||||
WORKDIR /usr/src/multus-cni
|
||||
ENV CGO_ENABLED=1
|
||||
@@ -23,7 +23,7 @@ RUN ./build && \
|
||||
cd /usr/src/multus-cni/bin
|
||||
WORKDIR /
|
||||
|
||||
FROM registry.svc.ci.openshift.org/ocp/4.6:base
|
||||
FROM registry.ci.openshift.org/ocp/4.6:base
|
||||
RUN mkdir -p /usr/src/multus-cni/images && \
|
||||
mkdir -p /usr/src/multus-cni/bin && \
|
||||
mkdir -p /usr/src/multus-cni/rhel7/bin && \
|
||||
|
@@ -758,7 +758,10 @@ func cmdDel(args *skel.CmdArgs, exec invoke.Exec, kubeClient *k8s.ClientInfo) er
|
||||
logging.Errorf("Multus: failed to get delegates: %v, but continue to delete clusterNetwork", err)
|
||||
}
|
||||
} else {
|
||||
return cmdErr(k8sArgs, "error reading the delegates: %v", err)
|
||||
// The options to continue with a delete have been exhausted (cachefile + API query didn't work)
|
||||
// We cannot exit with an error as this may cause a sandbox to never get deleted.
|
||||
logging.Errorf("Multus: failed to get the cached delegates file: %v, cannot properly delete", err)
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
defer os.Remove(path)
|
||||
|
Reference in New Issue
Block a user