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

k8s workload: Add support for assumed roles #752

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

ecpullen
Copy link
Contributor

Issue number:

Closes #730

Description of changes:

When trying to access a cluster that was created with an assumed role, we get the error:

time="2023-01-30T23:24:03Z" level=error msg="could not create sonobuoy client: couldn't get sonobuoy api helper: could not get api group resources: Unauthorized"

Now the assume role is used and the test passes:

 NAME                        TYPE         STATE         PASSED     SKIPPED     FAILED
 x86-64-aws-k8s-124          Resource     completed
 x86-64-aws-k8s-124-test     Test         pass          1          0           0

Testing done:

See above

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@ecpullen ecpullen requested review from stmcginnis, webern and etungsten and removed request for stmcginnis January 30, 2023 23:51
@ecpullen ecpullen force-pushed the workload-assume-role branch from a6ca3ca to 16d4403 Compare January 30, 2023 23:52
@ecpullen ecpullen changed the title foo workload: Add support for assumed roles Jan 30, 2023
@ecpullen ecpullen changed the title workload: Add support for assumed roles k8s workload: Add support for assumed roles Jan 30, 2023
@ecpullen ecpullen merged commit 221bb59 into bottlerocket-os:develop Jan 31, 2023
@ecpullen ecpullen deleted the workload-assume-role branch January 31, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workload: Add an assumed role for the K8s workload agent
3 participants