fix: Put KubeletExtraArgs in double quotes for Windows#1082
Conversation
|
/ping @yveslaroche and @bogdanalov-sw |
|
I have successfully tested applying multiple labels and taints for both Linux and Windows nodes using double quotes in the bootstrap scripts with the examples below. In addition, I tested the taints applied in #1004. In this case the node won't register, but if I change the name of one of the keys to something else, it works. Hence, I believe the problem is applying two taints with the same key and effect, but different values. |
|
By reading this awslabs/amazon-eks-ami#179 it sounds like we should use Something like: I haven’t test it yet, but I'm going to dig a bit. When we use single quotes for KubeletExtraAgrs, in linux, you should escape variable: $ echo 'my name is ${USER}'
my name is ${USER}
$ echo 'my name is '${USER}''
my name is foo
I think you can normally provide multiple taints with the same key (by example |
|
Sorry for the typo. I was thinking about |
|
@yveslaroche just made some tests and I can confirm your point. |
It is already quoted in the Bash script. This allows for variable substitution within the string e.g. kubelet_extra_args = "node.kubernetes.io/lifecycle=$(Invoke-WebRequest -Uri http://169.254.169.254/latest/meta-data/instance-life-cycle | Select-Object -ExpandProperty Content)"
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This PR has been automatically closed because it has not had recent activity since being marked as stale. |
|
Are we able to reopen this? What additional items were needed to get this merged? @barryib |
|
I don't use windows at all, so the point is how this different from #1082 (comment) ? There is already a PR to put back single quote for linux workers #1046. I need people to test this. |
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Thanks @yveslaroche ! v17.8.0 has been just released. |
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
Put KubeletExtraArgs in double quotes for Windows, it is already double quoted in the Bash script. This allows for variable substitution within the string e.g.
Checklist