Skip to content

Commit 7758191

Browse files
authored
helm conformance chart (#825)
Signed-off-by: Srinivasan Parthasarathy <[email protected]>
1 parent 594de04 commit 7758191

File tree

3 files changed

+12
-32
lines changed

3 files changed

+12
-32
lines changed

helm/conformance/Chart.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
apiVersion: v2
22
name: conformance
33
description: A Helm chart for Iter8 conformance experiment
4-
5-
# A chart can be either an 'application' or a 'library' chart.
6-
#
7-
# Application charts are a collection of templates that can be packaged into versioned archives
8-
# to be deployed.
9-
#
10-
# Library charts provide useful utilities or functions for the chart developer. They're included as
11-
# a dependency of application charts to inject those utilities and functions into the rendering
12-
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
134
type: application
14-
15-
# This is the chart version. This version number should be incremented each time you make changes
16-
# to the chart and its templates, including the app version.
17-
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
19-
20-
# This is the version number of the application being deployed. This version number should be
21-
# incremented each time you make changes to the application. Versions are not expected to
22-
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 0.1.0
5+
version: 0.1.0

helm/conformance/templates/experiment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
apiVersion: iter8.tools/v2alpha2
22
kind: Experiment
33
metadata:
4-
name: codeengine-experiment
4+
name: my-experiment
55
spec:
66
# target identifies the knative service under experimentation using its fully qualified name
7-
target: codeengine-application
7+
target: my-app
88
strategy:
99
# this experiment will perform a canary test
1010
testingPattern: Conformance
1111
actions:
1212
start:
1313
- task: metrics/collect
1414
with:
15-
time: {{ .Values.Time }}
15+
time: {{ .Values.Time | quote }}
1616
versions:
1717
- name: my-app
18-
url: {{ .Values.URL }}
18+
url: {{ .Values.URL | quote }}
1919
qps: {{ .Values.QPS }}
2020
criteria:
2121
requestCount: iter8-system/request-count
@@ -24,13 +24,13 @@ spec:
2424
objectives:
2525
- metric: iter8-system/mean-latency
2626
# 1 second mean latency is acceptable
27-
upperLimit: {{ .Values.LimitMeanLatency }}
27+
upperLimit: {{ .Values.LimitMeanLatency | quote }}
2828
- metric: iter8-system/error-rate
2929
# 2% error rate is acceptable
30-
upperLimit: {{ .Values.LimitErrorRate }}
30+
upperLimit: {{ .Values.LimitErrorRate | quote }}
3131
- metric: iter8-system/latency-95th-percentile
3232
# 3 second 95th percentile tail latency is acceptable
33-
upperLimit: {{ .Values.Limit95thPercentileLatency }}
33+
upperLimit: {{ .Values.Limit95thPercentileLatency | quote }}
3434
duration:
3535
intervalSeconds: 1
3636
iterationsPerLoop: 1

helm/conformance/values.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# Default values for Iter8 conformance experiment.
2-
# This is a YAML-formatted file.
3-
# Declare variables to be passed into your templates.
42

53
# URL of the code engine application for which this conformance test is performed
64
URL: https://example.com
75

86
# How long will Iter8 collect metrics
9-
Time: "5s"
7+
Time: 5s
108

119
# Queries per second used by Iter8 for collecting metrics
1210
QPS: 8.0
1311

1412
# Upper limit on the mean latency. Values beyond this limit are not acceptable
15-
LimitMeanLatency: '"1000.0"' # 1 second latency on an average is ok. Not more.
13+
LimitMeanLatency: 1000.0 # 1 second latency on an average is ok. Not more.
1614

1715
# Upper limit on the error rate. Values beyond this limit are not acceptable
18-
LimitErrorRate: '"0.02"' # 2% error rate is ok. Not more.
16+
LimitErrorRate: 0.02 # 2% error rate is ok. Not more.
1917

2018
# Upper limit on the 95th percentile tail latency. Values beyond this limit are not acceptable
21-
Limit95thPercentileLatency: '"3000.0"' # 3 second tail latency on an average is ok. Not more.
19+
Limit95thPercentileLatency: 3000.0 # 3 second tail latency on an average is ok. Not more.

0 commit comments

Comments
 (0)