-
Notifications
You must be signed in to change notification settings - Fork 561
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
WIP feat: expose additional EKS bootstrap options #2854
WIP feat: expose additional EKS bootstrap options #2854
Conversation
Skipping CI for Draft Pull Request. |
@richardcase: This issue is currently awaiting triage. If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the The 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
{{- if .PauseContainerAccount }} --pause-container-account {{.PauseContainerAccount}}{{- end -}} | ||
{{- if .PauseConatinerVersion }} --pause-container-version {{.PauseConatinerVersion}}{{- end -}} | ||
{{- if .DNSClusterIP }} --dns-cluster-ip {{.DNSClusterIP}}{{- end -}} | ||
{{- if .DockerConfigJson }} --docker-config-json {{.DockerConfigJson}}{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you need to single-quote this? It might contain new-lines and double-quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe even full-blown shell escaping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes i think we will need that to be safe. We didn't have that previously with the kubelet extra args. I will add.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference here is that the arg is meant to contain the content of a whole file, which adds quite some requirements to quoting/escaping. Other args (like kubelet args) usually don't have file contents but instead file paths inside.
{{- if .UseMaxPods }} --use-max-pods {{.UseMaxPods}}{{- end -}} | ||
{{- if .APIRetryAttempts }} --aws-api-retry-attempts {{.APIRetryAttempts}}{{- end -}} | ||
{{- if .PauseContainerAccount }} --pause-container-account {{.PauseContainerAccount}}{{- end -}} | ||
{{- if .PauseConatinerVersion }} --pause-container-version {{.PauseConatinerVersion}}{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, should be PauseConatainerVersion ;) (incl. all other places)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh! Will change, thanks.
Can we add the extra commands for #2771 as that will unblock the ability to add the CAPI API upgrade tests ? |
Yeah good call. I will add that as part of this instead of the launch template change i have been playing with. |
@richardcase I'm planning to use containerd in our EKS clusters which makes this PR a requirement for me. At the same time, I need to specify containerd options to enable docker.io mirroring (thanks to api limits). To make this possible, I created awslabs/amazon-eks-ami#790 to add support for this to At the same time, I prepared a commit that you could cherry-pick into this PR to add support for EDIT: Fixed commit link |
Not now, but I think we should consider a common configuration binary that handles this sort of stuff that can be used by either EKS or Cluster API, as we seem to duplicating common setup tasks across different vendors. |
Yes i would agree that it needs to be sorted so any provider can use it. |
Signed-off-by: Richard Case <richard@weave.works>
@richardcase: PR needs rebase. 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. |
Closing in favor of #2965 |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This change exposes extra EKS bootstrap options for configuration by the user with
EKSConfig
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2853
Special notes for your reviewer:
Checklist:
Release note: