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): fargate profile role not added to aws-auth by the cdk #8447

Merged
merged 3 commits into from
Jun 9, 2020

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Jun 9, 2020

When a Fargate Profile is added to the cluster, we need to make sure the aws-auth config map is updated from within the CDK app. EKS will do that behind the scenes if it's not done manually, but this means that it would be an out-of-band update of the config map and will be overridden by the CDK if the config map is updated manually.

Fixes #7981


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

When a Fargate Profile is added to the cluster, we need to make sure the aws-auth config map is updated from within the CDK app. EKS will do that behind the scenes if it's not done manually, but this means that it would be an out-of-band update of the config map and will be overridden by the CDK if the config map is updated manually.

Fixes #7981

BREAKING CHANGE: `cluster.awsAuth` can now return `undefined` if the cluster is not kubectl-enabled. This ensures that users take into account the fact that the cluster may not support aws-auth updates. In most cases, it's sufficient to just use this syntax `cluster.awsAuth?.addxxx` to conditionally update aws-auth.
@eladb eladb requested a review from njlynch June 9, 2020 12:37
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 9, 2020
@eladb eladb changed the title fix(eks): fargate profile role is not added to aws-auth by the cdk fix(eks): fargate profile role not added to aws-auth by the cdk Jun 9, 2020
Copy link
Contributor

@njlynch njlynch left a comment

Choose a reason for hiding this comment

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

BREAKING CHANGE: cluster.awsAuth can now return undefined if the cluster is not kubectl-enabled.

I'm not seeing any changes to Cluster that would change the behavior of awsAuth. Am I missing something, or was this from a previous/outdated change/attempt?

@eladb
Copy link
Contributor Author

eladb commented Jun 9, 2020

BREAKING CHANGE: cluster.awsAuth can now return undefined if the cluster is not kubectl-enabled.

I'm not seeing any changes to Cluster that would change the behavior of awsAuth. Am I missing something, or was this from a previous/outdated change/attempt?

Yes. I reverted this change. Updated description.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: aba8eaa
  • 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 Jun 9, 2020

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: 04cf28e
  • 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 Jun 9, 2020

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 f656ea7 into master Jun 9, 2020
@mergify mergify bot deleted the benisrae/fix-fargate-profile-aws-auth branch June 9, 2020 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aws-eks] fargate profile issue in aws-auth config map
3 participants