-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Switch K8s tests to Wolfi by default and make it configurable #41222
Conversation
By default we test Wolfi-based images but there is now an environment variable `IMAGE_MODIFIER` that can be used for specifying different image prefixes when calling the make target. Also, now the test verifies the actual container readiness and deletes resources after itself.
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
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.
LGTM
nit: Maybe add to the descprition that something like Looks good |
By default we test Wolfi-based images but there is now an environment variable `IMAGE_MODIFIER` that can be used for specifying different image prefixes when calling the make target. Also, now the test verifies the actual container readiness and deletes resources after itself. (cherry picked from commit 3492089) # Conflicts: # deploy/kubernetes/auditbeat-kubernetes.yaml # deploy/kubernetes/filebeat-kubernetes.yaml # deploy/kubernetes/heartbeat-kubernetes.yaml # deploy/kubernetes/metricbeat-kubernetes.yaml
#41237) By default we test Wolfi-based images but there is now an environment variable `IMAGE_MODIFIER` that can be used for specifying different image prefixes when calling the make target. Also, now the test verifies the actual container readiness and deletes resources after itself. (cherry picked from commit 3492089) # Conflicts: # deploy/kubernetes/auditbeat-kubernetes.yaml # deploy/kubernetes/filebeat-kubernetes.yaml # deploy/kubernetes/heartbeat-kubernetes.yaml # deploy/kubernetes/metricbeat-kubernetes.yaml Co-authored-by: Denis <[email protected]>
Proposed commit message
By default we test Wolfi-based images but there is now an environment variable
IMAGE_MODIFIER
that can be used for specifying different image prefixes when calling the make target.Also, now the test verifies the actual container readiness and deletes resources after itself.
How to test this PR locally
Run the packaging command in the following folders:
(put your architecture instead)
Then you need a running K8s cluster with the pre-configured
kubectl
. I used Docker Desktop.then go to
./deploy/kubernetes
and runby default we test against the Wolfi-based images but it can be switched by:
or test the main image instead:
The output should be something like this:
This means K8s manifests were successfully generated, applied and the containers were running successfully.
Check the generated manifests for the images to have
-wolfi
suffix:Related issues