-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] Improvements to Red Hat mirroring (#651)
- Loading branch information
Showing
29 changed files
with
508 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
function mirror_redhat_help() { | ||
[[ -n "$1" ]] && echo_warning "$1" | ||
reset_colors | ||
cat << EOM | ||
Usage: | ||
mas mirror-images [options] | ||
Where ${COLOR_YELLOW}specified${TEXT_RESET} each option may also be defined by setting the appropriate environment variable. | ||
When no options are specified on the command line, interactive-mode will be enabled by default. | ||
|
||
Mirror Mode (Required): | ||
-m, --mode ${COLOR_YELLOW}MIRROR_MODE${TEXT_RESET} Operation mode (direct, to-filesystem, from-filesystem) | ||
-d, --dir ${COLOR_YELLOW}MIRROR_WORKING_DIR${TEXT_RESET} Working directory for the mirror process | ||
--mirror-platform Mirror Red Hat Platform images | ||
--mirror-operators Mirror selected content from Red Hat Operator catalogs | ||
|
||
Registry Details (Required when mode is direct and from-filesystem only): | ||
-H, --host ${COLOR_YELLOW}REGISTRY_PUBLIC_HOST${TEXT_RESET} Hostname of the target registry | ||
-P, --port ${COLOR_YELLOW}REGISTRY_PUBLIC_PORT${TEXT_RESET} Port number for the target registry | ||
-u, --username ${COLOR_YELLOW}REGISTRY_USERNAME${TEXT_RESET} Username to authenticate to the target registry | ||
-p, --password ${COLOR_YELLOW}REGISTRY_PASSWORD${TEXT_RESET} Password to authenticate to the target registry | ||
|
||
Red Hat Image Pull Secret (Required): | ||
--pullsecret ${COLOR_YELLOW}REDHAT_PULLSECRET${TEXT_RESET} Red Hat OpenShift Pull Secret (https://console.redhat.com/openshift/install/pull-secret) | ||
|
||
Content Selection (Required): | ||
--release ${COLOR_YELLOW}OCP_RELEASE${TEXT_RESET} OCP Release to mirror content for (e.g. 4.10, 4.12) | ||
|
||
Platform Version Range (Required when mirroring the platform): | ||
--min-version ${COLOR_YELLOW}OCP_MIN_VERSION${TEXT_RESET} Minimum version of the OCP release to mirror | ||
--max-version ${COLOR_YELLOW}OCP_MAX_VERSION${TEXT_RESET} Maximium version of the OCP release to mirror | ||
|
||
Other Commands: | ||
--no-confirm Mirror images without prompting for confirmation | ||
-h, --help Show this help message | ||
EOM | ||
[[ -n "$1" ]] && exit 1 || exit 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.