Commit Graph

21 Commits

Author SHA1 Message Date
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Yuan (Bob) Gong fc13417362
[UI] Better logging in UI server (#3197) 2020-03-02 20:49:37 -08:00
Eterna2 2ec2fd23c5 [Frontend] unit tests for node server (#2745)
* Add unit tests for aws-helper and minio-helper.

* Break up server.ts into app.ts and handlers/*.ts so that unit test can be written more easily.

* update @types/node because of https://github.com/microsoft/TypeScript/issues/32333

* upgrade kubernete-client version to be compatible with new @types/node version

* fix bug: AWSInstanceProfileCredentials.profile() returns a promise not a string

* remove I prefix from interfaces. minor fixes on lint errors.

* fix format errors

* Added more unit tests, and minor fixes.

* Fix comment: GKS should be GKE

* use jest.resetAllMocks instead of reset each mock individually

* fix format for helper test
2020-01-05 20:43:40 -08:00
dldaisy 5c27fa82c8 Support choosing tensorboard version from UI (#2690)
* Support select tensorflow image for tensorboard

* modify test for tensorflow version select

* delete not available image entry

* Support tensorflow image selection to run tensorboard

* format code with prettier

* use HasPrefix instead of regexp

* delete

* modified tensorboard test

* delete tensorboard

* modify typo

* test tensorboard

* tensorboard test

* fuck

* fuck2

* modify test

* modify typo in tensorboard hint

* npm run format

* modify tensorboard snapshot

* compatible with previous kfp version. Allow vacant tensorflowImage field.

* add 2 tests for dialog

* modify default tensorflow image to 1.13.2

* merge get version and get tensorboard; let --bind_all support tensorboard3.x

* modify reconciler.go

* reconciler rollback

* modify corresponding test for --bind_all

* modify requested chances 12/23

* formControl sorted alphabetically

* select sorted alphabetically

* modify details from PR request 12/24

* moidfy format

* modify details 12/23

* modify snapshot

* retest

* retest
2019-12-24 03:39:29 -08:00
Yuan (Bob) Gong e86e40907b [UI] Pass namespace to APIs (#2676)
* Format other frontend code using prettier

* Regenerate frontend api clients

* Pass namespace to CreateRun api request

* Fetch logs from pod namespace

* Fix log handler cannot work with pod name only query bug

* Fix and refactor existing tests

* Unit test adding namespace to create run api call.

* Remove unneeded snapshot

* Fix lint errors

* Consistently use resource reference id for namespace
2019-12-17 09:07:59 -08:00
Yuan (Bob) Gong 4500d244d7 Format other frontend code using prettier (#2717) 2019-12-11 05:04:06 -08:00
Yuan (Bob) Gong 675b1cde81 [UI] Get kubeflow namespace from kfp UI (#2655)
* Get kubeflow namespace from kfp UI

* Add a react context that makes namespace available anywhere.

* Move KFP_FLAGS check to index.tsx

* Update index.tsx
2019-11-27 22:15:04 -08:00
Yuan (Bob) Gong e7b3bdd65d
Fix UI in kubeflow deployment 2019-11-26 17:15:10 +08:00
Yuan (Bob) Gong bd6adfe986 Frontend server: add feature flag for kubeflow deployment (#2631)
* Frontend server: add feature flag for multi user

* Change to load index html on start up

* Adjust env variable to deployment

* Update server.ts
2019-11-25 19:35:10 -08:00
Eterna2 aa2d2f42b3 [pipeline-ui] Retrieve pod logs from argo archive (#2081)
* Retrieve pod logs from argo archive

* Added aws instance profile iam credential support for minio client. Read workflow status for argo archive location for pod logs.

* fix minor typo, and enforce typing for minio client options

* Update helm chart for pipelines ui role with permission to access secret and workflow crd

* remove unnecessary type cast

* Fix bug: s3client should be a callable, so that iam token is refreshed
2019-11-07 16:58:18 -08:00
Riley Bauer 8d196d4dec Adds Metadata Artifacts to UI (#2057)
* Working, though the request seems malformed

* Working with grpc-web. trying to push to cluster

* WIP

* With great hax come great success

* Begin moving some metadata UI pages to KFP

* Artifact list and details pages work! A lot of clean up is needed. Look for console.log and TODO

* Clean up

* Fixes filtering of artifact list

* More cleanup

* Revert ui deployment

* Updates tests

* Update envoy deployment
2019-09-06 13:19:19 -07:00
Kirin Patel 32ed27a98f Add endpoint to allow custom visualizations (#1931)
* Added support for custom visualizations to the VisualizationCreator component

* Add support for enabling/disabling custom visualizations

* Added mock-backend support for new api endpoint

* Changed allowCustomVisualization to be a prop
2019-08-26 14:22:37 -07:00
Eterna2 af456bcc61 [front-end-server] Allow viewer:tensorboard podTemplateSpec to be customizable (#1906)
* Allow front-end server to provide custom viewer podTemplateSpec via path/configmap

* Fix JSON.parse input to string
2019-08-22 11:08:33 -07:00
jingzhang36 bf6fee9bbb Add a helper function to create tensorboard crd (#1237)
* Add a helper function to create a tensorboard crd.

* Add a helper function to create a tensorboard crd.

* Remove optional parameter "pretty".

* Reuse constants when possible

* createTensorboardInstance, getTensorboardInstance, waitForTensorboardInstance

* Revise getTensorboardHandler and createTensorboardHandler to use getTensorboardInstance
and createTensorboardInstance

* remove trailing spaces

* Fix comment

* Ajust paremeter values.

* stringfy error objects; change 'plural' to 'viewer'

* Change 'plural' to 'viewers'

* Use derived namespace (instead of hardcoded kubeflow) to create viewer
 CRD. Derive viewer CRD's name from log dir.

* Adjust local dns

* Add GCP credentials for viewer resource.

* Address pr reviews

* auto formatting

* 1. viewer controller propagates credentials when creating pod
2. set credentials in viewer crd

* Put credentials info in PodTemplateSpec

* Cleanup not-to-be-included changes.

* Empty line

* Formatting

* Remove a duplicate include

* add crypto-js dependency

* Add path prefix

* Update k8s-helper.ts

* (1) set viewer service port be 6006 (2) trailing / is required for tensorboard path

* Remove url address encoding

* Remove an accidental change

* Formatting

* Add comment and TODO

* Change 6006 back to 80

* Remove deprecated functions from k8shelper. Revise some comments.

* Use getNamespacedCustomobject

* Try to fix unit test for the tensorboard.tsx change

* Re-arrange func order

* Polish comments

* When there is no existing tensorboard, GetNamespacedCustomObject's promise is reject, and in case of that reject, use ''
2019-06-20 13:00:36 -07:00
Riley Bauer 918f197c0e Updates Google Cloud Storage and pins axios version (#1415)
* Updates Google Cloud Storage and pins axios version

* Small fix
2019-06-03 18:07:01 -07:00
Eran Nussbaum 2da723c2fa Add HTTP/HTTPS support in FE (#1339)
* Add HTTP/HTTPS support in FE

* Fix typo (HTTP instead of HTTPS)
2019-05-19 21:41:11 -07:00
Eterna2 4eeeb6e224 [Frontend] minio client in API server can be configured with environment variables (#1324)
* kfp frontend API service can configure minio client params thru env vars

* minio endpoint is composed from host and namespace to support k8s yaml

* Added kustomize patch for pipeline-ui deploy
2019-05-14 17:38:18 -07:00
Riley Bauer 1ab4315d0d Shows link to Stackdriver logs if logs retrieval fails and cluster is running in GKE (#1310)
* Shows link to Stackdriver logs if logs retrieval fails and cluster is running in GKE

* Add additional link for new k8s stackdriver resource names

* Fix spacing
2019-05-13 12:35:10 -07:00
Jiaxin Shan 5c850b92b1 Frontend - Add support for artifacts stored in S3 (#1278)
* Add s3 and local support for artifact viewer

* Remove local file support and use ViewerCRD instead

* Fix condition failed tests

* Keep using minio for metadata manifests
2019-05-06 13:47:42 -07:00
Riley Bauer 4de20179c6 Update to version 3.0.2 of npm package 'extend' (#1211)
* Update to version 3.0.2 of npm package 'extend'

* Use 'new' with Storage
2019-04-24 10:24:10 -07:00
Pascal Vicaire 633e2ddcc8 Initial commit of the kubeflow/pipeline project. 2018-11-02 14:02:31 -07:00