Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 125a08c

Browse files
authored
Make tilt green on the first run (#84)
Signed-off-by: Roman Hros <[email protected]>
1 parent 2e4b501 commit 125a08c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Tiltfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ def create_secret():
204204
local_resource('supersecret', cmd, labels=["clouds-yaml-secret"])
205205

206206
def cspo_template():
207-
cmd = "cat .cspotemplate.yaml | {} | kubectl apply -f -".format(envsubst_cmd)
208-
local_resource('cspotemplate', cmd, labels=["cspo-template"])
207+
cmd = "cat .cspotemplate.yaml | {}".format(envsubst_cmd)
208+
cspo_yaml = local(cmd, quiet=True)
209+
k8s_yaml(cspo_yaml)
210+
k8s_resource(objects = ["cspotemplate:openstackclusterstackreleasetemplate"], new_name = "cspotemplate", labels = ["cspo-template"])
211+
209212

210213
def clusterstack():
211214
k8s_resource(objects = ["clusterstack:clusterstack"], new_name = "clusterstack", labels = ["clusterstack"])

docs/develop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ make tilt-up
2424

2525
> To access the Tilt UI please go to: `http://localhost:10351`
2626
27-
You should make sure that everything in the UI looks green. If not, you can trigger the Tilt workflow again. In the case of the `cspotemplate`, this might be necessary, as it cannot be applied right after the startup of the cluster and fails. Tilt unfortunately does not include a waiting period.
27+
You should make sure that everything in the UI looks green. If not, you can trigger the Tilt workflow again.
2828

2929
If everything is green, then you can already check for your clusterstack that has been deployed. You can use a tool like k9s to have a look at the management cluster and its custom resources.
3030

0 commit comments

Comments
 (0)