-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Embed vtctld assets #5597
Embed vtctld assets #5597
Conversation
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
I checked out your branch. Just a couple of quick suggestions:
Here's a patch:
Otherwise LGTM |
…Also removed web_dir(2) from docker/K8s yaml configs Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Adding embed_static to the build step causes the rice file to be rebuilt on every make and presumably vtctld and dependent packages get rebuilt too. Is it ok to add this overhead? |
I am okay with it - it didn't seem like it took that long. The alternative is that we commit the rice-boxes (remove from gitignore). The problem I can see with this approach is that there will very likely be merge conflicts if multiple users are editing the source files. @sougou or @deepthi did you have opinions? |
I chatted with sougou and deepthi - lets go with how you have it (regen as a manual step). Make sure you commit the generated file /go/vt/vtctld/rice-box.go to the repo so that users won't have to generate it to build. |
…o git Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps still a conflict on go.mod/go.sum. |
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
…or the old vtctld webapp
Part of #5502
Embedded web/vtctld2 web application assets into vtctld using go.rice.
Hotfixed javascript to fix an issue where a polyfill was causing some versions of chrome not to load the application.
Removed web/vtctld and related code (checked with Sugu, it has been deprecated for some time).
Removed web_dir/web_dir2 config parameters from examples/local/vtctld-up.sh