-
Notifications
You must be signed in to change notification settings - Fork 1.8k
pkg/ansible,pkg/helm: import client-go auth plugins #1199
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
pkg/ansible,pkg/helm: import client-go auth plugins #1199
Conversation
Why don't we add all the auth providers to the go Is there a reason to include just the gcp provider by default in the go operators? Or should that be removed and instead be left to the users to handle for go based operators? /cc @hasbro17 |
@AlexNPavel Nice, I didn't realize we were doing that. I'll update the PR to include that. Based on this comment, I'll also move the import closer to the top in a separate section, so we don't accidentally break things if we change imports later. |
@AlexNPavel I think originally we thought it's an unnecessary dependency to include auth plugins that you won't use so we were initially intending for users to include them in their Go based operators as needed. However since more and more users were running into issues on running the operator locally outside GKE we just added the gcp plugin by default. To be more consistent we can either remove all plugins for Go operators and document clearly what users need to add. Or just add everything for them. I'm leaning towards the latter since it works out of the box. And for Helm/Ansible operators we'll definitely need them by default since users can't add the imports themselves. |
I'm now debating where the imports for the Ansible and Helm operators should go. In this PR, they're currently in both
Thoughts? |
@joelanford That seems reasonable to me. |
@hasbro17 @AlexNPavel PTAL |
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
I don't like having to have all of these imported but don't see another way.
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
Description of the change:
Imports all known Kubernetes
client-go
auth plugins in the Helm and Ansible operatorsMotivation for the change:
For Go operators, we plan to add documentation about how users can add auth plugins to their
cmd/manager/main.go
file.However, users of the Ansible and Helm operators don't have that option unless the convert their operator to a hybrid operator using
operator-sdk migrate
.This closes #1178 and closes #1196