Add link to OpenShift console’s application selector

huangapple go评论51阅读模式
英文:

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?

Add link to OpenShift console’s application selector

答案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

huangapple
  • 本文由 发表于 2023年2月18日 02:43:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/75488191.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定