File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+ on : [push]
3+ jobs :
4+ build :
5+ name : Build
6+ runs-on : ubuntu-latest
7+ env :
8+ OPERATOR_SDK_VERSION : v0.12.0
9+ steps :
10+
11+ - uses : actions/checkout@v1
12+
13+ - name : Set up Go 1.13
14+ uses : actions/setup-go@v1
15+ with :
16+ go-version : 1.13
17+ id : go
18+
19+ - name : Install modules
20+ run : go mod download
21+
22+ - name : Install operator-sdk
23+ run : |
24+ curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu
25+ chmod +x ./operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu
26+
27+ - name : Build operator
28+ run : ./operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu build tarantool/tarantool-operator:${GITHUB_SHA}
29+
30+ - name : Setup test kubernetes cluster
31+ uses : helm/kind-action@v1.0.0-rc.1
32+ with :
33+ cluster_name : kind
34+
35+ - name : Load operator image into test cluster
36+ run : kind load docker-image tarantool/tarantool-operator:${GITHUB_SHA}
37+
38+ - name : Create CRDs
39+ run : |
40+ kubectl create \
41+ -f deploy/crds/tarantool_v1alpha1_cluster_crd.yaml \
42+ -f deploy/crds/tarantool_v1alpha1_replicasettemplate_crd.yaml \
43+ -f deploy/crds/tarantool_v1alpha1_role_crd.yaml
44+
45+ - name : Test
46+ run : |
47+ ./operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu test local \
48+ --image tarantool/tarantool-operator:${GITHUB_SHA} \
49+ ./test/e2e
Original file line number Diff line number Diff line change 1818 image : tarantool/tarantool-operator:0.0.2
1919 command :
2020 - tarantool-operator
21- imagePullPolicy : Always
21+ imagePullPolicy : IfNotPresent
2222 env :
2323 - name : WATCH_NAMESPACE
2424 valueFrom :
You can’t perform that action at this time.
0 commit comments