Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Implements getting TKR bom from registry #2293

Merged

Conversation

jpmcb
Copy link
Contributor

@jpmcb jpmcb commented Oct 20, 2021

What this PR does / why we need it

All work associated with the standalone-cluster / local cluster overhaul

  • Implements DownloadImage for TkrImageReader which gets a normal, non-bundle image
  • The tanzu package now has getTkrBom function which uses TkrImageReader to pull in the bom image file. It then does some plumbing to get that file into the correct location
  • Implements getTkgBomPath in the tanzu package which gets the desired tanzu bom directory. This is reused in several spots
  • Implements GetDownloadPath for the TkrImageReader which returns the path to where a image is / will be downloaded

Details for the Release Notes (PLEASE PROVIDE)

N/a

Which issue(s) this PR fixes

N/a - related to proposal #

Describe testing done for PR

  • Remove tanzu config directory: rm -rf ~/.config/tanzu
  • Built the binary
  • Ran ./local create hello-world and the ~/.config/tanzu/tkg/bom/tkr...yaml file is correctly populated

Special notes for your reviewer

N/a

- Implements DownloadImage for TkrImageReader
- Tanzu package now has getTkrBom which uses TkrImageReader
  to pull in the bom image file

Signed-off-by: John McBride <[email protected]>
@jpmcb jpmcb requested a review from a team as a code owner October 20, 2021 20:49
@joshrosso joshrosso merged commit bb3af36 into vmware-tanzu:standalone-overhaul Oct 20, 2021
joshrosso pushed a commit that referenced this pull request Jan 18, 2022
- Implements DownloadImage for TkrImageReader
- Tanzu package now has getTkrBom which uses TkrImageReader
  to pull in the bom image file

Signed-off-by: John McBride <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants