Skip to content

Commit

Permalink
hack/tests/e2e-helm.sh: fail on failed RBAC generation
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed May 21, 2019
1 parent 5bf4cd6 commit a07dead
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/tests/e2e-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ fi

# create and build the operator
pushd "$GOTMP"
operator-sdk new nginx-operator --api-version=helm.example.com/v1alpha1 --kind=Nginx --type=helm
log=$(operator-sdk new nginx-operator --api-version=helm.example.com/v1alpha1 --kind=Nginx --type=helm 2>&1)
echo $log
if echo $log | grep -q "failed to generate RBAC rules"; then
echo FAIL expected successful generation of RBAC rules
exit 1
fi

pushd nginx-operator
sed -i 's|\(FROM quay.io/operator-framework/helm-operator\)\(:.*\)\?|\1:dev|g' build/Dockerfile
Expand Down

0 comments on commit a07dead

Please sign in to comment.