Skip to content

Commit 6e2ec33

Browse files
authored
helm chart repo (#810)
Signed-off-by: Srinivasan Parthasarathy <[email protected]>
1 parent 40ae09f commit 6e2ec33

File tree

5 files changed

+123
-0
lines changed

5 files changed

+123
-0
lines changed

.github/workflows/helm-charts.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: release-helm-charts
2+
on:
3+
push:
4+
tags: '*'
5+
6+
jobs:
7+
helm-charts:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Publish Helm charts
12+
uses: stefanprodan/helm-gh-pages@master
13+
with:
14+
charts_dir: helm
15+
branch: helm
16+
token: ${{ secrets.GITHUB_TOKEN }}

helm/knquickstart/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

helm/knquickstart/Chart.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: v2
2+
name: knquickstart
3+
description: A Helm chart for Iter8 quick start sample for Knative
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.
13+
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
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: iter8.tools/v2alpha2
2+
kind: Experiment
3+
metadata:
4+
name: codeengine-experiment
5+
spec:
6+
# target identifies the knative service under experimentation using its fully qualified name
7+
target: codeengine-application
8+
strategy:
9+
# this experiment will perform a canary test
10+
testingPattern: Conformance
11+
actions:
12+
start:
13+
- task: metrics/collect
14+
with:
15+
time: {{ .Values.Time }}
16+
versions:
17+
- name: my-app
18+
url: {{ .Values.URL }}
19+
qps: {{ .Values.QPS }}
20+
criteria:
21+
requestCount: iter8-system/request-count
22+
indicators:
23+
- iter8-system/error-count
24+
objectives:
25+
- metric: iter8-system/mean-latency
26+
# 1 second mean latency is acceptable
27+
upperLimit: {{ .Values.LimitMeanLatency }}
28+
- metric: iter8-system/error-rate
29+
# 2% error rate is acceptable
30+
upperLimit: {{ .Values.LimitErrorRate }}
31+
- metric: iter8-system/latency-95th-percentile
32+
# 3 second 95th percentile tail latency is acceptable
33+
upperLimit: {{ .Values.Limit95thPercentileLatency }}
34+
duration:
35+
intervalSeconds: 1
36+
iterationsPerLoop: 1
37+
versionInfo:
38+
# information about app versions used in this experiment
39+
baseline:
40+
name: my-app

helm/knquickstart/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Default values for Iter8 conformance experiment.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
# URL of the code engine application for which this conformance test is performed
6+
URL: https://example.com
7+
8+
# How long will Iter8 collect metrics
9+
Time: "5s"
10+
11+
# Queries per second used by Iter8 for collecting metrics
12+
QPS: 8.0
13+
14+
# 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.
16+
17+
# Upper limit on the error rate. Values beyond this limit are not acceptable
18+
LimitErrorRate: '"0.02"' # 2% error rate is ok. Not more.
19+
20+
# 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.

0 commit comments

Comments
 (0)