fix: create operator pod as `admin` on minishift
The `syndesis-operator.yml` contains ClusterRole and ClusterRoleBinding
so in needs to be run by the `admin` user.
@@ -94,13 +94,13 @@ minishift::run() {
# Adapt
add_user_permissions_for_operator "$user" "true"
- # Relogin with original user
- $revert_login
-
# Deploy operator and wait until its up
result=$(deploy_syndesis_operator)
check_error "$result"
+ # Relogin with original user
+ $revert_login
+
if [ $(hasflag --operator-only) ]; then
echo "Deployed operator."
exit 0
