@@ -209,6 +209,27 @@ var (
209209 program is [located on github](https://github.com/openshift/cloud-credential-operator).
210210 ` )
211211
212+ readmeOCMirror = heredoc .Doc (`
213+ # OC Mirror Utility
214+
215+ The oc-mirror tool assists with mirroring OpenShift release content from a target
216+ registry to another for disconnected install scenarios.
217+
218+ To learn more about OpenShift, visit [docs.openshift.com](https://docs.openshift.com)
219+ and select the version of OpenShift you are using.
220+
221+ ## Installing the tools
222+
223+ After extracting this archive, move the \u0060oc-mirror\u0060 binary to a location on your
224+ PATH such as \u0060/usr/local/bin\u0060, or keep it in a temporary directory and
225+ reference it via \u0060./oc-mirror\u0060.
226+
227+ ## License
228+
229+ OpenShift is licensed under the Apache Public License 2.0. The source code for this
230+ program is [located on github](https://github.com/openshift/oc-mirror).
231+ ` )
232+
212233 // indicates that the architecture of the binary matches the release payload
213234 targetReleaseArch = "release-arch"
214235)
@@ -526,6 +547,36 @@ func (o *ExtractOptions) extractCommand(command string) error {
526547 ArchiveFormat : "ccoctl-linux-rhel9-%s.tar.gz" ,
527548 TargetCommandName : "ccoctl" ,
528549 },
550+ {
551+ OS : "linux" ,
552+ Arch : targetReleaseArch ,
553+ Command : "oc-mirror.rhel9" ,
554+ InjectReleaseVersion : true ,
555+ Mapping : extract.Mapping {Image : "oc-mirror" , From : "usr/bin/oc-mirror.rhel9" },
556+ Readme : readmeOCMirror ,
557+ ArchiveFormat : "oc-mirror.rhel9-%s.tar.gz" ,
558+ TargetCommandName : "oc-mirror" ,
559+ },
560+ {
561+ OS : "linux" ,
562+ Arch : targetReleaseArch ,
563+ Command : "oc-mirror.rhel8" ,
564+ InjectReleaseVersion : true ,
565+ Mapping : extract.Mapping {Image : "oc-mirror" , From : "usr/bin/oc-mirror.rhel8" },
566+ Readme : readmeOCMirror ,
567+ ArchiveFormat : "oc-mirror.rhel8-%s.tar.gz" ,
568+ TargetCommandName : "oc-mirror" ,
569+ },
570+ {
571+ OS : "linux" ,
572+ Arch : targetReleaseArch ,
573+ Command : "oc-mirror" ,
574+ InjectReleaseVersion : true ,
575+ Mapping : extract.Mapping {Image : "oc-mirror" , From : "usr/bin/oc-mirror" },
576+ Readme : readmeOCMirror ,
577+ ArchiveFormat : "oc-mirror-%s.tar.gz" ,
578+ TargetCommandName : "oc-mirror" ,
579+ },
529580 }
530581
531582 currentArch := runtime .GOARCH
0 commit comments