-
Notifications
You must be signed in to change notification settings - Fork 82
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
Allow setting custom nodeagent container images #1094
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
fb92924
to
7689fd2
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
@@ -137,7 +149,10 @@ function computeVpcCniYaml(cniYamlText: string, args: VpcCniInputs): string { | |||
env.push({ name: "AWS_VPC_ENI_MTU", value: "9001" }); | |||
} | |||
if (args.image) { | |||
daemonSet.spec.template.spec.containers[0].image = args.image.toString(); |
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.
note: previously the logic depended on the ordering of containers which is error-prone. I've updated the code to do a scan instead.
7689fd2
to
17a4044
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
17a4044
to
3f5f083
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
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.
LGTM modulo naming question
3f5f083
to
457310b
Compare
457310b
to
901c517
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
### Proposed changes This PR exposes an additional option for `VpcCni` resources. The `nodeImage` option will allow users to specify a custom `aws-eks-nodeagent` container image. #### Changes made: - Added logic to enable customizing nodeagent container images - Added jest unit test to validate images can be set - Exposed the `nodeImage` option as a customizable argument in schema - Rebuilt SDKs ### Related issues (optional) Fixes: #1078
Proposed changes
This PR exposes an additional option for
VpcCni
resources. ThenodeImage
option will allow users to specify a customaws-eks-nodeagent
container image.Changes made:
nodeImage
option as a customizable argument in schemaRelated issues (optional)
Fixes: #1078