Skip to content
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

adding check to validate default config file path for Windows #2866

Merged
merged 1 commit into from
May 19, 2021

Conversation

singholt
Copy link
Contributor

@singholt singholt commented May 13, 2021

Summary

The PR adds a check to validate the default agent config file path on Windows.

Currently, the default config file path on Windows is "C:/etc/ecs_container_agent/config.json". We're adding a check to validate whether the admin has created the config file or not. Note that this check is not done if the env ECS_AGENT_CONFIG_FILE_PATH is set, since it overrides the default config file.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@singholt singholt requested review from a team May 13, 2021 20:49
agent/config/config.go Outdated Show resolved Hide resolved
agent/config/config.go Outdated Show resolved Hide resolved
rawahars
rawahars previously approved these changes May 13, 2021
Copy link
Contributor

@rawahars rawahars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

choihca
choihca previously approved these changes May 13, 2021
vsiddharth
vsiddharth previously approved these changes May 13, 2021
mythri-garaga
mythri-garaga previously approved these changes May 13, 2021
@sparrc
Copy link
Contributor

sparrc commented May 13, 2021

won't this break every customer currently using /etc/ecs_container_agent/config.json on windows?

@singholt
Copy link
Contributor Author

won't this break every customer currently using /etc/ecs_container_agent/config.json on windows?

I dont think we ask customers to use /etc/ecs_container_agent/config.json directly anywhere in the docs. We advertise the env variable and ask customers to set this env variable if they want to use a custom config.json

@singholt singholt marked this pull request as draft May 17, 2021 19:29
@singholt singholt changed the title Updating default config file path for Windows adding check to validate default config file path for Windows May 17, 2021
@singholt singholt requested a review from angelcar May 18, 2021 17:35
@singholt singholt marked this pull request as ready for review May 18, 2021 17:35
agent/config/config_windows.go Outdated Show resolved Hide resolved
agent/config/config_windows.go Show resolved Hide resolved
agent/config/config.go Outdated Show resolved Hide resolved
@singholt singholt requested a review from angelcar May 19, 2021 00:31
@singholt singholt marked this pull request as ready for review May 19, 2021 00:31
angelcar
angelcar previously approved these changes May 19, 2021
fenxiong
fenxiong previously approved these changes May 19, 2021
agent/config/config_windows.go Outdated Show resolved Hide resolved
agent/config/config_windows.go Show resolved Hide resolved
agent/config/config_windows.go Outdated Show resolved Hide resolved
agent/config/config_windows_test.go Outdated Show resolved Hide resolved
agent/config/config_windows_test.go Show resolved Hide resolved
agent/config/config_windows.go Show resolved Hide resolved
@angelcar angelcar merged commit 9349e80 into aws:dev May 19, 2021
@fenxiong fenxiong added this to the 1.52.2 milestone May 19, 2021
@fenxiong fenxiong mentioned this pull request May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants