Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically determine image of plugins #1192

Merged
merged 7 commits into from
Nov 19, 2020
Merged

Dynamically determine image of plugins #1192

merged 7 commits into from
Nov 19, 2020

Conversation

wilsonehusin
Copy link
Contributor

@wilsonehusin wilsonehusin commented Nov 16, 2020

What this PR does / why we need it:

  • Determine images required by plugins dynamically using e2e.test -list-images
  • Removing hard-coded list of images for e2e

Which issue(s) this PR fixes

Special notes for your reviewer:
We may not need to do docker run --rm every time by caching the results. However, I think that's best addressed in a separate PR as we have discussed about having externalized persistent config.

TODO :

  • add tests to cmd/sonobuoy/app/images_dynamic_test.go

Release note:

Sonobuoy no longer bundles list of images required by e2e / conformance. The required images will now be determined by `k8s.gcr.io/conformance` image at runtime. This also means that all operations in `sonobuoy images` and its subcommands now attempts to pull `k8s.gcr.io/conformance` and executes `docker run --rm` internally.

@wilsonehusin wilsonehusin marked this pull request as ready for review November 17, 2020 01:50
Copy link

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's clarify my comments.

nodes:
- role: control-plane
image: sonobuoy/kind-node:v1.19.0
image: &kind_node_image kindest/node:v1.19.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change to &kind_node_image kindest/node...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it'd be more helpful to make sure that the control-plane and worker nodes have consistent versions, instead of manually ensuring they are the same.

Wilson E. Husin added 7 commits November 17, 2020 11:41
- merged images_dynamic.go to images.go
- eventually the delta is just new private functions

Signed-off-by: Wilson E. Husin <[email protected]>
Signed-off-by: Wilson E. Husin <[email protected]>
Signed-off-by: Wilson E. Husin <[email protected]>
Signed-off-by: Wilson E. Husin <[email protected]>
I'm not sure why we want to maintain yet another image

Signed-off-by: Wilson E. Husin <[email protected]>
Copy link

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@wilsonehusin wilsonehusin merged commit 0c072ef into vmware-tanzu:master Nov 19, 2020
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