higress-group/higress

e2e: add testcases for destination annotations

Open

#860 opened on Mar 6, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (1,144 forks)github user discovery
area/annotationarea/e2ehelp wantedlevel/challenge

Repository metrics

Stars
 (8,582 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide