-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTiltfile
61 lines (52 loc) · 1.73 KB
/
Tiltfile
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
load('ext://restart_process', 'docker_build_with_restart')
local_resource('Install CAPI dependencies',
'make apply-capi-dependencies'
)
local_resource('Wait CAPI dependencies resources',
'make wait-capi-dependencies-resources',
resource_deps=[
'Install CAPI dependencies'
]
)
local_resource('Install Cluster API',
'make apply-capi'
)
local_resource('Wait CAPI resources',
'make wait-capi-resources',
resource_deps=[
'Install Cluster API'
]
)
local_resource('Install CRDs',
'make install',
)
local_resource('Build manager binary',
'make build',
)
docker_build_with_restart('manager:test',
'.',
dockerfile='./Dockerfile.dev',
entrypoint='/manager',
live_update=[
sync('./bin/manager', '/manager')
],
only=[
"./bin/manager",
],
)
k8s_yaml('.kubernetes/dev/manifest.yaml')
k8s_resource(
objects=[
'kubernetes-kops-operator-system:namespace',
'kubernetes-kops-operator-controller-manager:serviceaccount',
'kubernetes-kops-operator-leader-election-role:role',
'kubernetes-kops-operator-manager-role:clusterrole',
'kubernetes-kops-operator-metrics-reader:clusterrole',
'kubernetes-kops-operator-proxy-role:clusterrole',
'kubernetes-kops-operator-leader-election-rolebinding:rolebinding',
'kubernetes-kops-operator-manager-rolebinding:clusterrolebinding',
'kubernetes-kops-operator-proxy-rolebinding:clusterrolebinding',
'kubernetes-kops-operator-manager-config:configmap'
],
new_name='Deploy Kubernetes resources'
)