Skip to content

Commit

Permalink
Include gatewayRefs in Linkerd Canary resources
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Leong <[email protected]>
  • Loading branch information
adleong committed Sep 15, 2023
1 parent d543c8e commit efc5880
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/gitbook/tutorials/linkerd-progressive-delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions test/linkerd/test-canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions test/linkerd/test-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efc5880

Please sign in to comment.