Skip to content

Conversation

@hbhushan3
Copy link
Collaborator

@hbhushan3 hbhushan3 commented Dec 17, 2025

Add file output and multiple format support to image-updater

https://issues.redhat.com/browse/AROSLSRE-237

Summary

Adds --output-file and --output-format flags to the image-updater tool, enabling results to be written to files in multiple formats (table, markdown, JSON) instead of only to stdout.

Changes

New Features

  • --output-file flag: Specify a file path to write results instead of stdout
  • --output-format flag: Choose output format - table (default), markdown, or json
  • Production-grade table rendering: Integrated github.com/jedib0t/go-pretty/v6 library for professional ASCII and markdown tables

Usage Examples

# Default: table format to stdout
./image-updater update --config config.yaml --components acm-mce

# Write markdown to file
./image-updater update --config config.yaml --components acm-mce \
  --output-file results.md --output-format markdown

# Write JSON for automation
./image-updater update --config config.yaml --dry-run \
  --output-file preview.json --output-format json

# Preview changes in markdown
./image-updater update --config config.yaml --dry-run --output-format markdown

@openshift-ci openshift-ci bot requested review from raelga and tony-schndr December 17, 2025 18:05
@openshift-ci
Copy link

openshift-ci bot commented Dec 17, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hbhushan3
Once this PR has been reviewed and has the lgtm label, please assign tony-schndr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hbhushan3
Copy link
Collaborator Author

hbhushan3 commented Dec 17, 2025

#3577 finally merged :)

@openshift-ci
Copy link

openshift-ci bot commented Dec 18, 2025

@hbhushan3: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/baseimage-generator-images 2cd4802 link true /test baseimage-generator-images

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants