higress-group/higress

e2e: add testcases for destination annotations

开放

#860 创建于 2024年3月6日

 (0 条评论) (0 个反应) (0 位负责人)Go (1,219 个派生)github user discovery
area/annotationarea/e2ehelp wantedlevel/challenge

仓库指标

星标
 (9,040 个星标)
PR 合并指标
 (平均合并 7天 9小时) (30 天内合并 18 个 PR)

描述

Why do you need it?

annotations:

  • higress.io/destination

How could it be?

single destiantion:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    higress.io/destination:  " bar-service.default.svc.cluster.local:5678"
  name: echo
  namespace: default
spec:
  ingressClassName: higress
  rules:
  - http:
      paths:
      - backend:
          resource:
            apiGroup: networking.higress.io
            kind: McpBridge
            name: default
        path: /echo
        pathType: Prefix

multiple destiantions:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    higress.io/destination: |
      33% service-provider.DEFAULT-GROUP.public.nacos
      33% service-provider-gray.DEFAULT-GROUP.public.nacos
      34% bar-service.default.svc.cluster.local:5678
  name: echo
  namespace: default
spec:
  ingressClassName: higress
  rules:
  - http:
      paths:
      - backend:
          resource:
            apiGroup: networking.higress.io
            kind: McpBridge
            name: default
        path: /echo
        pathType: Prefix

Other related information

贡献者指南