Skip to content

OKD version detection does not always produce the latest version #148

@ggiguash

Description

@ggiguash

Looking at this command, for example, the following results are produced by default

curl -s --max-time 60 https://quay.io/api/v1/repository/okd/scos-release/tag/ | jq -r ".tags[].name" | sort | grep ^4.21
4.21.0-okd-scos.ec.0
4.21.0-okd-scos.ec.1
4.21.0-okd-scos.ec.10
4.21.0-okd-scos.ec.11
4.21.0-okd-scos.ec.2
4.21.0-okd-scos.ec.3
4.21.0-okd-scos.ec.4
4.21.0-okd-scos.ec.5
4.21.0-okd-scos.ec.6
4.21.0-okd-scos.ec.7
4.21.0-okd-scos.ec.8
4.21.0-okd-scos.ec.9

Note that the last .11 version is not in the end of the output, thus the .9 version will always be selected.

Consider using sort -V to properly sort the tags. Also note that when both ec and released versions are available, the released version must be selected.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions