-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add support to use wolfi Elastic Agent image starting in 8.16.0-SNAPSHOT #2038
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, previously tests were using SNAPSHOT versions without the commit in the prerelease tag.
I'll add a comment 👍
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.
Added comment in 094f898
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, 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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, 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_WOLFI
Examples:
Build using wolfi images (failing since that docker image is not available yet):
Build disabling wolfi images: