-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: analysis runs to wait for all metrics to complete (#1407)
Signed-off-by: hari rongali <hari_rongali@intuit.com>
- Loading branch information
1 parent
33cbe1a
commit 85ed2b9
Showing
6 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# AnalysisTemplate which sleeps for a specified duration and exits with a specified exit-code | ||
kind: AnalysisTemplate | ||
apiVersion: argoproj.io/v1alpha1 | ||
metadata: | ||
name: multiple-job | ||
spec: | ||
args: | ||
- name: duration | ||
value: 0s | ||
- name: exit-code | ||
value: "0" | ||
- name: count | ||
value: "1" | ||
metrics: | ||
- name: sleep-job | ||
initialDelay: 10s | ||
count: 1 | ||
provider: | ||
job: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: sleep-job | ||
image: nginx:1.19-alpine | ||
command: [sh, -c, -x] | ||
args: ["sleep {{args.duration}} && exit {{args.exit-code}}"] | ||
restartPolicy: Never | ||
backoffLimit: 0 | ||
- name: sleep-job-rep | ||
count: 1 | ||
provider: | ||
job: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: sleep-job | ||
image: nginx:1.19-alpine | ||
command: [sh, -c, -x] | ||
args: ["sleep {{args.duration}} && exit {{args.exit-code}}"] | ||
restartPolicy: Never | ||
backoffLimit: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
name: rollout-inline-analysis | ||
spec: | ||
strategy: | ||
canary: | ||
steps: | ||
- setWeight: 10 | ||
- pause: {} | ||
- analysis: | ||
templates: | ||
- templateName: multiple-job | ||
selector: | ||
matchLabels: | ||
app: rollout-inline-analysis | ||
template: | ||
metadata: | ||
labels: | ||
app: rollout-inline-analysis | ||
spec: | ||
containers: | ||
- name: rollouts-demo | ||
image: nginx:1.19-alpine | ||
resources: | ||
requests: | ||
memory: 16Mi | ||
cpu: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters