-
Notifications
You must be signed in to change notification settings - Fork 54
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
✨ Wire up Service Account #1038
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1038 +/- ##
==========================================
- Coverage 72.50% 72.25% -0.26%
==========================================
Files 32 32
Lines 1884 1903 +19
==========================================
+ Hits 1366 1375 +9
- Misses 383 389 +6
- Partials 135 139 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cfgGetter, err := helmclient.NewActionConfigGetter(mgr.GetConfig(), mgr.GetRESTMapper(), | ||
helmclient.StorageNamespaceMapper(installNamespaceMapper), | ||
helmclient.ClientNamespaceMapper(installNamespaceMapper), | ||
helmclient.RestConfigMapper(restConfigMapper), |
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.
If this lands soon, all good. But just wanted to let you know that I'm working on making REST config mapping handle storage and client interactions separately. The intent is that we would use our own service account for storage (since that is an implementation detail of our controller) and we would only use the ClusterExtension's service account for the helm client's REST config.
See:
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.
Thanks for the heads up! I spoke with @theishshah and I think we will focus on getting this in using the soon-to-be-deprecated RestConfigMapper
option and as a follow up address this (if the helm-operator-plugins changes land before this gets in)
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
Signed-off-by: Ish Shah <ishah@redhat.com>
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
//+kubebuilder:rbac:groups=core,resources=serviceaccounts/token,verbs=create | ||
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get |
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.
For other reviewers, the serviceaccounts/token permissions were required to get tokens for a provided SA and the customresourcedefinitions permissions are for the CRD Upgrade Safety preflight checks
95b9f0d
This reverts commit 95b9f0d.
* add logic to return service account Signed-off-by: Ish Shah <ishah@redhat.com> * update permissions and anon token Signed-off-by: Ish Shah <ishah@redhat.com> * updated role yaml Signed-off-by: Ish Shah <ishah@redhat.com> * clean up imports Signed-off-by: Ish Shah <ishah@redhat.com> * update e2e tests Signed-off-by: Ish Shah <ishah@redhat.com> * fix lint Signed-off-by: Ish Shah <ishah@redhat.com> * extension developer test fixed Signed-off-by: Ish Shah <ishah@redhat.com> * stand up sa for upgrade test Signed-off-by: Ish Shah <ishah@redhat.com> * fixed upgrade test Signed-off-by: Ish Shah <ishah@redhat.com> * linting for extension test Signed-off-by: Ish Shah <ishah@redhat.com> --------- Signed-off-by: Ish Shah <ishah@redhat.com>
* add logic to return service account Signed-off-by: Ish Shah <ishah@redhat.com> * update permissions and anon token Signed-off-by: Ish Shah <ishah@redhat.com> * updated role yaml Signed-off-by: Ish Shah <ishah@redhat.com> * clean up imports Signed-off-by: Ish Shah <ishah@redhat.com> * update e2e tests Signed-off-by: Ish Shah <ishah@redhat.com> * fix lint Signed-off-by: Ish Shah <ishah@redhat.com> * extension developer test fixed Signed-off-by: Ish Shah <ishah@redhat.com> * stand up sa for upgrade test Signed-off-by: Ish Shah <ishah@redhat.com> * fixed upgrade test Signed-off-by: Ish Shah <ishah@redhat.com> * linting for extension test Signed-off-by: Ish Shah <ishah@redhat.com> --------- Signed-off-by: Ish Shah <ishah@redhat.com>
Description
#973 Add functionality to use Service Account