diff --git a/deploy/install.sh b/deploy/install.sh index 33d4a064..8e1e07ed 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -340,6 +340,9 @@ oc apply -f $KABANERO_CUSTOMRESOURCES_YAML --selector kabanero.io/install=25-tri # Create service account to used by pipelines oc apply -f $KABANERO_CUSTOMRESOURCES_YAML --selector kabanero.io/install=26-events-sa +# Role for cli-service to get deployed apps +oc apply -f $KABANERO_CUSTOMRESOURCES_YAML --selector kabanero.io/install=27-cli-service-role + # Install complete. give instructions for how to create an instance. SAMPLE_KAB_INSTANCE_URL="${SAMPLE_KAB_INSTANCE_URL:-https://github.com/kabanero-io/kabanero-operator/releases/download/${RELEASE}/default.yaml}" diff --git a/deploy/uninstall.sh b/deploy/uninstall.sh index 57953cc1..7284a4fa 100755 --- a/deploy/uninstall.sh +++ b/deploy/uninstall.sh @@ -102,6 +102,9 @@ oc delete namespaces --selector=kabanero.io/component=kappnav --ignore-not-found # Delete the Role used by the collection controller to manipulate triggers oc delete --ignore-not-found -f $KABANERO_CUSTOMRESOURCES_YAML --selector kabanero.io/install=25-triggers-role +# Delete the ClusterRole for cli-service to get deployed apps +oc delete --ignore-not-found -f $KABANERO_CUSTOMRESOURCES_YAML --selector kabanero.io/install=27-cli-service-role + # Tekton Dashboard curl -s -L https://github.com/tektoncd/dashboard/releases/download/v0.6.1.5/openshift-tekton-webhooks-extension-release.yaml | sed "s/openshift-pipelines/tekton-pipelines/" | oc delete --ignore-not-found -f - curl -s -L https://github.com/tektoncd/dashboard/releases/download/v0.6.1.5/openshift-tekton-dashboard-release.yaml | sed "s/openshift-pipelines/tekton-pipelines/" | oc delete --ignore-not-found -f -