-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
54 lines (45 loc) · 1.52 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
load('ext://restart_process', 'docker_build_with_restart')
local_resource('Wait AWS Credentials',
'make wait-aws-credentials',
)
local_resource('Install Crossplane',
'make apply-crossplane',
)
local_resource('Install Cluster API',
'make apply-capi',
)
local_resource('Install Kubernetes Kops Operator',
'make apply-kops-operator',
)
local_resource('Install CRDs',
'make apply-crds',
)
local_resource('Build manager binary',
'make build',
)
docker_build_with_restart('tfgco/kubernetes-crossplane-infrastructure-operator',
'.',
dockerfile = './Dockerfile.dev',
entrypoint = '/manager',
live_update = [
sync('./bin/manager', '/manager')
],
only = [
"./bin/manager",
],
)
k8s_yaml('.kubernetes/manifests.yaml')
k8s_resource(
objects = [
'kubernetes-crossplane-infrastructure-operator-system:namespace',
'kubernetes-crossplane-infrastructure-operator-controller-manager:serviceaccount',
'kubernetes-crossplane-infrastructure-operator-leader-election-role:role',
'kubernetes-crossplane-infrastructure-operator-manager-role:clusterrole',
'kubernetes-crossplane-infrastructure-operator-leader-election-rolebinding:rolebinding',
'kubernetes-crossplane-infrastructure-operator-manager-rolebinding:clusterrolebinding',
'kubernetes-crossplane-infrastructure-operator-manager-config:configmap',
'clustermeshes.clustermesh.infrastructure.wildlife.io:customresourcedefinition',
'securitygroups.ec2.aws.wildlife.io:customresourcedefinition',
],
new_name = 'Deploy Kubernetes resources'
)