-
Notifications
You must be signed in to change notification settings - Fork 618
feat: Supporting using pod default credentials for Integration Source and Sink #8731
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
Conversation
|
Welcome @qswinson! It looks like this is your first PR to knative/eventing 🎉 |
|
Hi @qswinson. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8731 +/- ##
==========================================
+ Coverage 50.23% 50.60% +0.36%
==========================================
Files 409 409
Lines 26665 26707 +42
==========================================
+ Hits 13396 13515 +119
+ Misses 12427 12341 -86
- Partials 842 851 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/retest |
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
Added a question for the maintainers.
| AccessKey string `json:"accessKey,omitempty"` | ||
|
|
||
| // SecretKey is the AWS secret access key. | ||
| SecretKey string `json:"secretKey,omitempty"` |
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.
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.
yes, that is via secret and there populated
|
/retest |
|
@qswinson I don't think it's a flake but a side-effect of something in your PR. Looking at the testgrid here the test is stable - https://testgrid.k8s.io/r/knative-own-testgrid/eventing#continuous&include-filter-by-regex=TestIntegrationSourceWithTLS |
| }...) | ||
| } else { | ||
| envVars = append(envVars, corev1.EnvVar{ | ||
| Name: "CAMEL_KAMELET_AWS_S3_SOURCE_USEDEFAULTCREDENTIALSPROVIDER", |
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.
I think we should use the new version of supported ENV_VARs, seE: https://github.com/knative-extensions/eventing-integrations/blob/main/aws-s3-sink/properties.adoc
/cc @christophd
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.
yes +1 for more readability
|
@matzew: GitHub didn't allow me to request PR reviews from the following users: christophd. Note that only knative members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test reconciler-tests_eventing_main |
|
/lgtm |
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
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, qswinson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
I pushed a change increase the timeout. The reconciler failures were from cert manager certs not being deleted fast enough. |
|
/lgtm |
|
thanks @qswinson 🎉 |
Fixes #8437
Proposed Changes
This PR adds support for using the pod AWS default credentials for IntegrationSource and IntegrationSink resources. It adds an optional property
.spec.aws.auth.serviceAccountNameto specify the ServiceAccount the pod should run as. The ServiceAccount applies the desired role to the pod as the default credentials.This change requires the latest images from
aws-*-sourcein order for the CameluseDefaultCredentialsProviderproperty to be loaded from the environment variable.Pre-review Checklist
Release Note
Docs
knative/docs#6394