abmramirez opened a new issue, #41419:
URL: https://github.com/apache/airflow/issues/41419
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.9.2
### What happened?
When you pass arguments with white spaces on a kubernetes pod operator, a
carriage return is added after each whitespace on the rendered template and the
operator reads each line as distinct params. We tested this on 2.9.2 and
previous versions. The same happens with
apache-airflow-providers-cncf-kubernetes 8.3.1 and previous version.
For example:
if the argument is: {"data": "value with spaces"}
The rendered template prints this:
'--data',
'{"data": "value '
'with '
'spaces"}'
But it should be like this:
'--data',
'{"data": "value with spaces"}'
### What you think should happen instead?
The rendered template should not add a return carriage after white spaces
### How to reproduce
Passing arguments with a whitespace on a kubernetes pod operator
### Operating System
Ubuntu 22.04 container
### Versions of Apache Airflow Providers
apache-airflow==2.9.2
apache-airflow-providers-cncf-kubernetes 8.3.1
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
airflow install on linux box.
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]