File tree Expand file tree Collapse file tree 8 files changed +62
-16
lines changed Expand file tree Collapse file tree 8 files changed +62
-16
lines changed Original file line number Diff line number Diff line change 4
4
machine : true
5
5
steps :
6
6
- checkout
7
- - run : e2e/bootstrap.sh
8
- - run : e2e/install.sh
9
- - run : e2e/test.sh
7
+ - run :
8
+ name : Build podinfo container
9
+ command : e2e/build.sh
10
+ - run :
11
+ name : Start Kubernetes Kind cluster
12
+ command : e2e/bootstrap.sh
13
+ - run :
14
+ name : Install podinfo with Helm
15
+ command : e2e/install.sh
16
+ - run :
17
+ name : Run Helm tests
18
+ command : e2e/test.sh
10
19
11
- build -container :
20
+ push -container :
12
21
docker :
13
22
- image : circleci/golang:1.12
14
23
working_directory : ~/build
@@ -78,25 +87,24 @@ workflows:
78
87
version : 2
79
88
build-test :
80
89
jobs :
81
- - build-container
82
90
- e2e-kubernetes
83
91
release :
84
92
jobs :
85
- - build-container :
93
+ - push-binary :
86
94
filters :
87
95
branches :
88
96
ignore : /.*/
89
97
tags :
90
98
ignore : /^chart.*/
91
- - push-binary :
99
+ - push-container :
92
100
filters :
93
101
branches :
94
102
ignore : /.*/
95
103
tags :
96
104
ignore : /^chart.*/
97
105
- push-helm-charts :
98
106
requires :
99
- - build -container
107
+ - push -container
100
108
filters :
101
109
branches :
102
110
ignore : /.*/
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
- version : 2.0.1
3
- appVersion : 2.0.1
2
+ version : 2.0.2
3
+ appVersion : 2.0.2
4
4
name : podinfo
5
5
engine : gotpl
6
6
description : Podinfo Helm chart for Kubernetes
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ faults:
12
12
13
13
image :
14
14
repository : quay.io/stefanprodan/podinfo
15
- tag : 2.0.1
15
+ tag : 2.0.2
16
16
pullPolicy : IfNotPresent
17
17
18
18
service :
Original file line number Diff line number Diff line change
1
+ # podinfo end-to-end testing
2
+
3
+ The e2e testing infrastructure is powered by CircleCI and [ Kubernetes Kind] ( https://github.com/kubernetes-sigs/kind ) .
4
+
5
+ ### CI workflow
6
+
7
+ * download go modules
8
+ * run unit tests
9
+ * build container
10
+ * install kubectl, helm and Kubernetes Kind CLIs
11
+ * create local Kubernetes cluster with kind
12
+ * deploy Tiller on the local cluster
13
+ * load podinfo image onto the local cluster
14
+ * deploy podinfo with Helm
15
+ * run Helm tests
16
+
17
+ ``` yaml
18
+ jobs :
19
+ e2e-kubernetes :
20
+ machine : true
21
+ steps :
22
+ - checkout
23
+ - run :
24
+ name : Build podinfo container
25
+ command : e2e/build.sh
26
+ - run :
27
+ name : Start Kubernetes Kind cluster
28
+ command : e2e/bootstrap.sh
29
+ - run :
30
+ name : Install podinfo with Helm
31
+ command : e2e/install.sh
32
+ - run :
33
+ name : Run Helm tests
34
+ command : e2e/test.sh
35
+ ` ` `
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -o errexit
4
+
5
+ docker build -t test/podinfo:latest .
6
+
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ set -o errexit
5
5
REPO_ROOT=$( git rev-parse --show-toplevel)
6
6
export KUBECONFIG=" $( kind get kubeconfig-path --name=" kind" ) "
7
7
8
- echo " >>> Building container"
9
- docker build -t test/podinfo:latest .
10
-
11
8
echo ' >>> Loading image in Kind'
12
9
kind load docker-image test/podinfo:latest
13
10
Original file line number Diff line number Diff line change 24
24
spec :
25
25
containers :
26
26
- name : podinfod
27
- image : quay.io/stefanprodan/podinfo:2.0.1
27
+ image : quay.io/stefanprodan/podinfo:2.0.2
28
28
imagePullPolicy : IfNotPresent
29
29
ports :
30
30
- containerPort : 9898
Original file line number Diff line number Diff line change 1
1
package version
2
2
3
- var VERSION = "2.0.1 "
3
+ var VERSION = "2.0.2 "
4
4
var REVISION = "unknown"
You can’t perform that action at this time.
0 commit comments