Skip to content
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

service 以及 ingress的 annotation使用不方便 #104

Open
duanjiong opened this issue Jul 25, 2020 · 3 comments
Open

service 以及 ingress的 annotation使用不方便 #104

duanjiong opened this issue Jul 25, 2020 · 3 comments

Comments

@duanjiong
Copy link
Collaborator

目前每个字段都对应一个annotation, annotation非常多, 在与ks集成的时候, 都需要用户输入很长的annotation key, 很不方便。 是否可以考虑这样, 将众多的annotation就聚合成一个json数据结构, 然后统一放到一个annotation当中。 在ks呈现的时候, 界面中最好只需要填写对应key的值,然后由前端聚合生成json, 这样使用会方便一点。

@duanjiong
Copy link
Collaborator Author

/cc @zheng1

@duanjiong
Copy link
Collaborator Author

总结起来就是, service以及ingress最好只设置一个annotation key, 然后用户在前端配置的时候最好json里面的key由界面显示, 用户只需要填写值, 最后由前端把数据聚合序列化放在annotation当中。

@zheng1
Copy link
Member

zheng1 commented Jul 25, 2020

annotation 还是用字符串会比较好,用户有可能是直接使用kubectl edit来编辑,如果用json的话没有那么方便。

对于前端来说,所有已知的key都可以展示出来,方便用户选择,达到下图的效果。这个已在规划中,并且有相关的设计

截屏2020-07-25 19 33 04

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

No branches or pull requests

2 participants