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

feat(eks): using kubectl role for kubectl handler lambda #13378

Closed
wants to merge 2 commits into from

Conversation

aka-toxa
Copy link
Contributor

@aka-toxa aka-toxa commented Mar 3, 2021

This resolves issue#12107
we remove intermediate IAMRole for kubectl-provider and directly use kubectl role

@iliapolo I have no idea how to properly make a unittests there can you help please?


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

@gitpod-io
Copy link

gitpod-io bot commented Mar 3, 2021

@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Mar 3, 2021
@mergify
Copy link
Contributor

mergify bot commented Mar 3, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@aka-toxa aka-toxa changed the title using kubectl role for kubectl handler lambda feat(eks): using kubectl role for kubectl handler lambda Mar 3, 2021
@github-actions github-actions bot added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Mar 3, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: aa6eaca
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@iliapolo
Copy link
Contributor

iliapolo commented Mar 4, 2021

@aka-toxa

I have no idea how to properly make a unittests there can you help please?

What specifically? We don't have unittests for the lambda handler, the integ tests should cover that. And as far the provider is concerned, I would just a test that validates the role of the handler is the same as cluster.kubectlRole.

Or did you mean something else?

@nija-at nija-at removed the @aws-cdk/aws-lambda Related to AWS Lambda label Mar 4, 2021
@nija-at nija-at removed their assignment Mar 4, 2021
@aka-toxa
Copy link
Contributor Author

aka-toxa commented Mar 4, 2021

ah yeah I didn't seen that existing integ tests are failed. thought that there is no tests for provider at all.

@iliapolo
Copy link
Contributor

@aka-toxa Can this be closed in favor of #14689 ?

@aka-toxa
Copy link
Contributor Author

@iliapolo yes
are you happy with #14689 approach? I can carry on with tests there

@aka-toxa aka-toxa closed this May 25, 2021
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.

(eks): need to override kubectl handler lambda IAM role
4 participants