Merge pull request #28 from stefanprodan/prep-2.0.2

Release v2.0.2
This commit is contained in:
Stefan Prodan
2019-08-06 22:58:51 +03:00
committed by GitHub
8 changed files with 62 additions and 16 deletions

View File

@@ -4,11 +4,20 @@ jobs:
machine: true
steps:
- checkout
- run: e2e/bootstrap.sh
- run: e2e/install.sh
- run: e2e/test.sh
- run:
name: Build podinfo container
command: e2e/build.sh
- run:
name: Start Kubernetes Kind cluster
command: e2e/bootstrap.sh
- run:
name: Install podinfo with Helm
command: e2e/install.sh
- run:
name: Run Helm tests
command: e2e/test.sh
build-container:
push-container:
docker:
- image: circleci/golang:1.12
working_directory: ~/build
@@ -78,17 +87,16 @@ workflows:
version: 2
build-test:
jobs:
- build-container
- e2e-kubernetes
release:
jobs:
- build-container:
- push-binary:
filters:
branches:
ignore: /.*/
tags:
ignore: /^chart.*/
- push-binary:
- push-container:
filters:
branches:
ignore: /.*/
@@ -96,7 +104,7 @@ workflows:
ignore: /^chart.*/
- push-helm-charts:
requires:
- build-container
- push-container
filters:
branches:
ignore: /.*/

View File

@@ -1,6 +1,6 @@
apiVersion: v1
version: 2.0.1
appVersion: 2.0.1
version: 2.0.2
appVersion: 2.0.2
name: podinfo
engine: gotpl
description: Podinfo Helm chart for Kubernetes

View File

@@ -12,7 +12,7 @@ faults:
image:
repository: quay.io/stefanprodan/podinfo
tag: 2.0.1
tag: 2.0.2
pullPolicy: IfNotPresent
service:

35
e2e/README.md Normal file
View File

@@ -0,0 +1,35 @@
# podinfo end-to-end testing
The e2e testing infrastructure is powered by CircleCI and [Kubernetes Kind](https://github.com/kubernetes-sigs/kind).
### CI workflow
* download go modules
* run unit tests
* build container
* install kubectl, helm and Kubernetes Kind CLIs
* create local Kubernetes cluster with kind
* deploy Tiller on the local cluster
* load podinfo image onto the local cluster
* deploy podinfo with Helm
* run Helm tests
```yaml
jobs:
e2e-kubernetes:
machine: true
steps:
- checkout
- run:
name: Build podinfo container
command: e2e/build.sh
- run:
name: Start Kubernetes Kind cluster
command: e2e/bootstrap.sh
- run:
name: Install podinfo with Helm
command: e2e/install.sh
- run:
name: Run Helm tests
command: e2e/test.sh
```

6
e2e/build.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -o errexit
docker build -t test/podinfo:latest .

View File

@@ -5,9 +5,6 @@ set -o errexit
REPO_ROOT=$(git rev-parse --show-toplevel)
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
echo ">>> Building container"
docker build -t test/podinfo:latest .
echo '>>> Loading image in Kind'
kind load docker-image test/podinfo:latest

View File

@@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:2.0.1
image: quay.io/stefanprodan/podinfo:2.0.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9898

View File

@@ -1,4 +1,4 @@
package version
var VERSION = "2.0.1"
var VERSION = "2.0.2"
var REVISION = "unknown"