Delete dashboard-oauth-config secret when upgrading from 1.18 #278
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix RHODS-5910 and RHODS-5836
How Has This Been Tested?
Install 1.18.0-9 and check dashboard-oauth-config secret exists:
Upgrade to 1.19:
$ oc patch catalogsource addon-managed-odh-catalog \ --type=merge -p '{"spec":{"image":"quay.io/modh/rhods-operator-live-catalog:1.19.0-rhods-5910"}}' -n openshift-marketplace
Wait until the OAuth objects are created and the dashboard is running:
$ oc get secret dashboard-oauth-config -n redhat-ods-applications NAME TYPE DATA AGE dashboard-oauth-config Opaque 0 78s $ oc get secret dashboard-oauth-config-generated -n redhat-ods-applications NAME TYPE DATA AGE dashboard-oauth-config-generated Opaque 1 84s $ oc get oauthclient dashboard-oauth-client NAME SECRET WWW-CHALLENGE TOKEN-MAX-AGE dashboard-oauth-client FF3kKVNlDauyJlZhb52Q77LtuuhlkWBd false default $ oc get pods -l app=rhods-dashboard -n redhat-ods-applications NAME READY STATUS RESTARTS AGE rhods-dashboard-869489dfcf-76s2g 2/2 Running 0 3m11s rhods-dashboard-869489dfcf-dl7b5 2/2 Running 0 88s rhods-dashboard-869489dfcf-mw74h 2/2 Running 0 3m11s rhods-dashboard-869489dfcf-ngfps 2/2 Running 0 88s rhods-dashboard-869489dfcf-xl7px 2/2 Running 0 3m11s