Skip to content

Commit

Permalink
Merge pull request #382 from StevenACoffman/patch-1
Browse files Browse the repository at this point in the history
Avoid unbound variable error in CNI 1.4 RC1
  • Loading branch information
mogren authored Apr 8, 2019
2 parents 6886c6b + a34eae1 commit 53316cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aws-cni-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl http://localhost:61678/v1/eni-configs > ${LOG_DIR}/eni-configs.out
curl http://localhost:61678/metrics 2>&1 > ${LOG_DIR}/metrics.out

# Collecting kubelet introspection data
if [[ -n "${KUBECONFIG}" ]]; then
if [[ -n "${KUBECONFIG:-}" ]]; then
command -v kubectl > /dev/null && kubectl get --kubeconfig=${KUBECONFIG} --raw=/api/v1/pods > ${LOG_DIR}/kubelet.out
elif [[ -f /etc/systemd/system/kubelet.service ]]; then
KUBECONFIG=`grep kubeconfig /etc/systemd/system/kubelet.service | awk '{print $2}'`
Expand Down

0 comments on commit 53316cb

Please sign in to comment.