Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up tiltfile #63

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
docker_build("controller", ".")
docker_build("controller", ".", only=("vendor","go.mod", "go.sum", "./api", "./cloud","./cmd", "./controller", "./util"))

local_resource(
'capi-controller-manager',
cmd='clusterctl init',
)

k8s_yaml(kustomize('config/default'))

# get generated secret name so we can categorize it
token_secret_name = str(local('kustomize build config/default | grep -m1 "name: cluster-api-provider-linode-token-"', quiet=True, echo_off=True)).split()[1]

k8s_resource(
workload="cluster-api-provider-linode-controller-manager",
objects=[
"cluster-api-provider-linode-system:namespace",
"linodeclusters.infrastructure.cluster.x-k8s.io:customresourcedefinition",
"linodemachines.infrastructure.cluster.x-k8s.io:customresourcedefinition",
"cluster-api-provider-linode-controller-manager:serviceaccount",
"cluster-api-provider-linode-leader-election-role:role",
"cluster-api-provider-linode-manager-role:clusterrole",
"cluster-api-provider-linode-metrics-reader:clusterrole",
"cluster-api-provider-linode-proxy-role:clusterrole",
"cluster-api-provider-linode-leader-election-rolebinding:rolebinding",
"cluster-api-provider-linode-manager-rolebinding:clusterrolebinding",
"cluster-api-provider-linode-proxy-rolebinding:clusterrolebinding",
"%s:secret" % token_secret_name
]
)
Loading