asset-relocation-tool-for-kubernetes icon indicating copy to clipboard operation
asset-relocation-tool-for-kubernetes copied to clipboard

Show prompt before doing any work

Open petewall opened this issue 3 years ago • 1 comments

For a chart with a lot of images, it can take a long time to pull existing images and pull the new images (to check the status on the remote registry). This means the user might be waiting a long time until the changes are printed and the user is prompted to proceed. We should prompt immediately, using the knowledge we have, and push real work until after the prompt The flow should be:

  1. Parse chart, patterns, and rules
  2. Determine original images, rewritten images, and chart modifications
  3. Print:
Images to pull, tag, and push:
  - docker.io/original/image:mytag --> harbor.vmware.com/new/image:mytag

Changes written to testchart/values.yaml:
  .image.repository: harbor.vmware.com/new/image
  1. Prompt
  2. Pull images to get original image SHA. Output:
Pulling <image>... Done
  1. Pull rewritten image to compare SHA. Output:
Checking <new image>... Done
  1. Push images. Output:
Pushing <new image>... Done
  1. Make changes to chart.
Writing changes to <file>... Done

petewall avatar Jul 16 '21 18:07 petewall

Isn't this one completed?

If not, what else is needed?

josvazg avatar Jul 28 '21 16:07 josvazg