Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
install/uninstall the clusterrolebinding
Browse files Browse the repository at this point in the history
  • Loading branch information
s1cyan committed Jun 16, 2020
1 parent 310d08e commit dd7b437
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
3 changes: 3 additions & 0 deletions deploy/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit dd7b437

Please sign in to comment.