asset-relocation-tool-for-kubernetes
asset-relocation-tool-for-kubernetes copied to clipboard
Show prompt before doing any work
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:
- Parse chart, patterns, and rules
- Determine original images, rewritten images, and chart modifications
- 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
- Prompt
- Pull images to get original image SHA. Output:
Pulling <image>... Done
- Pull rewritten image to compare SHA. Output:
Checking <new image>... Done
- Push images. Output:
Pushing <new image>... Done
- Make changes to chart.
Writing changes to <file>... Done
Isn't this one completed?
If not, what else is needed?