Skip to content
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

UI: Support Trial Templates in all namespaces and all configMaps #1083

Merged

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented Mar 12, 2020

After this PR, user can view/add/edit/delete trial templates in all namespaces and all configMaps.
Katib supports to choose any configMap for TrialTemplate, not only default template (trial-template).

Also, I changed view of Templates to looks nicer.

During this change I noticed, that it would be great if user's configMaps with TrialTemplate will be labeled, for example with label app: katib-trial-templates.
I added one example of this configMap in manifests. Without this label it is impossible to find all configMaps with Templates for the user in the UI.

In the future we can implement this feature (adding label to configMap) to the katib-controller, for example, when user submits Experiment with specific ConfigMap for trialTemplate.

Please, take a look.
/assign @johnugeorge @gaocegege @hougangliu
/cc @richardsliu

I still need to fix some small issues and test it, I marked WIP for now.


This change is Reviewable

@andreyvelich
Copy link
Member Author

I think, this PR is ready.
I will remove WIP status.
I tested new functionality and it seems works.

I added Filter Panel to Trial Template View.
Mar-13-2020 01-08-17

Also, I added select boxes for Namespace and ConfigMap for creating Experiments, because it should work with new design.

Templ2

Please, take a look.

@andreyvelich andreyvelich changed the title [WIP] UI: Support Trial Templates in all namespaces and all configMaps UI: Support Trial Templates in all namespaces and all configMaps Mar 13, 2020
@@ -0,0 +1,95 @@
apiVersion: v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am reluctant to have them in v1alpha3 itself as this would confuse users. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will not affect old trail template and controller.
User just can't see old Trial Templates and Submit Experiment by Parameters from the UI, using not labeled trial templates.
Other functionality in the UI will work, so they can submit Experiment using yaml file and monitor Experiments

You think that it is better not include this trial template to manifests in v1alpha3?

@gaocegege
Copy link
Member

LGTM. Awesome.

@andreyvelich
Copy link
Member Author

/retest

@nrchakradhar
Copy link

@andreyvelich I have not seen the code/changes. So please excuse for this question.
Can service account also be specified?

@andreyvelich
Copy link
Member Author

@andreyvelich I have not seen the code/changes. So please excuse for this question.
Can service account also be specified?

Do you mean specifying service account for the Trial Templates?

@nrchakradhar
Copy link

Do you mean specifying service account for the Trial Templates?
Yes

@andreyvelich
Copy link
Member Author

Do you mean specifying service account for the Trial Templates?
Yes

Yes, you can specify service account for the Trials, since it is just a Template with Job, PytorchJob, TFJob yaml. You can make these templates as you wish.

@gaocegege
Copy link
Member

/assign @johnugeorge

/lgtm

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@andreyvelich
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot removed the lgtm label Mar 23, 2020
@johnugeorge
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 3717609 into kubeflow:master Mar 23, 2020
sperlingxx pushed a commit to sperlingxx/katib that referenced this pull request Jul 9, 2020
…eflow#1083)

* UI Support Trial Templates in all namespaces and configMaps

* Change templates yaml
Add FilterPannel to Trial Template View

* Fix problem with adding template to empty configMap

* Support Trial Templates select in Submit Experiment

* Fix comments

* Fix nas module name

* Add version for prettier in Travis
@andreyvelich andreyvelich deleted the ui-template-view-add-name-namespace branch October 6, 2021 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants