-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
some of the containerd_additional_runtimes
options should preserve quotes
#9913
Comments
Thanks @andy108369 If you like, Would you please submit a PR to fix the issue. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Yeah, will do. |
…non-boolean values (kubernetes-sigs#9913) This commit modifies the Jinja2 template for generating the containerd configuration file to handle a specific requirement: preserving quotes for non-boolean values in `containerd_additional_runtimes.<name>.options`. The update is necessary due to the mixed data types in the options field: 1. Boolean values (true, false) and their string equivalents ("true", "false") should be rendered without quotes. 2. Non-boolean string values should be rendered with quotes. The logic implemented checks if a value is a boolean or the string representation of a boolean. If it is, we ensure it's rendered as a lowercase `true` or `false` without quotes. If the value is not a boolean or a string equivalent of a boolean, we render it with quotes, preserving the original formatting. While the logic may seem verbose, it's necessary to accommodate the differing requirements for boolean and non-boolean values within the configuration file, ensuring the generated configurations are correctly formatted and functional.
…non-boolean values (kubernetes-sigs#9913) This commit modifies the Jinja2 template for generating the containerd configuration file to handle a specific requirement: preserving quotes for non-boolean values in `containerd_additional_runtimes.<name>.options`. The update is necessary due to the mixed data types in the options field: 1. Boolean values (true, false) and their string equivalents ("true", "false") should be rendered without quotes. 2. Non-boolean string values should be rendered with quotes. The logic implemented checks if a value is a boolean or the string representation of a boolean. If it is, we ensure it's rendered as a lowercase `true` or `false` without quotes. If the value is not a boolean or a string equivalent of a boolean, we render it with quotes, preserving the original formatting. While the logic may seem verbose, it's necessary to accommodate the differing requirements for boolean and non-boolean values within the configuration file, ensuring the generated configurations are correctly formatted and functional.
…non-boolean values (kubernetes-sigs#9913) This commit modifies the Jinja2 template for generating the containerd configuration file to handle a specific requirement: preserving quotes for non-boolean values in `containerd_additional_runtimes.<name>.options`. The update is necessary due to the mixed data types in the options field: 1. Boolean values (true, false) and their string equivalents ("true", "false") should be rendered without quotes. 2. Non-boolean string values should be rendered with quotes. The logic implemented checks if a value is a boolean or the string representation of a boolean. If it is, we ensure it's rendered as a lowercase `true` or `false` without quotes. If the value is not a boolean or a string equivalent of a boolean, we render it with quotes, preserving the original formatting. While the logic may seem verbose, it's necessary to accommodate the differing requirements for boolean and non-boolean values within the configuration file, ensuring the generated configurations are correctly formatted and functional.
PR #10307 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
kubespray v2.21.0
Missing quotes on the line 41:
Workaround
Wrap
"/usr/bin/nvidia-container-runtime"
in between single quotes, e.g.'"/usr/bin/nvidia-container-runtime"'
The text was updated successfully, but these errors were encountered: