Skip to content

Commit

Permalink
Merge 333d9e0 into 767c8e0
Browse files Browse the repository at this point in the history
  • Loading branch information
abhat committed Oct 1, 2019
2 parents 767c8e0 + 333d9e0 commit 3ab66eb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions roles/openshift_sdn/files/sdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,24 @@ spec:
fi
done
#BUG 1728081: If /etc/sysconfig/origin-node got mounted as DirectoryOrCreate; clean it up so we can ultimately mount /etc/sysconfig/origin-node as FileOrCreate
if [[ -d /etc/sysconfig/origin-node ]]; then
echo "Deleting the origin-node dir"
rmdir /etc/sysconfig/origin-node || true
fi
# Take over network functions on the node
rm -Rf /etc/cni/net.d/80-openshift-network.conf
cp -Rf /opt/cni/bin/* /host/opt/cni/bin/
# Load DEBUG_LOGLEVEL
if [[ -f /etc/sysconfig/origin-node ]]; then
set -o allexport
echo "Reading environment variables from /etc/sysconfig/origin-node"
source /etc/sysconfig/origin-node
elif [[ -f /etc/sysconfig/atomic-openshift-node ]]; then
set -o allexport
echo "Reading environment variables from /etc/sysconfig/atomic-openshift-node"
source /etc/sysconfig/atomic-openshift-node
fi
Expand Down Expand Up @@ -121,9 +129,8 @@ spec:
- mountPath: /etc/origin/node/
name: host-config
readOnly: true
- mountPath: /etc/sysconfig/origin-node
name: host-sysconfig-node
readOnly: true
- mountPath: /etc/sysconfig
name: host-sysconfig
# Mount the entire run directory for socket access for Docker or CRI-o
# TODO: remove
- mountPath: /var/run
Expand Down Expand Up @@ -181,9 +188,9 @@ spec:
- name: host-config
hostPath:
path: /etc/origin/node
- name: host-sysconfig-node
- name: host-sysconfig
hostPath:
path: /etc/sysconfig/origin-node
path: /etc/sysconfig
- name: host-modules
hostPath:
path: /lib/modules
Expand Down

0 comments on commit 3ab66eb

Please sign in to comment.