From 044f5ef99ebd89d3f8b896c89f83bb35206204bb Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Tue, 23 Apr 2019 16:25:38 +0530 Subject: [PATCH 01/15] As a non-admin user viewing the latest console with developer console perspective Refers https://jira.coreos.com/browse/ODC-347 The prerequisites for testing this are export KUBECONFIG= export OC_LOGIN_PASSWORD= Run the script consoledeveloper.sh It does the following: 1)Replaces the existing openshift console with the talamer console 2)Installs the operator. (Prompts if it already exists) 3)Creates a non-admin user `consoledeveloper` with the password as `developer` with the suitable rolebinding(roleinding being used here is `self-provisioner`) After this you can login as the `consoledeveloper` user. Create a new project and do `oc get csvs` in the suitable namespace to see the installed operator. --- install_devconsole/consoledeveloper.sh | 16 +++++ install_devconsole/create_user.sh | 39 ++++++++++++ install_devconsole/devconsole.sh | 15 +++++ .../yamls/catalog_source_OS4.yaml | 11 ++++ .../yamls/redeploy-console-operator.yaml | 60 +++++++++++++++++++ .../yamls/subscription_OS4.yaml | 11 ++++ install_devconsole/yamls/unmanage.yaml | 11 ++++ 7 files changed, 163 insertions(+) create mode 100644 install_devconsole/consoledeveloper.sh create mode 100644 install_devconsole/create_user.sh create mode 100644 install_devconsole/devconsole.sh create mode 100644 install_devconsole/yamls/catalog_source_OS4.yaml create mode 100644 install_devconsole/yamls/redeploy-console-operator.yaml create mode 100644 install_devconsole/yamls/subscription_OS4.yaml create mode 100644 install_devconsole/yamls/unmanage.yaml diff --git a/install_devconsole/consoledeveloper.sh b/install_devconsole/consoledeveloper.sh new file mode 100644 index 0000000..beb07d9 --- /dev/null +++ b/install_devconsole/consoledeveloper.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -x +OC_LOGIN_USERNAME=kubeadmin +oc login -u ${OC_LOGIN_USERNAME} -p ${OC_LOGIN_PASSWORD} + +oc apply -f ./yamls/unmanage.yaml +oc scale --replicas 0 deployment console-operator --namespace openshift-console-operator +sleep 20s +oc scale --replicas 0 deployment console --namespace openshift-console +sleep 20s +oc apply -f ./yamls/redeploy-console-operator.yaml +sleep 25s +oc scale --replicas 1 deployment console --namespace openshift-console +sleep 10s +sh ./devconsole.sh +sh ./create_user.sh diff --git a/install_devconsole/create_user.sh b/install_devconsole/create_user.sh new file mode 100644 index 0000000..34d839e --- /dev/null +++ b/install_devconsole/create_user.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +HTPASSWD_FILE="./htpass" +USERNAME="consoledeveloper" +USERPASS="developer" +HTPASSWD_SECRET="htpasswd-consoledeveloper-secret" + +OC_USERS_LIST="$(oc get users)" +if echo "${OC_USERS_LIST}" | grep -q "${USERNAME}"; then + echo -e "\n\033[0;32m \xE2\x9C\x94 User consoledeveloper already exists \033[0m\n" + exit; +fi +htpasswd -cb $HTPASSWD_FILE $USERNAME $USERPASS + +oc get secret $HTPASSWD_SECRET -n openshift-config &> /dev/null + +oc create secret generic ${HTPASSWD_SECRET} --from-file=htpasswd=${HTPASSWD_FILE} -n openshift-config + +oc apply -f - < Date: Tue, 23 Apr 2019 17:00:45 +0530 Subject: [PATCH 02/15] Fixed yaml lint issues. Added a new line at the end of each yaml --- install_devconsole/yamls/catalog_source_OS4.yaml | 1 + install_devconsole/yamls/redeploy-console-operator.yaml | 1 + install_devconsole/yamls/subscription_OS4.yaml | 1 + install_devconsole/yamls/unmanage.yaml | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/install_devconsole/yamls/catalog_source_OS4.yaml b/install_devconsole/yamls/catalog_source_OS4.yaml index 4d9115d..b7b6725 100644 --- a/install_devconsole/yamls/catalog_source_OS4.yaml +++ b/install_devconsole/yamls/catalog_source_OS4.yaml @@ -9,3 +9,4 @@ spec: image: quay.io/redhat-developer/operator-registry:latest displayName: Community Operators publisher: Red Hat + diff --git a/install_devconsole/yamls/redeploy-console-operator.yaml b/install_devconsole/yamls/redeploy-console-operator.yaml index ff3dec7..b0a96bc 100644 --- a/install_devconsole/yamls/redeploy-console-operator.yaml +++ b/install_devconsole/yamls/redeploy-console-operator.yaml @@ -58,3 +58,4 @@ spec: - name: config configMap: name: console-operator-config + diff --git a/install_devconsole/yamls/subscription_OS4.yaml b/install_devconsole/yamls/subscription_OS4.yaml index 7ba6823..755d6e1 100644 --- a/install_devconsole/yamls/subscription_OS4.yaml +++ b/install_devconsole/yamls/subscription_OS4.yaml @@ -9,3 +9,4 @@ spec: name: devconsole source: my-catalog sourceNamespace: openshift-operator-lifecycle-manager + diff --git a/install_devconsole/yamls/unmanage.yaml b/install_devconsole/yamls/unmanage.yaml index 54ccb4d..8738107 100644 --- a/install_devconsole/yamls/unmanage.yaml +++ b/install_devconsole/yamls/unmanage.yaml @@ -8,4 +8,5 @@ spec: - kind: Deployment name: console-operator namespace: openshift-console-operator - unmanaged: true + unmanaged: true + From b198a21007ab48907a2efef9c2593c71201f38c0 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Tue, 23 Apr 2019 17:24:36 +0530 Subject: [PATCH 03/15] fixing lint issues --- install_devconsole/yamls/catalog_source_OS4.yaml | 1 - install_devconsole/yamls/redeploy-console-operator.yaml | 1 - install_devconsole/yamls/subscription_OS4.yaml | 1 - install_devconsole/yamls/unmanage.yaml | 1 - 4 files changed, 4 deletions(-) diff --git a/install_devconsole/yamls/catalog_source_OS4.yaml b/install_devconsole/yamls/catalog_source_OS4.yaml index b7b6725..4d9115d 100644 --- a/install_devconsole/yamls/catalog_source_OS4.yaml +++ b/install_devconsole/yamls/catalog_source_OS4.yaml @@ -9,4 +9,3 @@ spec: image: quay.io/redhat-developer/operator-registry:latest displayName: Community Operators publisher: Red Hat - diff --git a/install_devconsole/yamls/redeploy-console-operator.yaml b/install_devconsole/yamls/redeploy-console-operator.yaml index b0a96bc..ff3dec7 100644 --- a/install_devconsole/yamls/redeploy-console-operator.yaml +++ b/install_devconsole/yamls/redeploy-console-operator.yaml @@ -58,4 +58,3 @@ spec: - name: config configMap: name: console-operator-config - diff --git a/install_devconsole/yamls/subscription_OS4.yaml b/install_devconsole/yamls/subscription_OS4.yaml index 755d6e1..7ba6823 100644 --- a/install_devconsole/yamls/subscription_OS4.yaml +++ b/install_devconsole/yamls/subscription_OS4.yaml @@ -9,4 +9,3 @@ spec: name: devconsole source: my-catalog sourceNamespace: openshift-operator-lifecycle-manager - diff --git a/install_devconsole/yamls/unmanage.yaml b/install_devconsole/yamls/unmanage.yaml index 8738107..92dfa33 100644 --- a/install_devconsole/yamls/unmanage.yaml +++ b/install_devconsole/yamls/unmanage.yaml @@ -9,4 +9,3 @@ spec: name: console-operator namespace: openshift-console-operator unmanaged: true - From daa78466bcda6b19286080453dd160dadebd8d07 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Wed, 24 Apr 2019 13:10:38 +0530 Subject: [PATCH 04/15] updated to set +x --- install_devconsole/consoledeveloper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_devconsole/consoledeveloper.sh b/install_devconsole/consoledeveloper.sh index beb07d9..9a58154 100644 --- a/install_devconsole/consoledeveloper.sh +++ b/install_devconsole/consoledeveloper.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -x +set +x OC_LOGIN_USERNAME=kubeadmin oc login -u ${OC_LOGIN_USERNAME} -p ${OC_LOGIN_PASSWORD} From 4a1144fd50d009cb8c82a57c12c09882f52041af Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Wed, 24 Apr 2019 17:17:16 +0530 Subject: [PATCH 05/15] Removing the hard-coded sleep --- install_devconsole/consoledeveloper.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install_devconsole/consoledeveloper.sh b/install_devconsole/consoledeveloper.sh index 9a58154..b3c5fd9 100644 --- a/install_devconsole/consoledeveloper.sh +++ b/install_devconsole/consoledeveloper.sh @@ -5,12 +5,13 @@ oc login -u ${OC_LOGIN_USERNAME} -p ${OC_LOGIN_PASSWORD} oc apply -f ./yamls/unmanage.yaml oc scale --replicas 0 deployment console-operator --namespace openshift-console-operator -sleep 20s oc scale --replicas 0 deployment console --namespace openshift-console -sleep 20s oc apply -f ./yamls/redeploy-console-operator.yaml -sleep 25s +#It takes time to get the pod in running state +while [ "$(oc get pods --field-selector=status.phase=Running -n openshift-console-operator)" == "No resources found." ] +do + sleep 1s +done oc scale --replicas 1 deployment console --namespace openshift-console -sleep 10s sh ./devconsole.sh sh ./create_user.sh From 54fe1845c248724ed3aa91a31672f0924ddbc3c5 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Mon, 29 Apr 2019 14:24:11 +0530 Subject: [PATCH 06/15] Making suggested changes Removing login through oc command. Instead using kubeconfig file. Prompting the user with credentials for login as a non admin user, instead of logging in through the script. --- install_devconsole/consoledeveloper.sh | 2 -- install_devconsole/create_user.sh | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/install_devconsole/consoledeveloper.sh b/install_devconsole/consoledeveloper.sh index b3c5fd9..2abe491 100644 --- a/install_devconsole/consoledeveloper.sh +++ b/install_devconsole/consoledeveloper.sh @@ -1,7 +1,5 @@ #!/bin/bash set +x -OC_LOGIN_USERNAME=kubeadmin -oc login -u ${OC_LOGIN_USERNAME} -p ${OC_LOGIN_PASSWORD} oc apply -f ./yamls/unmanage.yaml oc scale --replicas 0 deployment console-operator --namespace openshift-console-operator diff --git a/install_devconsole/create_user.sh b/install_devconsole/create_user.sh index 34d839e..3a034ba 100644 --- a/install_devconsole/create_user.sh +++ b/install_devconsole/create_user.sh @@ -36,4 +36,5 @@ EOF sleep 10s oc create clusterrolebinding ${USERNAME}_role --clusterrole=self-provisioner --user=${USERNAME} sleep 15s -oc login -u ${USERNAME} -p ${USERPASS} +echo -e "\e[1;35m User consoledeveloper created with the password developer. Type the below\e[0m" +echo -e "\e[1;32m oc login -u\e[3m \e[1;36mconsoledeveloper\e[0m \e[1;32m-p\e[3m \e[1;36mdeveloper\e[0m" From ef6c5797ce15517396b869ca4772ce471b3995d9 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Mon, 29 Apr 2019 14:46:41 +0530 Subject: [PATCH 07/15] Indenting the echoed lines --- install_devconsole/create_user.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_devconsole/create_user.sh b/install_devconsole/create_user.sh index 3a034ba..68f72f1 100644 --- a/install_devconsole/create_user.sh +++ b/install_devconsole/create_user.sh @@ -36,5 +36,5 @@ EOF sleep 10s oc create clusterrolebinding ${USERNAME}_role --clusterrole=self-provisioner --user=${USERNAME} sleep 15s -echo -e "\e[1;35m User consoledeveloper created with the password developer. Type the below\e[0m" -echo -e "\e[1;32m oc login -u\e[3m \e[1;36mconsoledeveloper\e[0m \e[1;32m-p\e[3m \e[1;36mdeveloper\e[0m" +echo -e "\n\e[1;35m User consoledeveloper created with the password developer. Type the below\e[0m \n" +echo -e "\n\e[1;32m oc login -u\e[3m \e[1;36mconsoledeveloper\e[0m \e[1;32m-p\e[3m \e[1;36mdeveloper\e[0m \n" From 0df21ed1af577d2d7aa5d081a2167f78f335ca0e Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Mon, 29 Apr 2019 16:38:00 +0530 Subject: [PATCH 08/15] increasing the deadline by 5 mins. Now it is 15mins --- make/lint.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/lint.mk b/make/lint.mk index f6527af..9a897dc 100644 --- a/make/lint.mk +++ b/make/lint.mk @@ -21,7 +21,7 @@ lint-yaml: ./vendor ${YAML_FILES} lint-go-code: ./vendor $(GOLANGCI_LINT_BIN) # This is required for OpenShift CI enviroment # Ref: https://github.com/openshift/release/pull/3438#issuecomment-482053250 - $(Q)GOCACHE=$(shell pwd)/out/gocache ./out/golangci-lint ${V_FLAG} run --deadline=10m + $(Q)GOCACHE=$(shell pwd)/out/gocache ./out/golangci-lint ${V_FLAG} run --deadline=15m $(GOLANGCI_LINT_BIN): $(Q)curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./out v1.16.0 From 8adac20279b550eb2f095147bed4d4ff97f49f5c Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Tue, 30 Apr 2019 01:39:52 +0530 Subject: [PATCH 09/15] Changes in yaml file and consoledeveloper.sh Delete the already existing pod in the openshift-console namespace Because it's a Deployment, Kubernetes will automatically recreate the pod and pull the latest image always. Have also updated the image pull policy to Always in the yamls/redeploy-console-operator.yaml --- install_devconsole/consoledeveloper.sh | 10 ++++++++++ .../yamls/redeploy-console-operator.yaml | 1 + 2 files changed, 11 insertions(+) diff --git a/install_devconsole/consoledeveloper.sh b/install_devconsole/consoledeveloper.sh index 2abe491..441d744 100644 --- a/install_devconsole/consoledeveloper.sh +++ b/install_devconsole/consoledeveloper.sh @@ -10,6 +10,16 @@ while [ "$(oc get pods --field-selector=status.phase=Running -n openshift-consol do sleep 1s done + oc scale --replicas 1 deployment console --namespace openshift-console +#Delete the already existing pod in the openshift-console namespace +#Because it's a Deployment, Kubernetes will automatically recreate the pod and pull the latest image. +#Have also updated the image pull policy to Always in the yamls/redeploy-console-operator.yaml + +CONSOLE_POD="$(oc get pods -o=name -n openshift-console | cut -d'/' -f2- | cut -f 1 -d "-" | head -n 1)" +CONSOLE_POD_NAME="$(oc get pods -o=name -n openshift-console | cut -d'/' -f2- | cut -d'-' -f1- | head -n 1)" +if echo "${CONSOLE_POD}" == "console";then + oc delete pod ${CONSOLE_POD_NAME} -n openshift-console +fi sh ./devconsole.sh sh ./create_user.sh diff --git a/install_devconsole/yamls/redeploy-console-operator.yaml b/install_devconsole/yamls/redeploy-console-operator.yaml index ff3dec7..c0fc757 100644 --- a/install_devconsole/yamls/redeploy-console-operator.yaml +++ b/install_devconsole/yamls/redeploy-console-operator.yaml @@ -42,6 +42,7 @@ spec: env: - name: IMAGE value: quay.io/redhat-developer/console:master-next + imagePullPolicy: Always - name: RELEASE_VERSION value: "0.0.1-snapshot" - name: OPERATOR_NAME From 4a21be1ba7e98319b914185778d05bec4ae8aaa1 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Tue, 30 Apr 2019 14:31:09 +0530 Subject: [PATCH 10/15] adding view role --- install_devconsole/create_user.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_devconsole/create_user.sh b/install_devconsole/create_user.sh index 68f72f1..741f249 100644 --- a/install_devconsole/create_user.sh +++ b/install_devconsole/create_user.sh @@ -35,6 +35,7 @@ EOF sleep 10s oc create clusterrolebinding ${USERNAME}_role --clusterrole=self-provisioner --user=${USERNAME} +oc adm policy add-role-to-user view ${USERNAME} sleep 15s echo -e "\n\e[1;35m User consoledeveloper created with the password developer. Type the below\e[0m \n" echo -e "\n\e[1;32m oc login -u\e[3m \e[1;36mconsoledeveloper\e[0m \e[1;32m-p\e[3m \e[1;36mdeveloper\e[0m \n" From 1e3be59ffe2a262266dedf9bd0d1ceb1a3b338d4 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Tue, 30 Apr 2019 14:43:16 +0530 Subject: [PATCH 11/15] Making a new hack folder which will now have install_devconsole/ --- .../install_devconsole}/consoledeveloper.sh | 0 {install_devconsole => hack/install_devconsole}/create_user.sh | 0 {install_devconsole => hack/install_devconsole}/devconsole.sh | 0 .../install_devconsole}/yamls/catalog_source_OS4.yaml | 0 .../install_devconsole}/yamls/redeploy-console-operator.yaml | 0 .../install_devconsole}/yamls/subscription_OS4.yaml | 0 .../install_devconsole}/yamls/unmanage.yaml | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename {install_devconsole => hack/install_devconsole}/consoledeveloper.sh (100%) rename {install_devconsole => hack/install_devconsole}/create_user.sh (100%) rename {install_devconsole => hack/install_devconsole}/devconsole.sh (100%) rename {install_devconsole => hack/install_devconsole}/yamls/catalog_source_OS4.yaml (100%) rename {install_devconsole => hack/install_devconsole}/yamls/redeploy-console-operator.yaml (100%) rename {install_devconsole => hack/install_devconsole}/yamls/subscription_OS4.yaml (100%) rename {install_devconsole => hack/install_devconsole}/yamls/unmanage.yaml (100%) diff --git a/install_devconsole/consoledeveloper.sh b/hack/install_devconsole/consoledeveloper.sh similarity index 100% rename from install_devconsole/consoledeveloper.sh rename to hack/install_devconsole/consoledeveloper.sh diff --git a/install_devconsole/create_user.sh b/hack/install_devconsole/create_user.sh similarity index 100% rename from install_devconsole/create_user.sh rename to hack/install_devconsole/create_user.sh diff --git a/install_devconsole/devconsole.sh b/hack/install_devconsole/devconsole.sh similarity index 100% rename from install_devconsole/devconsole.sh rename to hack/install_devconsole/devconsole.sh diff --git a/install_devconsole/yamls/catalog_source_OS4.yaml b/hack/install_devconsole/yamls/catalog_source_OS4.yaml similarity index 100% rename from install_devconsole/yamls/catalog_source_OS4.yaml rename to hack/install_devconsole/yamls/catalog_source_OS4.yaml diff --git a/install_devconsole/yamls/redeploy-console-operator.yaml b/hack/install_devconsole/yamls/redeploy-console-operator.yaml similarity index 100% rename from install_devconsole/yamls/redeploy-console-operator.yaml rename to hack/install_devconsole/yamls/redeploy-console-operator.yaml diff --git a/install_devconsole/yamls/subscription_OS4.yaml b/hack/install_devconsole/yamls/subscription_OS4.yaml similarity index 100% rename from install_devconsole/yamls/subscription_OS4.yaml rename to hack/install_devconsole/yamls/subscription_OS4.yaml diff --git a/install_devconsole/yamls/unmanage.yaml b/hack/install_devconsole/yamls/unmanage.yaml similarity index 100% rename from install_devconsole/yamls/unmanage.yaml rename to hack/install_devconsole/yamls/unmanage.yaml From 246aa4637df4d782a6206292bb03772da0361188 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Wed, 1 May 2019 14:01:12 +0530 Subject: [PATCH 12/15] Adding view as a new clusterrolebinding The builder image in the Import Flow will now work. --- hack/install_devconsole/create_user.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/install_devconsole/create_user.sh b/hack/install_devconsole/create_user.sh index 741f249..099d0c2 100644 --- a/hack/install_devconsole/create_user.sh +++ b/hack/install_devconsole/create_user.sh @@ -34,8 +34,8 @@ spec: EOF sleep 10s -oc create clusterrolebinding ${USERNAME}_role --clusterrole=self-provisioner --user=${USERNAME} -oc adm policy add-role-to-user view ${USERNAME} +oc create clusterrolebinding ${USERNAME}_role1 --clusterrole=self-provisioner --user=${USERNAME} +oc create clusterrolebinding ${USERNAME}_role2 --clusterrole=view --user=${USERNAME} sleep 15s echo -e "\n\e[1;35m User consoledeveloper created with the password developer. Type the below\e[0m \n" echo -e "\n\e[1;32m oc login -u\e[3m \e[1;36mconsoledeveloper\e[0m \e[1;32m-p\e[3m \e[1;36mdeveloper\e[0m \n" From b459d4033ddf782ad02d22f9c09e635913b84bbe Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Thu, 2 May 2019 16:44:58 +0530 Subject: [PATCH 13/15] Adding Readme.md --- hack/install_devconsole/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hack/install_devconsole/README.md diff --git a/hack/install_devconsole/README.md b/hack/install_devconsole/README.md new file mode 100644 index 0000000..d05011c --- /dev/null +++ b/hack/install_devconsole/README.md @@ -0,0 +1,23 @@ +Refers https://jira.coreos.com/browse/ODC-347 + +This PR provides a script to install + +the latest console with the developer perspective, and +the devconsole operator needed to enable the perspective. +The prerequisites for testing this are +export KUBECONFIG=kubeconfig file + +Run the script consoledeveloper.sh +It does the following: +1)Replaces the existing openshift console with the talamer console +2)Installs the operator. (Prompts if it already exists) +3)Creates a non-admin user consoledeveloper with the password as developer with the suitable rolebinding(roleinding being used here is self-provisioner) + +Steps to test this + +sh consoledeveloper.sh +oc login -u consoledeveloper -p developer +Logging in as the consoledeveloper user, you can now create a new project and do oc get csvs in the suitable namespace to see the installed operator. +Expected Output- +On the UI you can now see a consoledeveloper user under the kubeadmin option. +You can enter the username as consoledeveloper and the password as developer here. From ca2ee71a9f214cd06018bf8a14c6d9f0a57703c3 Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Thu, 2 May 2019 16:48:55 +0530 Subject: [PATCH 14/15] Update in README.md --- hack/install_devconsole/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install_devconsole/README.md b/hack/install_devconsole/README.md index d05011c..1dbdd3d 100644 --- a/hack/install_devconsole/README.md +++ b/hack/install_devconsole/README.md @@ -11,7 +11,7 @@ Run the script consoledeveloper.sh It does the following: 1)Replaces the existing openshift console with the talamer console 2)Installs the operator. (Prompts if it already exists) -3)Creates a non-admin user consoledeveloper with the password as developer with the suitable rolebinding(roleinding being used here is self-provisioner) +3)Creates a non-admin user consoledeveloper with the password as developer with the suitable rolebinding(rolebinding being used here is self-provisioner and view) Steps to test this From 166154298717d85f28f90af0faa50b159c19249c Mon Sep 17 00:00:00 2001 From: Avni Sharma <16avnisharma@gmail.com> Date: Thu, 2 May 2019 20:01:41 +0530 Subject: [PATCH 15/15] updates to README.md --- hack/install_devconsole/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hack/install_devconsole/README.md b/hack/install_devconsole/README.md index 1dbdd3d..1938821 100644 --- a/hack/install_devconsole/README.md +++ b/hack/install_devconsole/README.md @@ -1,4 +1,6 @@ -Refers https://jira.coreos.com/browse/ODC-347 +##Non-admin user viewing the console with developer console perspective + +Refers [https://jira.coreos.com/browse/ODC-347](https://jira.coreos.com/browse/ODC-347) This PR provides a script to install @@ -9,14 +11,14 @@ export KUBECONFIG=kubeconfig file Run the script consoledeveloper.sh It does the following: -1)Replaces the existing openshift console with the talamer console -2)Installs the operator. (Prompts if it already exists) -3)Creates a non-admin user consoledeveloper with the password as developer with the suitable rolebinding(rolebinding being used here is self-provisioner and view) +1. Replaces the existing openshift console with the talamer console +2. Installs the operator. (Prompts if it already exists) +3. Creates a non-admin user consoledeveloper with the password as developer with the suitable rolebinding(rolebinding being used here is self-provisioner and view) Steps to test this -sh consoledeveloper.sh -oc login -u consoledeveloper -p developer +`sh consoledeveloper.sh` +oc login -u `consoledeveloper` -p `developer` Logging in as the consoledeveloper user, you can now create a new project and do oc get csvs in the suitable namespace to see the installed operator. Expected Output- On the UI you can now see a consoledeveloper user under the kubeadmin option.