-
Notifications
You must be signed in to change notification settings - Fork 873
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(analysis): Adding field in YAML to provide region for Sigv4 signing. #2794
Conversation
@lewinkedrs You will need to run |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #2794 +/- ##
==========================================
- Coverage 81.68% 81.67% -0.02%
==========================================
Files 133 133
Lines 20178 20188 +10
==========================================
+ Hits 16483 16489 +6
- Misses 2843 2847 +4
Partials 852 852
☔ View full report in Codecov by Sentry. |
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
Hey @zachaller is there a contributors guide or somewhere that says what I need. I guess i need a go-proto library but i see there are a few different ones out there:
|
Hey @zachaller thanks for the link, i was able to get started and get all the necessary packages. However, I am running into an error when running
I take it this is because I modified v1alpha1 as part of this PR. Was there somewhere else I was supposed to add the field for the sigv4 region? Have you seen this error before? Some I tried doing |
@lewinkedrs can you try moving the repo outside of your GOPATH directory if that is where you have it placed? |
He @zachaller I have tried this both in and out of my $GOPATH and still get the same error. I also tried to just reinstall go and still get it. Here is my output from
|
I ran codegen but I am wondering if it makes more sense to just document setting an ENV var? I am not sure how much I care for AWS specific configuration under generic prometheus config. fyi, I think the env var you set is |
While this does technically work, IMO it is a very nice convenience factor to just pass in the appropriate region in the yaml spec for the analysis, just because IRSA does not provide the region as an ENV var. Perhaps there is also the case where you want to do run an analysis against AMP that lives in a different region. For example, have an analysis template that points at us-east-2 AMP and one at us-west-2 AMP. There are a lot of other open source tools that provide similar helper functionalities to interact with Sigv4 and prometheus such as grafana and open telemetry. |
Ahh yea the multi region per controller use case would not work well with env good callout. I am trying to think if we want to add say an |
We could add the full SigV4 config the same way it is done in Prometheus. The spec would look something like this:
I think in the case of argo though the rest of the fields (access key, secret key, role arn) would almost certainly be coming from the service account. |
Yea if you could update pr to add a top level aws section then something like below, this will just allow us to be a little forward thinking in being able to add more config at a later date if needed/requested
|
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
Signed-off-by: Kevin Lewin <lewinke@amazon.com>
@zachaller I updated this to look as follows:
I was thinking that top level I am still having issues running make codegen and getting all tests to pass. So any help there would be greatly appreciated. |
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! |
Are you going to have this merged folks? |
Checklist:
Fixes #2458
"fix(controller): Updates such and such. Fixes #1234"
.This provides a region field in the analysis template prometheus_type. The region is then passed into the Sigv4 signer in order to succesfully sign the request as per the sigv4 doc