-
Notifications
You must be signed in to change notification settings - Fork 29
🌱 feat: Add ClusterProfile provider with credential providers #55
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
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hdp617 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @hdp617! |
Hi @hdp617, thank you for working on this! As far as I know this seems to be very similar to #48 but implements the new credentials provider functionality. What I like about #48 is that it has more health checks whether a cc @everpeace. Is there any chance to marry both your work so we don't drop one of the two contributions? |
Thank you for your consideration. I also understand Cluster Inventry API currently supports Secret-based cluster access approach and will support Credential Provider-based approach(not yet merged actually). So, I would be appreciate if we can keep both contributions. Actually, I recently introduced an abstraction layer for fetching KubeConfig from ClusterProfile in my branch: multicluster-runtime/providers/cluster-inventory-api/kubeconfigstrategy/interface.go Lines 16 to 24 in d1e2781
I believe the abstraction can unify both secret secret-based approach and credential provider-based approach. So, would you guys mind me trying to merge @hdp617's commit into my branch? Respecting @hdp617 contribution, I will keep him as the author of the merged commit and I will put my name as |
I'm okay with that approach. @hdp617 WDYT? |
I like this. Agreed that this abstraction should work with both models for obtaining cluster credentials. And merging the commit SGTM. Thank you! |
Add a
ClusterProfile
provider with support for credential providers (added in this PR). This provider is based on thekubeconfig
provider with the following changes:ClusterProfile
resources instead of k8s secrets.