-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Escape systemd special chars in docker-env #3997
Escape systemd special chars in docker-env #3997
Conversation
Can one of the admins verify this patch? |
94ce57e
to
106466c
Compare
106466c
to
6f9481c
Compare
bce4bf3
to
e5a6587
Compare
/assign @afbjorklund |
8d7ad3d
to
f451a45
Compare
f451a45
to
e3cd272
Compare
/lgtm /approve Looks good, thanks for the analysis and test cases! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 11janci, afbjorklund The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The --docker-env param is interpolated into systemd unit file for docker engine. Any special characters that systemd provides for use in templates will be interpreted by systemd. Since minikube does not support these special characters in docker-env, we must escape them so that systemd does not interpret them as special chars.
See examples in the below issue.
Note: this PR deals only with the docker-env param which gets inserted into the Environment option of the systemd unit file. Other parts of the file are omitted.
Closes #3812