Skip to content

Commit

Permalink
Parse major and minor version from current OCP (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur authored Oct 21, 2024
1 parent a720677 commit 2c9b9f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/lib/images.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function default_serverless_operator_images() {
# Use the current OCP version if the cluster is running otherwise use the latest.
if oc get clusterversion &>/dev/null; then
ocp_version=$(oc get clusterversion version -o jsonpath='{.status.desired.version}')
ocp_version=$(versions.major_minor "$ocp_version")
else
ocp_version=$(metadata.get 'requirements.ocpVersion.list[-1]')
fi
Expand Down

0 comments on commit 2c9b9f9

Please sign in to comment.