forked from electronicarts/doltdb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
33 lines (28 loc) · 1.33 KB
/
Tiltfile
File metadata and controls
33 lines (28 loc) · 1.33 KB
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
load('ext://git_resource', 'git_checkout')
load('ext://namespace', 'namespace_create', 'namespace_inject')
load('ext://helm_remote', 'helm_remote')
load('ext://helm_resource', 'helm_resource', 'helm_repo')
local_resource('Go Deps', cmd='make vendor', deps=['Makefile', 'go.mod', 'go.sum'])
local_resource('Build manifests', cmd='make manifests', deps=['Makefile', 'make/*', 'api/*'])
local_resource('Generate CRDs', cmd='make generate', deps=['Makefile', 'make/*', 'api/*'])
local_resource('Install CRDs', cmd='make install', deps=['Makefile', 'make/*', 'api/*'])
doltdbVersion = os.getenv("DOLTDB_ENGINE_VERSION")
print("DOLTDB_ENGINE_VERSION: " + doltdbVersion)
docker_build('localhost:5000/doltdb-operator-test-runner', '.', dockerfile="Dockerfile.dev", build_args={
'DOLTDB_ENGINE_VERSION': doltdbVersion
})
k8s_yaml(['hack/manifests/e2e/cluster-role.yaml', 'hack/manifests/storageclass.yaml', 'hack/manifests/e2e/snapshot.storage.k8s.io_volumesnapshots.yaml'])
k8s_resource(
objects=[
'standard-resize:storageclass',
'doltdb-operator-test-runner-sa',
'doltdb-operator-test-runner-clusterrole',
'doltdb-operator-test-runner-clusterrolebinding'
],
new_name='Test Runner Config'
)
k8s_yaml('hack/manifests/e2e/test-runner.yaml')
k8s_resource(
workload='doltdb-operator-test-runner-job',
new_name='Test Runner Execution'
)