-
-
Notifications
You must be signed in to change notification settings - Fork 27
Add Kubernetes service connection as data source #577
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
Add Kubernetes service connection as data source #577
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #577 +/- ##
==========================================
+ Coverage 78.92% 78.94% +0.01%
==========================================
Files 106 107 +1
Lines 12184 12238 +54
==========================================
+ Hits 9616 9661 +45
- Misses 2073 2079 +6
- Partials 495 498 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I added some suggestions to tests to get the coverage above 80%. Hopefully this makes the PR able to be merged? |
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.
One small nit, otherwise LGTM
|
||
req := c.client.OutpostsApi.OutpostsServiceConnectionsKubernetesList(ctx) | ||
if s, ok := d.GetOk("name"); ok { | ||
req = req.Name(s.(string)) |
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.
can remove the if here since name
is marked as required and set that on the request inline
Co-authored-by: Lars Tobias Skjong-Børsting <[email protected]> Signed-off-by: Jens L. <[email protected]>
81d755a
to
d373545
Compare
I was missing this data source, since the authentik helm chart comes with a service connection out of the box.