-
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 new setting in system configuration file to set Elastic Agent image type #2044
Conversation
34b9a0a
to
34c21ef
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.
Reviewed the last 4 commits, the rest are the same as in #2038, right?
} | ||
|
||
// Configuration function returns the elastic-package configuration. | ||
func Configuration() (*ApplicationConfiguration, error) { | ||
func Configuration(options ...ConfigurationOption) (*ApplicationConfiguration, error) { |
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.
Does it work without a stack version? Should it be mandatory?
func Configuration(options ...ConfigurationOption) (*ApplicationConfiguration, error) { | |
func Configuration(stackVersion string, options ...ConfigurationOption) (*ApplicationConfiguration, error) { |
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.
While doing these changes, there was an usage where it was not used stack version:
elastic-package/cmd/profiles.go
Line 81 in d8572d9
config, err := install.Configuration() |
In that command, it looks like that it just checked the config file in the ~/.elastic-package
directory. It's not needed there the stack versions to retrieve the images of the services.
Exactly, this branch was based on that other PR so I could test everything. |
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
Feel free to merge after resolving the conflicts if there is nothing significant. |
Oh, race condition, you already resolved them :D |
💚 Build Succeeded
History
cc @mrodm |
Closes #2037
Relates elastic/package-spec#788
Adds support for a new setting in the system configuration file (
agent.type
). This setting will indicate which kind of Elastic Agent docker image will be used for testing in the given test.Example of this setting:
agent: base_image: complete