From efc588001fcc93aa30d370fa0bc5718259195fd7 Mon Sep 17 00:00:00 2001 From: Alex Leong Date: Fri, 15 Sep 2023 14:05:14 -0700 Subject: [PATCH] Include gatewayRefs in Linkerd Canary resources Signed-off-by: Alex Leong --- .../tutorials/linkerd-progressive-delivery.md | 7 +++++++ test/linkerd/test-canary.sh | 18 ++++++++++++++++++ test/linkerd/test-steps.sh | 6 ++++++ 3 files changed, 31 insertions(+) diff --git a/docs/gitbook/tutorials/linkerd-progressive-delivery.md b/docs/gitbook/tutorials/linkerd-progressive-delivery.md index 6032dacc0..63a319535 100644 --- a/docs/gitbook/tutorials/linkerd-progressive-delivery.md +++ b/docs/gitbook/tutorials/linkerd-progressive-delivery.md @@ -102,6 +102,13 @@ spec: port: 9898 # container port number or name (optional) targetPort: 9898 + # Reference to the Service that the generated HTTPRoute would attach to. + gatewayRefs: + - name: podinfo + namespace: test + group: core + kind: Service + port: 9898 analysis: # schedule interval (default 60s) interval: 30s diff --git a/test/linkerd/test-canary.sh b/test/linkerd/test-canary.sh index 694635f8d..69b3a032b 100755 --- a/test/linkerd/test-canary.sh +++ b/test/linkerd/test-canary.sh @@ -47,6 +47,12 @@ spec: port: 80 targetPort: http portDiscovery: true + gatewayRefs: + - name: podinfo + namespace: test + group: core + kind: Service + port: 80 analysis: interval: 15s threshold: 15 @@ -106,6 +112,12 @@ spec: service: port: 9898 portDiscovery: true + gatewayRefs: + - name: podinfo + namespace: test + group: core + kind: Service + port: 9898 analysis: interval: 15s threshold: 15 @@ -194,6 +206,12 @@ spec: service: port: 80 targetPort: 9898 + gatewayRefs: + - name: podinfo + namespace: test + group: core + kind: Service + port: 80 analysis: interval: 15s threshold: 3 diff --git a/test/linkerd/test-steps.sh b/test/linkerd/test-steps.sh index 7c1db33d7..7ad41969b 100755 --- a/test/linkerd/test-steps.sh +++ b/test/linkerd/test-steps.sh @@ -20,6 +20,12 @@ spec: port: 80 targetPort: http portDiscovery: true + gatewayRefs: + - name: podinfo + namespace: test + group: core + kind: Service + port: 80 analysis: interval: 15s threshold: 15