Skip to content

Commit

Permalink
[openshift] Set 'latest' tag in s2i tasks params
Browse files Browse the repository at this point in the history
Set `latest` as the default value for `VERSION` param in `s2i` Tasks

Signed-off-by: Nikhil Thomas <[email protected]>
  • Loading branch information
nikhil-thomas committed Mar 8, 2022
1 parent c7274cb commit fee6f44
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
- name: VERSION
description: The tag of .NET imagestream for .NET version
default: '3.1-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of go imagestream for go version
default: '1.14.7-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of java imagestream for java version
default: 'openjdk-11-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of nodejs imagestream for nodejs version
default: '14-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of perl imagestream for perl version
default: '5.30-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of php imagestream for php version
default: '7.4-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of python imagestream for python version
default: '3.8-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: VERSION
description: The tag of ruby imagestream for ruby version
default: '2.7-ubi8'
default: 'latest'
type: string
- name: PATH_CONTEXT
description: The location of the path to run s2i from.
Expand Down
3 changes: 1 addition & 2 deletions hack/openshift/update-image-sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ declare -A IMAGES=(
find_latest_versions() {
local image_registry=${1:-""}
local latest_version=""
podman search --list-tags ${image_registry} | grep -v NAME | sort -r | tr -s ' ' | cut -d ' ' -f 2 | grep -v '\-[a-z0-9\.]*$' | head -n 1

podman search --list-tags ${image_registry} | grep -v NAME | tr -s ' ' | cut -d ' ' -f 2 | sort -r | grep -v '\-[a-z0-9\.]*$' | head -n 1
}

find_sha_from_tag() {
Expand Down

0 comments on commit fee6f44

Please sign in to comment.