-
Notifications
You must be signed in to change notification settings - Fork 458
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
Enable to add Service Account Name in Katib config #1092
Enable to add Service Account Name in Katib config #1092
Conversation
Can you also please update one example to show how to use this. Is it possible to use different service accounts for different experiments. |
@nrchakradhar In the current implementation it is not possible to use different Service Account for different Experiment. You need to change katib-config every time you want to change service account for the algorithm. |
The main problem is that suggestion does not support serviceaccount, right? |
Yes, suggestion Deployment for some cases can have Service Account. |
Then
LGTM. |
/hold Hold until we decide the solution for this. |
One problem I see is that Suggestions are hidden to a normal user. If it is just used for suggestion deployments, do we need to expose it? |
Service accounts are subjects. So even if some CRs are hidden, is it better they run as part of that service account providing greater isolation. |
@nrchakradhar I meant, putting service account parameter in Experiment API vs Katib config. |
For now, we can merge this implementation with @nrchakradhar I will add documentation about parameters in |
Sounds good |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
/retest |
1 similar comment
/retest |
* Enable to add service account name to katib config * Fix test
Fixes: #1079.
I added functionality to add Service Account Name using Katib config.
We can add Validation part, for example here: https://github.com/kubeflow/katib/blob/master/pkg/webhook/v1alpha3/experiment/validation_webhook.go#L88, to Validate Katib config.
For example, users can't submit Experiment with Service Account, if they don't have appropriate Service Account in Experiment Namespace. I don't know if it useful or not for us.
What do you think @gaocegege @johnugeorge @hougangliu ?
/cc @nrchakradhar.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)