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 changes #7122
Comments
Likewise please copy @jackgr. |
I've made a partial pass at updating the README it still needs a bit more work. |
I'll be taking a look at some of the P0's (I'm a friend of @preillyme) |
Thanks @djvirgen |
@lavalamp I'm not sure what the best way to handle the shippable configuration will be. Based on what I was reading last night it didn't look like you can nest configurations? But we need something like: https://github.com/lucassus/angular-seed/blob/master/shippable.yml for the Web UI. I'm curious what are your thoughts? Also @djvirgen do you have any experience with this? |
@preillyme I'm not sure, but you can try to modify our existing .yml file to install both go and ui stuff, and send a (WIP) PR to see what shippable does with it. |
@preillyme what configurations would you like to nest? xvfb? |
@avinci yeah basically need to be able to test the Web UI https://github.com/GoogleCloudPlatform/kubernetes/tree/master/www and the main Go based Kubernetes code separately. We currently use xvfb with the chrome driver for various tests. |
I've been working on getting everything working in a Docker container for testing the WebUI. Just wanted to share my Docker container and share some notes on using it.
|
@preillyme, you can do this by starting a kube service inside the container on a port and then starting your protractor service to test it on an another. We have a sample project that does this using node and selenium. server.js starts up a web server, in this case can be a kube master and then its using nightwatch to run tests on it. https://github.com/shippableSamples/sample_node_selenium does this help? We are also working on a kube based build clusters which will allow doing this cross containers in the next 3-4 weeks which should make it even easier. I am traveling and might be delayed in responding. Can we do a quick 10 minute hangout so that I understand this better if I am off base here. |
Additional issues:
|
And the starting URL isn't discoverable. |
@bgrant0607 I'm working on cleaning up these issues and updating documentation.
I'll add back breadcrumb functionality which was in an earlier version to help with navigation
These were a placeholder included for future functionality and to serve as an example for other component developers. We aren't using them right now so I'll be disabling them.
The last 3 are all straightforward html/css changes which I will get to today/tomorrow. |
These issues impact the Graph tab, which was developed concurrently with the chrome and Dashboard tab, and will be submitted shortly. It follows the model that the UI can be extended by adding tabs. However, this model only works well if the chrome is stable, usable and discoverable. |
@bcbroussard Thanks. In what timeframe? We're pushing hard towards our 1.0 release candidate. |
@bgrant0607: You can get to the WebUI at the following url: I typically test locally with the following flow:
|
After discussion with @preillyme, it turns out that most, if not all, of these issues were created by a late commit (https://github.com/kubernetes-ui/kubernetes-ui-private/commit/3b46bc4cd74b9088c08e7c102abcd658edd2d597) from one of our team members, which did a large refactoring and removed some key pieces that should not have been removed. All of the functionality was working when we demo'ed at Galvanize on 2/25. @preillyme is working on restoring the broken functionality. |
|
@bgrant0607 I agree with you completely that the top level path is not obvious nor intuitive. I'm happy to have it changed to something a bit more discoverable. It's mostly an artifact of the original Web UI and the fact that it's using AngularJS for the routing. |
Is the graph component going to be merged into this repo? |
@lavalamp : Looking at the original list above, there are two items that might want to be done differently...
The concern is totally legitimate - i.e., make sure we have current ui bits. However, writing those tests would be hard because neither of the assertions is easy to prove. Another way to address the concern is to generate the ui bits during a build-cross.sh, instead of checking them into the repository. So, that begs the question of how to generate the ui bits. The approach i'm considering is to:
Would you consider that a reasonable replacement for the two tests in question? |
@jackgr Yes, that's fine, as long as hack/build-go.sh continues to work (i.e., you can build the repo outside of the container, too-- this is important for tools that need to build); in practice this may mean that you keep a dummy UI go file checked in which is replaced by the real UI when you do the "real" release-building process. |
@abonas Yes, the Graph tab will be merged into this repo. Goal is to have it in by 0.18. |
Thanks for letting me know
|
Update README to address issues in kubernetes/kubernetes#7122 Providing a bit more clarity to how to test and develop the kubernetes Web UI.
UI is gone. |
These items block further progress on the UI. I'm merging #7056 so we can make progress, but it is in general not yet safe to accept UI changes because we are missing various supporting functionality: we don't have enough automated checks in place. Please copy me (@lavalamp) on all UI changes.
P0 items: (I'm unlikely to accept UI changes that aren't working towards fixing one of these issues)
npm install; npm start
(i.e., hack/build-ui.sh has been run)npm install; npm start
has been correctly run (the packaged js/css/html files have been assembled from source)P1 items:
The text was updated successfully, but these errors were encountered: