-
Notifications
You must be signed in to change notification settings - Fork 2k
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 check for missing path
in client host_volume
config
#17393
Add check for missing path
in client host_volume
config
#17393
Conversation
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.
Thanks for the PR @dttung2905!
I left a quick question there just to make sure I'm not missing anything.
command/agent/command.go
Outdated
@@ -379,6 +379,15 @@ func (c *Command) IsValidConfig(config, cmdConfig *Config) bool { | |||
return false | |||
} | |||
|
|||
if !reflect.ValueOf(config.Client.HostVolumes).IsZero() { |
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.
Is this condition necessary? If the list IsZero
then the range below would be skipped anyway 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.
Hi @lgfa29,
Thanks for the super quick review! It is indeed redundant here .
Signed-off-by: dttung2905 <[email protected]>
Signed-off-by: dttung2905 <[email protected]>
95d03cf
to
cc7e3c4
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.
Awesome, thanks for checking that 😄
I just pushed a commit to clarify the CHANGELOG entry a little with regards to which path
it was referencing.
…17433) Co-authored-by: Dao Thanh Tung <[email protected]>
Hi team,
This PR aims to add additional check for missing
path
value in clienthost_volume
config. I have added 2 more test cases to validate this change. Please let me know if I need to make any additional changes for this 🙏Fixes : #16968