英文:
Add link to OpenShift console's application selector
问题
我注意到在 ArgoCD 中安装 openshift-gitops
运算符还会在控制台的应用程序菜单中添加一个指向 Argo 的链接。是否有办法我可以在这个菜单中添加自己的链接?
英文:
I've noticed that installing the openshift-gitops
operator in ArgoCD also adds a link to Argo in the console's application(?) menu. Is there a way I can add my own links to this menu?
答案1
得分: 2
以下是已翻译的内容:
刚刚研究了一下 - 您需要按照此处的说明创建一个 ConsoleLink 资源:
https://docs.openshift.com/container-platform/4.9/web_console/customizing-the-web-console.html#creating-custom-links_customizing-web-console
这里有一个示例:
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
name: application-menu-link-1
spec:
href: 'https://www.example.com'
location: ApplicationMenu
text: Link 1
applicationMenu:
section: My New Section
# image that is 24x24 in size
imageURL: https://via.placeholder.com/24
英文:
Just researched this myself - you need to make a ConsoleLink resource following the instructions here:
https://docs.openshift.com/container-platform/4.9/web_console/customizing-the-web-console.html#creating-custom-links_customizing-web-console
Here's an example:
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
name: application-menu-link-1
spec:
href: 'https://www.example.com'
location: ApplicationMenu
text: Link 1
applicationMenu:
section: My New Section
# image that is 24x24 in size
imageURL: https://via.placeholder.com/24
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论