-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation of agent flag values for ConfigMap
If the Cilium agent flags are passed via a mounted ConfigMap (cilium-agent --config-dir=/tmp/cilium/config-map), the default for Helm deployments, the flag values are not validated. For example if you set "restore" with invalid value "0SO##ME5_RANDOM" in ConfigMap then Agent would run with incorrect parameter: ..... level=info msg=" --restore='0SO##ME5_RANDOM'" subsys=daemon ..... But if start Agent with CLI then the validation will warn and prevent starting the agent: cilium-agent[8654]: invalid argument "0SO##ME5_RANDOM" for "--restore" flag: strconv.ParseBool: parsing "0SO##ME5_RANDOM": invalid syntax This commit add agent flag values validation for ConfigMap Fixes: #13070 Signed-off-by: Roman Ptitcyn romanspb@yahoo.com
- Loading branch information
1 parent
8da8b88
commit d965f84
Showing
3 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters