Skip to content

Commit c2c03f9

Browse files
Merge pull request #905 from bergmannf/srep-4777-use-mg-image
[SREP-4777] Switch to a multi-cluster image that is based on UBI.
2 parents 9668a32 + 171b02d commit c2c03f9

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

cmd/hcp/mustgather/mustGather.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func NewCmdMustGather() *cobra.Command {
5050
},
5151
}
5252

53-
defaultAcmImage := "quay.io/stolostron/must-gather:2.11.4-SNAPSHOT-2024-12-02-15-19-44"
53+
// The registry.redhat.io image requires authentication - see https://access.redhat.com/articles/RegistryAuthentication
54+
defaultAcmImage := "registry.redhat.io/multicluster-engine/must-gather-rhel9:v2.9.4-1"
5455
mustGatherCommand.Flags().StringVarP(&mg.clusterId, "cluster-id", "C", "", "Internal ID of the cluster to gather data from")
5556
mustGatherCommand.Flags().StringVar(&mg.reason, "reason", "", "The reason for this command, which requires elevation (e.g., OHSS ticket or PD incident).")
5657
mustGatherCommand.Flags().StringVar(&mg.gatherTargets, "gather", "hcp", "Comma-separated list of gather targets (available: sc, sc_acm, mc, hcp).")
@@ -194,10 +195,8 @@ func (mg *mustGather) Run() error {
194195
hcName := cluster.DomainPrefix()
195196
hcNamespace := strings.TrimSuffix(hcpNamespace, "-"+hcName)
196197

197-
// TODO(ACM-16170): replace this with an official ACM release image once it's available
198-
acmHyperShiftImage := "quay.io/rokejungrh/must-gather:v2.13.0-33-linux"
199198
gatherScript := fmt.Sprintf("/usr/bin/gather hosted-cluster-namespace=%s hosted-cluster-name=%s", hcNamespace, hcName)
200-
if err := createMustGather(mcRestCfg, mcK8sCli, []string{"--dest-dir=" + destDir, "--image=" + acmHyperShiftImage, gatherScript}); err != nil {
199+
if err := createMustGather(mcRestCfg, mcK8sCli, []string{"--dest-dir=" + destDir, "--image=" + mg.acmMustGatherImage, gatherScript}); err != nil {
201200
fmt.Printf("collected HCP dynatrace logs but failed to gather %s: %v\n", gatherTarget, err.Error())
202201
}
203202

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3164,7 +3164,7 @@ osdctl hcp must-gather --cluster-id <cluster-identifier> [flags]
31643164
#### Flags
31653165

31663166
```
3167-
--acm_image string Overrides the acm must-gather image being used for acm mc, sc as well as hcp must-gathers. (default "quay.io/stolostron/must-gather:2.11.4-SNAPSHOT-2024-12-02-15-19-44")
3167+
--acm_image string Overrides the acm must-gather image being used for acm mc, sc as well as hcp must-gathers. (default "registry.redhat.io/multicluster-engine/must-gather-rhel9:v2.9.4-1")
31683168
--as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
31693169
--cluster string The name of the kubeconfig cluster to use
31703170
-C, --cluster-id string Internal ID of the cluster to gather data from

docs/osdctl_hcp_must-gather.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ osdctl hcp must-gather --cluster-id CLUSTER_ID --gather sc,mc,sc_acm --reason OH
1919
### Options
2020

2121
```
22-
--acm_image string Overrides the acm must-gather image being used for acm mc, sc as well as hcp must-gathers. (default "quay.io/stolostron/must-gather:2.11.4-SNAPSHOT-2024-12-02-15-19-44")
22+
--acm_image string Overrides the acm must-gather image being used for acm mc, sc as well as hcp must-gathers. (default "registry.redhat.io/multicluster-engine/must-gather-rhel9:v2.9.4-1")
2323
-C, --cluster-id string Internal ID of the cluster to gather data from
2424
--gather string Comma-separated list of gather targets (available: sc, sc_acm, mc, hcp). (default "hcp")
2525
-h, --help help for must-gather

0 commit comments

Comments
 (0)