-
Notifications
You must be signed in to change notification settings - Fork 97
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: add send to slack support #77
Conversation
* fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests
As a general direction here we should pass a client set to the functions instead of a kubeconfig. |
@yonahd I didn't quite understand your idea. I created 2 separate handlers for InCluster and KubeConfig configurations. Could you explain your idea when looking into those 3 functions? |
I don't want to limit any of the functions to only be in cluster or only out of cluster. That's why I want to create the separation of kubeconfig vs service account earlier and regardless pass a clientset to the functions. |
I think I got your idea. But still thinking on how to control that. I mean, when it should authenticate with kubeconfig or when to use |
We can try something like this
and in the command we can do e.g.
|
Agreed and done. Let me know if you need to change something. |
Perfect! |
Sure. I can split it in two. |
My mistake. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #77 +/- ##
==========================================
- Coverage 49.36% 43.58% -5.79%
==========================================
Files 15 16 +1
Lines 1493 1714 +221
==========================================
+ Hits 737 747 +10
- Misses 657 865 +208
- Partials 99 102 +3
☔ View full report in Codecov by Sentry. |
I'd like to condense the slack functions to be part of the |
alright, give me some time to take a look at that. |
@patricktalmeida Is this ready for review? |
Yes it is. |
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.
Overall looks good.
If you can add a screenshot from slack to images(otherwise I'll do it)
Also there is the Readme updates which you can optionally do
FYI I also opened this. |
I'm gonna look into that. |
Well, I believe it would be better if you added it. The cluster I'm testing on has sensitive data. |
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
As discussed in #73, this is a separate PR to add send to Slack support.