-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
47 lines (39 loc) · 2.24 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
config.define_string("BININFO_BUILD_DATE")
config.define_string("BININFO_VERSION")
config.define_string("BININFO_COMMIT_HASH")
def deploy_cert_manager():
version = "v1.14.4"
cert_manager_uri = "https://github.com/cert-manager/cert-manager/releases/download/{}/cert-manager.crds.yaml".format(version)
cmd = "curl -sSL {} | kubectl apply -f -".format(cert_manager_uri)
local(cmd, quiet=False)
def deploy_capi_crd():
version = "v1.7.0"
capi_uri = "https://github.com/kubernetes-sigs/cluster-api/releases/download/{}/cluster-api-components.yaml".format(version)
cmd = "curl -sSL {} | kubectl apply -f -".format(capi_uri)
local(cmd, quiet=False)
def deploy_bmo_crd():
version = "v0.6.0"
m3_uri = "https://raw.githubusercontent.com/metal3-io/baremetal-operator/v0.6.0/config/base/crds/bases/metal3.io_baremetalhosts.yaml".format(version)
cmd = "curl -sSL {} | kubectl apply -f -".format(m3_uri)
local(cmd, quiet=False)
def deploy_metal_crd():
version = "9a29dae0cfa4575cc94b3c9d9643e441cea7ef9b"
bmcSecret_uri = "https://raw.githubusercontent.com/ironcore-dev/metal-operator/{}/config/crd/bases/metal.ironcore.dev_bmcsecrets.yaml".format(version)
cmd_bmcSecret = "curl -sSL {} | kubectl apply -f -".format(bmcSecret_uri)
bmc_uri = "https://raw.githubusercontent.com/ironcore-dev/metal-operator/{}/config/crd/bases/metal.ironcore.dev_bmcs.yaml".format(version)
cmd_bmc = "curl -sSL {} | kubectl apply -f -".format(bmc_uri)
server_uri = "https://raw.githubusercontent.com/ironcore-dev/metal-operator/{}/config/crd/bases/metal.ironcore.dev_servers.yaml".format(version)
cmd = "curl -sSL {} | kubectl apply -f -".format(server_uri)
local(cmd_bmcSecret, quiet=False)
local(cmd_bmc, quiet=False)
local(cmd, quiet=False)
docker_build('argora-dev', '.', build_args={"BININFO_BUILD_DATE": config.parse()['BININFO_BUILD_DATE'], "BININFO_VERSION": config.parse()['BININFO_VERSION'], "BININFO_COMMIT_HASH": config.parse()['BININFO_COMMIT_HASH']})
deploy_cert_manager()
#deploy_capi_crd()
deploy_bmo_crd()
deploy_metal_crd()
k8s_yaml('deployments/cluster-api-components.yaml')
k8s_yaml('config/rbac/role.yaml')
k8s_yaml('deployments/argora.yaml')
k8s_yaml('deployments/cluster.yaml')
k8s_yaml('deployments/secret.yaml')