-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[kube] use local image for kubernetes integration tests #48321
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
aa65d80
to
6a06d8c
Compare
a2e56c2
to
ee4ddd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the patch version? Could we get a checksum to go with it too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mentioning the source of the image would be nice too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also discrepancy between versions: this file name is 3.23
but the base Docker image is 3.20.3
. Typo in this file name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO legal should review this. Including an entire container image worth of OS libraries/tools/external software means that we're now distributing a lot more packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO legal should review this. Including an entire container image worth of OS libraries/tools/external software means that we're now distributing a lot more packages.
Shouldn't this apply even if we vendored the image in gha container repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not if we used private ECR, then we're only distributing it within the company
But maybe it doesn't matter... are we basing any images off this currently (and therefore have it reviewed/approved already)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We base only our test images for the Kube integration tests introduced by this PR. Before we relied on pulling these images from docker hub but that often fails and makes our tests extremely flaky when GHA/docker hub has network issues
Is there a way of storing this image in any other private repo and make oss download it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On d99891f, I sourced the files from alpine cdn and added gpg validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than doing all this, can we configure the workflow to use a pull-through cache in a private ECR registry? Then we don't have to worry about licenses (we won't be redistributing anything), we won't be adding lots of binaries to the repo, and it'll be easier for us to keep up to date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO legal should review this. Including an entire container image worth of OS libraries/tools/external software means that we're now distributing a lot more packages.
Co-authored-by: Alan Parra <[email protected]>
Co-authored-by: Alan Parra <[email protected]>
* [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
* [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
* [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * Update fixtures/alpine/README.md Co-authored-by: Alan Parra <[email protected]> * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
) * [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md * Update fixtures/alpine/README.md * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
) * [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md * Update fixtures/alpine/README.md * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
) * [kube] use local image for kubernetes integration tests This PR replaces the use of the `nginx:latest` Docker image in Kubernetes integration tests with a custom-built image based on `alpine:3.20.3`. This custom image includes a shell for `kubectl exec` integration tests and a compiled binary to act as an HTTP server. This change addresses recent issues where test workflows failed due to problems downloading the `nginx` image. * add information about the image * source files from alpine cdn * copy files from alpine * Update fixtures/alpine/README.md * Update fixtures/alpine/README.md * source files from alpine cdn (again) --------- Co-authored-by: Alan Parra <[email protected]>
This PR replaces the use of the
nginx:latest
Docker image in Kubernetes integration tests with a custom-built image based onalpine:3.20.3
. This custom image includes a shell forkubectl exec
integration tests and a compiled binary to act as an HTTP server.This change addresses recent issues where test workflows failed due to problems downloading the
nginx
image.