Add support to use wolfi Elastic Agent image starting in 8.16.0-SNAPSHOT#2038
Add support to use wolfi Elastic Agent image starting in 8.16.0-SNAPSHOT#2038mrodm merged 13 commits intoelastic:mainfrom
Conversation
| stackVersion820 = "8.2.0-SNAPSHOT" | ||
| stackVersion715 = "7.15.0-SNAPSHOT" | ||
| stackVersion820 = "8.2.0-SNAPSHOT" | ||
| stackVersion8160 = "8.16.0-00000000-SNAPSHOT" |
There was a problem hiding this comment.
Using 8.16.0-SNAPSHOT here as version did not change the docker image used for 8.16.0-21bba6f5-SNAPSHOT. So, this change is also applied for the Makefile target stack-command-8x.
There was a problem hiding this comment.
Maybe we can add a comment mentioning this. Or set it to 8.15.999.
I guess we didn't have the same problem with the snapshots above because we were not using tagged versions, right?
There was a problem hiding this comment.
Exactly, previously tests were using SNAPSHOT versions without the commit in the prerelease tag.
I'll add a comment 👍
jsoriano
left a comment
There was a problem hiding this comment.
LGTM, but before merging this, we need the overrides for the packages that need the complete images, right?
And maybe we need also an environment variable, or some way to disable wolfi images in case it breaks something in CI before it is GA.
| stackVersion820 = "8.2.0-SNAPSHOT" | ||
| stackVersion715 = "7.15.0-SNAPSHOT" | ||
| stackVersion820 = "8.2.0-SNAPSHOT" | ||
| stackVersion8160 = "8.16.0-00000000-SNAPSHOT" |
There was a problem hiding this comment.
Maybe we can add a comment mentioning this. Or set it to 8.15.999.
I guess we didn't have the same problem with the snapshots above because we were not using tagged versions, right?
Maybe it could be used the support added here to use another docker image: elastic/integrations#10885 But, packages that are tested with stack versions older than 8.2.0 would require a different docker image 🤔 I'll check to add a new environment variable to skip this wolfi image and update also the integrations PR. |
jsoriano
left a comment
There was a problem hiding this comment.
LGTM, but we need to wait for the image to be available, or disable this by default by now.
|
|
||
| disableWolfiImages := false | ||
| valueEnv, ok := os.LookupEnv(disableElasticAgentWolfiEnvVar) | ||
| if ok && strings.ToLower(valueEnv) != "false" { |
There was a problem hiding this comment.
Perhaps we should default to true till the image is available if we want to merge this. Wdyt?
There was a problem hiding this comment.
Ok, I'll push the changes to revert the condition.
Once the image is available I'll create a follow-up PR.
|
/test |
💚 Build Succeeded
History
cc @mrodm |
Relates elastic/elastic-agent#5062
Use wolfi docker images for Elastic Agent starting with 8.16.0 stack version.
This behaviour could be disabled by defining the environment variable:
ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFIExamples:
Build using wolfi images (failing since that docker image is not available yet):
Build disabling wolfi images: