Skip to content

Implement version detection for must-gather image selection #117

@coderabbitai

Description

@coderabbitai

Description

Currently, the must-gather command uses a hardcoded default image when the --image flag is not specified:

o.effectiveImage = "registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.5"

As noted in the TODO comment in cmd/must-gather/must_gather.go, a future enhancement should automatically detect the installed OADP version and map it to the appropriate must-gather image.

Proposed Enhancement

  • Detect the OADP operator version installed in the cluster
  • Maintain a mapping of OADP versions to their corresponding must-gather images
  • Automatically select the correct must-gather image based on the detected version
  • Fall back to a reasonable default if version detection fails

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions