-
Notifications
You must be signed in to change notification settings - Fork 454
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
Katib UI for v1alpha2 #486
Merged
Merged
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
49d33e8
Init commit
andreyvelich 4aec4f2
Half of backend edit
andreyvelich accf5af
Merge remote-tracking branch 'upstream/master' into v1alpha2-new-ui
andreyvelich ab8fb6c
Backend for v1alpha2 UI is done
andreyvelich d18c7bb
Fix gopkg.toml
andreyvelich d19605b
fix gopkg lock
andreyvelich 767bebb
Almost submit HP job by params done
andreyvelich a88dfeb
Modify gitignore
andreyvelich f9515e9
Add by parameters for HP and NAS done
andreyvelich 6704667
HP and NAS jobs functionality done
andreyvelich 541041f
Template is done
andreyvelich e5c2107
Merge remote-tracking branch 'upstream/master' into v1alpha2-new-ui
andreyvelich 07fd11b
Add new filters in job list
andreyvelich ac240e6
Fix newlines
andreyvelich cc55147
Review changes
andreyvelich a52cb2d
dep ensure
andreyvelich 4f5233a
Merge remote-tracking branch 'upstream/master' into v1alpha2-new-ui
andreyvelich 7e1f138
Fix gopkg
andreyvelich 3da6fab
Add tests for katib-ui
andreyvelich 419f42b
Delete pkg
andreyvelich 8ceb31b
Add pkg
andreyvelich 37deb23
Fetch upstream
andreyvelich aa2eae7
Fix backend
andreyvelich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
|
||
ui "github.com/kubeflow/katib/pkg/ui/v1alpha2" | ||
) | ||
|
||
var ( | ||
port = "80" | ||
) | ||
|
||
func main() { | ||
kuh := ui.NewKatibUIHandler() | ||
|
||
frontend := http.FileServer(http.Dir("/app/build/")) | ||
http.Handle("/katib/", http.StripPrefix("/katib/", frontend)) | ||
|
||
http.HandleFunc("/katib/fetch_hp_jobs/", kuh.FetchHPJobs) | ||
http.HandleFunc("/katib/fetch_nas_jobs/", kuh.FetchNASJobs) | ||
http.HandleFunc("/katib/submit_yaml/", kuh.SubmitYamlJob) | ||
http.HandleFunc("/katib/submit_hp_job/", kuh.SubmitHPJob) | ||
http.HandleFunc("/katib/submit_nas_job/", kuh.SubmitNASJob) | ||
|
||
//TODO: Add it in Katib client | ||
http.HandleFunc("/katib/delete_job/", kuh.DeleteJob) | ||
|
||
http.HandleFunc("/katib/fetch_hp_job_info/", kuh.FetchHPJobInfo) | ||
http.HandleFunc("/katib/fetch_hp_job_trial_info/", kuh.FetchHPJobTrialInfo) | ||
http.HandleFunc("/katib/fetch_nas_job_info/", kuh.FetchNASJobInfo) | ||
|
||
http.HandleFunc("/katib/fetch_trial_templates/", kuh.FetchTrialTemplates) | ||
http.HandleFunc("/katib/fetch_collector_templates/", kuh.FetchMetricsCollectorTemplates) | ||
http.HandleFunc("/katib/update_template/", kuh.AddEditDeleteTemplate) | ||
|
||
http.ListenAndServe(":"+port, nil) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
there is only one deployment for UI, in a single container, both http server and logic to call Katib-manager to operate experiment/trial/metrics.. and converting the results are running, right?
I had thought there would be two deployments (frontend and backend).
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.
It will be one deployment with frontend and backend.
All JS for frontend will be store in
build
folder here: https://github.com/andreyvelich/katib/tree/v1alpha2-new-ui/pkg/ui/v1alpha2/frontend/build/static.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.
I wonder if the container works too heavy.
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.
I think it will be fine, no reason to divide frontend and backend sides.
All frontend builds in a 3 JS files by React.