Skip to content

Commit f7ca26b

Browse files
committed
Fix out of index
1 parent 169ed38 commit f7ca26b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

apps/argo-apps/playground-sandbox.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ spec:
3434
key: OTEL_EXPORTER_OTLP_TRACES_HEADERS
3535
parameters:
3636
- name: backend.env[0].value
37-
value: 3acd921
37+
value: 19df4c9
3838
- name: backend.image.tag
39-
value: 3acd921
39+
value: 19df4c9
4040
- name: frontend.image.tag
41-
value: 3acd921
41+
value: 19df4c9
4242
- name: ingress.className
4343
value: "nginx"
4444
destination:

apps/playground-sandbox/analysis-success-rate.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: success-rate
55
spec:
66
args:
7-
- name: canary
7+
- name: ingress
88
- name: PROMETHEUS_AUTH_TOKEN
99
valueFrom:
1010
secretKeyRef:
@@ -13,7 +13,7 @@ spec:
1313
metrics:
1414
- name: success-rate
1515
interval: 10s
16-
successCondition: result[0] > 0.90
16+
successCondition: len(result) == 0 || result[0] > 0.90
1717
provider:
1818
prometheus:
1919
address: http://collector.172.20.0.5.nip.io
@@ -23,7 +23,7 @@ spec:
2323
value: Bearer {{ args.PROMETHEUS_AUTH_TOKEN }}
2424
query: >+
2525
sum(
26-
rate(nginx_ingress_controller_requests{canary="{{args.canary}}",status!~"[4-5].*"}[20s]))
26+
rate(nginx_ingress_controller_requests{ingress="{{args.ingress}}",status!~"[4-5].*"}[20s]))
2727
/
28-
sum(rate(nginx_ingress_controller_requests{canary="{{args.canary}}"}[20s])
28+
sum(rate(nginx_ingress_controller_requests{ingress="{{args.ingress}}"}[20s])
2929
)

apps/playground-sandbox/rollout.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ spec:
2121
analysis:
2222
templates:
2323
- templateName: success-rate
24+
startingStep: 2 # delay starting analysis run until setWeight: 15%
2425
args:
25-
- name: canary
26-
value: playground-sandbox-backend-canary-http
26+
- name: ingress
27+
value: playground-sandbox
2728
# Reference to a Service which the controller will update to point to the canary ReplicaSet
2829
canaryService: backend-canary
2930
# Reference to a Service which the controller will update to point to the stable ReplicaSet

0 commit comments

Comments
 (0)