Skip to content

Commit da4eabd

Browse files
committed
ensure all resources are categorized in the Tiltfile and limit docker build file watchers to go files
1 parent 77b07ab commit da4eabd

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Tiltfile

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
docker_build("controller", ".")
1+
docker_build("controller", ".", only=("vendor","go.mod", "go.sum", "./api", "./cloud","./cmd", "./controller", "./util"))
22

33
local_resource(
44
'capi-controller-manager',
55
cmd='clusterctl init',
66
)
77

88
k8s_yaml(kustomize('config/default'))
9+
10+
# get generated secret name so we can categorize it
11+
token_secret_name = str(local('kustomize build config/default | grep -m1 "name: cluster-api-provider-linode-token-"', quiet=True, echo_off=True)).split()[1]
12+
13+
k8s_resource(
14+
workload="cluster-api-provider-linode-controller-manager",
15+
objects=[
16+
"cluster-api-provider-linode-system:namespace",
17+
"linodeclusters.infrastructure.cluster.x-k8s.io:customresourcedefinition",
18+
"linodemachines.infrastructure.cluster.x-k8s.io:customresourcedefinition",
19+
"cluster-api-provider-linode-controller-manager:serviceaccount",
20+
"cluster-api-provider-linode-leader-election-role:role",
21+
"cluster-api-provider-linode-manager-role:clusterrole",
22+
"cluster-api-provider-linode-metrics-reader:clusterrole",
23+
"cluster-api-provider-linode-proxy-role:clusterrole",
24+
"cluster-api-provider-linode-leader-election-rolebinding:rolebinding",
25+
"cluster-api-provider-linode-manager-rolebinding:clusterrolebinding",
26+
"cluster-api-provider-linode-proxy-rolebinding:clusterrolebinding",
27+
"%s:secret" % token_secret_name
28+
]
29+
)

0 commit comments

Comments
 (0)