Skip to content

Commit 7b38537

Browse files
committed
Dont use kustomize patch
1 parent b831ec2 commit 7b38537

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

examples/analysis/kustomization.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

4-
bases:
5-
- ../canary/
6-
74
resources:
8-
- analysis-success-rate.yaml
9-
10-
patchesStrategicMerge:
115
- rollout-with-analysis.yaml
12-
6+
- analysis-success-rate.yaml
7+
- ../canary/canary-service.yaml
8+
- ../canary/canary-ingress.yaml
9+
- ../canary/canary-preview-service.yaml
10+
- ../canary/canary-preview-ingress.yaml

examples/analysis/rollout-with-analysis.yaml

+27-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,40 @@ kind: Rollout
33
metadata:
44
name: canary-demo
55
spec:
6+
replicas: 5
7+
revisionHistoryLimit: 3
8+
selector:
9+
matchLabels:
10+
app: canary-demo
611
strategy:
712
canary:
813
analysis:
914
name: success-rate
1015
templateName: success-rate
16+
canaryService: canary-demo-preview
1117
steps:
1218
- setWeight: 40
1319
- pause: {}
1420
- setWeight: 60
15-
- pause: {duration: 10}
21+
- pause:
22+
duration: 10
1623
- setWeight: 80
17-
- pause: {duration: 10}
24+
- pause:
25+
duration: 10
26+
template:
27+
metadata:
28+
labels:
29+
app: canary-demo
30+
spec:
31+
containers:
32+
- image: argoproj/rollouts-demo:blue
33+
imagePullPolicy: Always
34+
name: canary-demo
35+
ports:
36+
- containerPort: 8080
37+
name: http
38+
protocol: TCP
39+
resources:
40+
requests:
41+
cpu: 5m
42+
memory: 32Mi

0 commit comments

Comments
 (0)