Skip to content

Commit

Permalink
different check for whether eventing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandawsonuk committed Feb 12, 2020
1 parent 0d60a3e commit 558f5ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/centralised-logging/full-setup-existing-kubeflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ else
./request-logging/install_knative.sh
fi

brokercrd=$(kubectl get crd inmemorychannels.messaging.knative.dev -o jsonpath='{.metadata.name}') || true
imc=$(kubectl get deployment -n knative-eventing imc-controller -o jsonpath='{.metadata.name}') || true

if [[ $brokercrd == 'inmemorychannels.messaging.knative.dev' ]] ; then
if [[ $imc == 'imc-controller' ]] ; then
echo "knative eventing already installed"
else
kubectl apply --selector knative.dev/crd-install=true --filename https://github.com/knative/eventing/releases/download/v0.11.0/eventing.yaml
Expand Down

0 comments on commit 558f5ba

Please sign in to comment.