Skip to content
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

fix(eks): aws-node-termination-handler incorrectly deployed to on-demand instances as well #12369

Merged
merged 8 commits into from
Jan 14, 2021

Conversation

dirknilius
Copy link
Contributor

fixes #12368

The former implementation was using the string format for submitting Helm values in the CLI (parent.child=value). This does not work here as JavaScript does not expand the string. We need to define the values is the correct hierarchy.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…selector

fixes aws#12368

The former implementation was using the string format for submitting Helm values in the CLI ("parent.child=value"). This does not work here as JavaScript does not expand the string. We need to define the values is the correct hierarchy.
@gitpod-io
Copy link

gitpod-io bot commented Jan 6, 2021

@github-actions github-actions bot added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Jan 6, 2021
@iliapolo iliapolo changed the title fix(aws-eks): fixed the aws-node-termination-handler node selector fix(eks): aws-node-termination-handler incorrectly deployed to on-demand instances as well Jan 10, 2021
iliapolo
iliapolo previously approved these changes Jan 10, 2021
Copy link
Contributor

@iliapolo iliapolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dirknilius Sweet, thanks!

@mergify mergify bot dismissed iliapolo’s stale review January 13, 2021 16:21

Pull request has been modified.

@dirknilius
Copy link
Contributor Author

@iliapolo Hey,

somehow the CodeBuild failed. Unfortunately I cannot download the logs. It just loads with a few kb/s and then stops. I am also not able to run the tests in Gitpod. The docs (CONTRIBUTING.md) states I have to run yarn build. But this cannot work as there is no Docker installed. Also the partial build relies on Docker. How could this work?

packages/@aws-cdk/aws-eks/lib/cluster.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-eks/lib/cluster.ts Outdated Show resolved Hide resolved
@iliapolo
Copy link
Contributor

@dirknilius It was just some linting stuff:

@aws-cdk/aws-cloudwatch-actions: Done in 24.53s.
@aws-cdk/aws-eks: /codebuild/output/src958570000/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-eks/lib/cluster.ts
@aws-cdk/aws-eks:   1453:24  error  Missing space before value for key 'nodeSelector'  key-spacing
@aws-cdk/aws-eks:   1455:12  error  Missing trailing comma                             comma-dangle
@aws-cdk/aws-eks: ✖ 2 problems (2 errors, 0 warnings)
@aws-cdk/aws-eks:   2 errors and 0 warnings potentially fixable with the `--fix` option.
@aws-cdk/aws-eks: Error: /codebuild/output/src958570000/src/github.com/aws/aws-cdk/node_modules/esli

I got this from the Build Logs link of the CodeBuild report, not sure why it didn't open for you...as for the gitpod and partial build, i'll take a look.

I took the liberty and just committed a fix from the review UI, so hopefully it will get merged soon.

Thanks!

@mergify
Copy link
Contributor

mergify bot commented Jan 13, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 2fb224a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 14, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 05c0b5f into aws:master Jan 14, 2021
@dirknilius dirknilius deleted the fix/node-termination-handler branch January 14, 2021 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-eks): spot node termination handler is deployed to all nodes
3 participants