File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ EXISTING=$( KUBECONFIG=$CLUSTER_KUBECONFIG helm list | grep kcp-hacbs-workspace-compute-cluster-rbac)
4
+
5
+ if [[ ! -z $EXISTING ]]
6
+ then
7
+ KUBECONFIG=$CLUSTER_KUBECONFIG helm uninstall $EXISTING
8
+ fi
9
+
3
10
DIR=` dirname $0 `
4
11
# CLUSTER_KUBECONFIG should match whatever you have set in your infra-deployments preview.env file
5
12
# HABCS_WORKSPACE_NAMESPACE is the name of whatever namespace in the KCP hacbs ws that you ran init-hacbs-user-workspace.sh from
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
DIR=` dirname $0 `
4
+
5
+ KUBECONFIG=$KCP_KUBECONFIG oc ws hacbs
6
+ KUBECONFIG=$KCP_KUBECONFIG oc create ns $HACBS_WORKSPACE_NAMESPACE
7
+ KUBECONFIG=$KCP_KUBECONFIG oc project $HACBS_WORKSPACE_NAMESPACE
8
+
9
+ EXISTING=$( KUBECONFIG=$KCP_KUBECONFIG helm list | grep kcp-hacbs-workspace-init)
10
+
11
+ if [[ ! -z $EXISTING ]]
12
+ then
13
+ KUBECONFIG=$KCP_KUBECONFIG helm uninstall $EXISTING
14
+ fi
15
+
4
16
# KCP_KUBECONFIG should match whatever you have set in your infra-deployments preview.env file
5
17
# QUAY_USERNAME and QUAY_TOKEN are the same env's you use in the other dev flow scripts
6
18
# QUAY_TAG is either the sha for the images up at quay.io/redhat-appstudio or 'dev' if you are using
You can’t perform that action at this time.
0 commit comments