Skip to content

Commit

Permalink
Switch to default namespace after creating local storage. (#878)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Wels <awels@redhat.com>
  • Loading branch information
awels committed Jul 10, 2019
1 parent ec52c85 commit fd92d71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster-sync/okd-4.1.2/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ function configure_local_storage() {
done
#Set the default storage class.
_kubectl patch storageclass local-sc -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

#Switch back to default project
_kubectl project default
set -e
fi
}

0 comments on commit fd92d71

Please sign in to comment.