Skip to content

vlours/etcd_version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

check_etcd_version.sh

Description

This bash script will retieve the ETCD version for the desired RHOCP releases

The script has the following dependencies:

Usage

Basic Usage

Simply run the script with the desired option(s)

usage: check_etcd_version.sh -r <release> | -m <minor_version> [-p <pull-secret>] [-a <Arch>] [-kcy] [-h]

Script Options

usage: check_etcd_version.sh -r <release> | -m <minor_version> [-p <pull-secret>] [-a <Arch>] [-kcy] [-h]
|------------------------------------------------------------------------------------------------------------|
| Options | Description                                                     | [Defaults]                     |
|---------|-----------------------------------------------------------------|--------------------------------|
|      -r | List of release version(s) to check                             |                                |
|      -m | List of minor version(s) to check                               |                                |
|      -p | Path of the pull-secret file                                    | local 'pull-secret' from $HOME |
|      -a | Architecture used to check the image                            | x86_64                         |
|      -k | Display the output as KCS format                                | false                          |
|      -c | Clear the images                                                | false                          |
|      -y | Automatically retry/continue if 'podman pull' failed            | false                          |
|---------|-----------------------------------------------------------------|--------------------------------|
|         | Additional Options:                                             |                                |
|---------|-----------------------------------------------------------------|--------------------------------|
|      -h | display this help and check for updated version                 |                                |
|------------------------------------------------------------------------------------------------------------|

Current Version: X.Y.Z

Examples

  • Check multiple releases (default archictecture).

    check_etcd_version.sh -p ./<pull_secret_file> -r 4.14.0,4.15.0,4.16.0 -r 4.17.0
  • Check the RHOCP minor versions (default archictecture), formatting the output in KCS table, and automatically retry if podman pull failed.

    check_etcd_version.sh -p ./<pull_secret_file> -m 4.16,4.17 -m 4.15 -ky
  • Mixing Release and Minor versions, and cleaning the images once the script is completed.

    check_etcd_version.sh -p ./<pull_secret_file> -a x86_64 -r 4.14.0,4.15.0 -m 4.16 -c

About

Tool to help retrieve the etcd version from an RHOCP image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages