Skip to content

hud: show unbuilt k8s resources#905

Merged
hyu merged 7 commits into
masterfrom
hanyu/ch1137/show-unbuilt-k8s-resources
Jan 3, 2019
Merged

hud: show unbuilt k8s resources#905
hyu merged 7 commits into
masterfrom
hanyu/ch1137/show-unbuilt-k8s-resources

Conversation

@hyu

@hyu hyu commented Jan 2, 2019

Copy link
Copy Markdown
Contributor

The goal here is to indicate to the user that we have successfully parsed their K8s YAML, and encourage them to fill out their Tiltfile further.

I'm not saying this is the best sentence ever...
The YAML loaded from the Tiltfile includes these K8s objects:

...But it's an attempt at being a bit more "friendly" and informative about what's on the UI. We can also add a prompt to encourage people to add Dockerfile info to remove "unresourced" items from this Yaml soup. (It's not in this PR because I haven't figured out good wording yet.)

Further enhancements not part of this first effort

(unless you have a compelling argument otherwise?)

  • Open k8s_yaml item by default when no docker_build has been defined.
  • De-dupe the list of resources (ex: hanyu-hypothesizer (Service, Deployment))
  • Only show Services and/or Deployments (nix Roles, Rolebindings, Secrets... or just de-emphasize them?)
  • Better prompt

screen shot 2019-01-02 at 4 14 48 pm

@hyu
hyu requested a review from nicks January 2, 2019 21:21
Comment thread internal/hud/resourceview.go Outdated
Comment thread internal/hud/view/view.go Outdated
Comment thread internal/store/engine_state.go Outdated
},
},
LastDeployTime: s.GlobalYAMLState.LastSuccessfulApplyTime,
ResourceInfo: view.YamlResourceInfo{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i wonder if this means IsYAMLManifest should be a method whether than a field now, since it's now equivalent to len(ResourceInfo) > 0

Comment thread internal/hud/view/view.go Outdated
@nicks

nicks commented Jan 2, 2019

Copy link
Copy Markdown
Contributor

this is a great start, lgtm!

@hyu
hyu merged commit 4adb6af into master Jan 3, 2019
@hyu hyu changed the title Show unbuilt k8s resources ui: unbuilt k8s resources Jan 4, 2019
@hyu hyu changed the title ui: unbuilt k8s resources ui: show unbuilt k8s resources Jan 4, 2019
@hyu hyu changed the title ui: show unbuilt k8s resources hud: show unbuilt k8s resources Jan 4, 2019
@landism
landism deleted the hanyu/ch1137/show-unbuilt-k8s-resources branch April 16, 2019 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants