Skip to content

Commit

Permalink
Merge pull request #10945 from Luap99/rootless-cni-v3.2
Browse files Browse the repository at this point in the history
[v3.2] Backport rootless cni fixes
  • Loading branch information
openshift-merge-robot authored Jul 15, 2021
2 parents 4136f8b + 1a8b2a0 commit 2eea7fe
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 199 deletions.
7 changes: 6 additions & 1 deletion contrib/cirrus/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function _run_swagger() {
trap "rm -f $envvarsfile" EXIT # contains secrets
# Warning: These values must _not_ be quoted, podman will not remove them.
#shellcheck disable=SC2154
cat <<eof>>$envvarsfile
cat <<eof >>$envvarsfile
GCPJSON=$GCPJSON
GCPNAME=$GCPNAME
GCPPROJECT=$GCPPROJECT
Expand Down Expand Up @@ -334,6 +334,11 @@ msg "************************************************************"

# shellcheck disable=SC2154
if [[ "$PRIV_NAME" == "rootless" ]] && [[ "$UID" -eq 0 ]]; then
# Remove /var/lib/cni, it is not required for rootless cni.
# We have to test that it works without this directory.
# https://github.com/containers/podman/issues/10857
rm -rf /var/lib/cni

req_env_vars ROOTLESS_USER
msg "Re-executing runner through ssh as user '$ROOTLESS_USER'"
msg "************************************************************"
Expand Down
Loading

0 comments on commit 2eea7fe

Please sign in to comment.