This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
110 lines (107 loc) · 3.8 KB
/
kind.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Kind tests
on:
push:
branches:
- "*"
concurrency:
cancel-in-progress: true
group: kind-${{ github.ref_name }}
jobs:
test-standalone-charts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Kubernetes KinD Cluster
uses: helm/kind-action@v1.2.0
- run: kubectl cluster-info
- run: kubectl version
- run: kubectl get pods -n kube-system
- run: kubectl create ns test-project-ci
- name: test standalone-charts
uses: "./"
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
rancherProjectId: "cluster:project"
rancherProjectName: "test-project"
cwd: .github/e2e/standalone-charts
kubeconfigContext: kind-chart-testing
- run: kubectl get jobs -n test-project-ci
- run: kubectl get jobs -n test-project-ci --field-selector status.successful=1 | grep "job-extra" # additionnal grep to exit 1 on error
test-values-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Kubernetes KinD Cluster
uses: helm/kind-action@v1.2.0
- run: kubectl cluster-info
- run: kubectl version
- run: kubectl get pods -n kube-system
- run: kubectl create ns test-project-ci
- name: test values-js
uses: "./"
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
rancherProjectId: "cluster:project"
rancherProjectName: "test-project"
cwd: .github/e2e/values-js
kubeconfigContext: kind-chart-testing
- run: kubectl get pods -n test-namespace
- name: pod is running
run: kubectl get pods -n test-namespace --field-selector=status.phase=Running | grep "app"
- name: ingress
run: kubectl get ingress -n test-namespace --field-selector metadata.name=app -o=jsonpath='{.items[0].spec.rules[0].host}' | grep "test.demo.net"
app-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Kubernetes KinD Cluster
uses: helm/kind-action@v1.2.0
- run: kubectl create ns test-project-ci
- name: test app-simple
uses: "./"
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
rancherProjectId: "cluster:project"
rancherProjectName: "test-project"
cwd: .github/e2e/app-simple
kubeconfigContext: kind-chart-testing
inlineValues: |
app:
image: nginx
containerPort: 80
- run: kubectl get pods -n kube-workflow
- run: kubectl get pods -n kube-workflow --field-selector=status.phase=Running | grep "app"
app-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Kubernetes KinD Cluster
uses: helm/kind-action@v1.2.0
- run: kubectl create ns test-project-ci
- name: test app-simple
uses: "./"
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
rancherProjectId: "cluster:project"
rancherProjectName: "test-project"
cwd: .github/e2e/app-simple
kubeconfigContext: kind-chart-testing
inlineValues: |
global:
imageRepository: ""
app:
imagePackage: nginx
imageRepository: ""
registry: docker.io
containerPort: 80
env:
KW_GIT_REF: v1.21.6
- run: kubectl get pods -n kube-workflow
- run: kubectl get pods -n kube-workflow --field-selector=status.phase=Running | grep "app"
- name: "use tagged image"
run:
kubectl get pods -n kube-workflow --field-selector=status.phase=Running -o jsonpath="{.items[*].spec.containers[*].image}" | grep "docker.io/nginx:1.21.6"