Skip to content

Commit

Permalink
change storage.sh ODF version to user's OC version (#804)
Browse files Browse the repository at this point in the history
* change /hack/storage.sh ODF version to latest 4.13

Signed-off-by: Jason Cho <[email protected]>

* Add oc version tag

Signed-off-by: Jason Cho <[email protected]>

* using server version

Signed-off-by: Jason Cho <[email protected]>

---------

Signed-off-by: Jason Cho <[email protected]>
  • Loading branch information
jcho02 authored Aug 1, 2023
1 parent e31f199 commit f9326be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# * a valid login session to an OCP cluster, with cluster admin privileges
# * `oc`

VERSION=$(oc get clusterversion version -o jsonpath='{range .status.history[?(@.state=="Completed")]}{.version}{"\n"}{end}' | head -n1 | cut -d. -f1-2)

# prints pre-formatted info output.
function info {
echo "INFO $(date '+%Y-%m-%dT%H:%M:%S') $*"
Expand Down Expand Up @@ -37,7 +39,7 @@ metadata:
name: odf-operator
namespace: openshift-storage
spec:
channel: stable-4.9
channel: stable-${VERSION}
installPlanApproval: Automatic
name: odf-operator
source: redhat-operators
Expand Down Expand Up @@ -66,11 +68,11 @@ metadata:
name: noobaa
namespace: openshift-storage
spec:
dbType: postgres
dbResources:
requests:
cpu: '0.1'
memory: 1Gi
dbType: postgres
coreResources:
requests:
cpu: '0.1'
Expand Down

0 comments on commit f9326be

Please sign in to comment.