apiVersion: v1
kind: ConfigMap
metadata:
  name: zcp-portal-service-meta-config
  namespace: zcp-system
  labels:
    component: zcp-portal-ui
data:
  addOnServiceMetaData.json: |
    [
      {
        "id": "monitoring",
        "name": "Monitoring",
        "order": 10,
        "url": "https://monitoring.cloudzcp.io/login/generic_oauth",
        "target": "blank",
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager"
          ]
        },
        "enable": true
      },
      {
        "id": "logging",
        "name": "Logging",
        "order": 11,
        "url": "https://logging.cloudzcp.io",
        "target": "blank",
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager"
          ]
        },
        "enable": true
      },
      {
        "id": "alert",
        "name": "Notifications",
        "order": 12,
        "url": "/alert",
        "target": "self",
        "sub": [
          {
            "id": "alerting",
            "name": "Alerting",
            "order": 1,
            "url": "/alert/alerts",
            "target": "self",
            "enable": true
          },
          {
            "id": "channel",
            "name": "Channel",
            "order": 2,
            "url": "/alert/channels",
            "target": "self",
            "enable": true
          },
          {
            "id": "rules",
            "name": "Rules",
            "order": 3,
            "url": "/alert/rules",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin"
          ]
        },
        "enable": true
      },
      {
        "id": "devops",
        "name": "DevOps",
        "order": 20,
        "url": "/wsh",
        "target": "",
        "sub": [
          {
            "id": "jenkins",
            "name": "빌드 및 배포",
            "order": 1,
            "url": "https://devops.cloudzcp.io",
            "target": "blank",
            "enable": true
          },
          {
            "id": "repository",
            "name": "소스 저장소",
            "order": 2,
            "url": "https://git.cloudzcp.io/user/oauth2/keycloak",
            "target": "blank",
            "enable": true
          },
          {
            "id": "registry",
            "name": "Image Registry",
            "order": 5,
            "url": "https://registry.cloudzcp.io",
            "target": "blank",
            "enable": true
          },
          {
            "id": "/wsh",
            "name": "Web SSH",
            "order": 6,
            "url": "/index.html#/wsh",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        },
        "enable": true
      },
      {
        "id": "catalog",
        "name": "Catalog",
        "order": 30,
        "url": "https://catalog.cloudzcp.io",
        "target": "blank",
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin"
          ]
        },
        "enable": true
      },
      {
        "id": "cluster",
        "name": "Cluster 관리",
        "order": 31,
        "url": "/management",
        "target": "",
        "sub": [
          {
            "id": "namespace",
            "name": "네임스페이스",
            "order": 1,
            "url": "/management/namespaces",
            "target": "self",
            "enable": true
          },
          {
            "id": "user",
            "name": "Users",
            "order": 2,
            "url": "/management/users",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager"
          ]
        },
        "enable": true
      },
      {
        "id": "app",
        "name": "App",
        "url": "/resources/workloads",
        "target": "",
        "order": 21,
        "enable": true,
        "sub": [
          {
            "id": "deployment",
            "name": "Deployment",
            "order": 1,
            "url": "/index.html#/resources/workloads/deploy",
            "target": "self",
            "enable": true
          },
          {
            "id": "statefulset",
            "name": "StatefulSet",
            "order": 2,
            "url": "/index.html#/resources/workloads/sts",
            "target": "self",
            "enable": true
          },
          {
            "id": "cronjob",
            "name": "CronJob",
            "order": 3,
            "url": "/index.html#/resources/workloads/cronjob",
            "target": "self",
            "enable": true
          },
          {
            "id": "job",
            "name": "Job",
            "order": 4,
            "url": "/index.html#/resources/workloads/job",
            "target": "self",
            "enable": true
          },
          {
            "id": "pod",
            "name": "Pod",
            "order": 5,
            "url": "/index.html#/resources/workloads/pod",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        }
      },
      {
        "id": "network",
        "name": "Network",
        "url": "/resources/networks",
        "target": "",
        "order": 22,
        "enable": true,
        "sub": [
          {
            "id": "service",
            "name": "Service",
            "order": 1,
            "url": "/index.html#/resources/networks/svc",
            "target": "self",
            "enable": true
          },
          {
            "id": "ingress",
            "name": "Ingress",
            "order": 2,
            "url": "/index.html#/resources/networks/ing",
            "target": "self",
            "enable": true
          },
          {
            "id": "network-policy",
            "name": "NetworkPolicy",
            "order": 3,
            "url": "/index.html#/resources/networks/netpol",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        }
      },
      {
        "id": "resource",
        "name": "Resource",
        "url": "/resources/data",
        "target": "",
        "order": 23,
        "enable": true,
        "sub": [
          {
            "id": "configmap",
            "name": "ConfigMap",
            "order": 1,
            "url": "/index.html#/resources/data/cm",
            "target": "self",
            "enable": true
          },
          {
            "id": "secret",
            "name": "Secret",
            "order": 2,
            "url": "/index.html#/resources/data/secret",
            "target": "self",
            "enable": true
          },
          {
            "id": "others",
            "name": "Others",
            "order": 3,
            "url": "/index.html#/resources/data-others/ev",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        }
      },
      {
        "id": "storage",
        "name": "Storage",
        "url": "/index.html#/resources/volumes",
        "target": "",
        "order": 24,
        "enable": true,
        "sub": [
          {
            "id": "pvc",
            "name": "PVC",
            "order": 1,
            "url": "/index.html#/resources/volumes/pvc",
            "target": "self",
            "enable": true
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        }
      },
      {
        "id": "zdb",
        "name": "ZDB",
        "order": 32,
        "url": "https://zdb.cloudzcp.io",
        "target": "blank",
        "role": {
          "clusterRoles": [
            "cluster-admin"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        },
        "enable": true
      },
      {
        "id": "guide",
        "name": "Support",
        "order": 33,
        "url": "/guide",
        "target": "",
        "sub": [
          {
            "id": "initialize",
            "name": "Overview",
            "order": 1,
            "url": "/guide/initialize",
            "target": "self",
            "enable": true
          },
          {
            "id": "document",
            "name": "Guide",
            "order": 2,
            "url": "https://support.cloudz.co.kr/support/solutions",
            "target": "blank",
            "enable": true
          },
          {
            "id": "qna",
            "name": "Q&A",
            "order": 3,
            "url": "https://support.cloudz.co.kr/support/tickets/new",
            "target": "blank",
            "enable": true
          },
          {
            "id": "terms",
            "name": "Terms",
            "order": 4,
            "url": "/guide/terms",
            "target": "self",
            "enable": false
          }
        ],
        "role": {
          "clusterRoles": [
            "cluster-admin",
            "member"
          ],
          "namespaceRoles": [
            "admin",
            "cicd-manager",
            "developer"
          ]
        },
        "enable": true
      }
    ]
