Skip to content

Commit

Permalink
Make tilt green on the first run
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Hros <[email protected]>
  • Loading branch information
chess-knight committed Feb 12, 2024
1 parent 2e4b501 commit db5c781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ def create_secret():
local_resource('supersecret', cmd, labels=["clouds-yaml-secret"])

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


def clusterstack():
k8s_resource(objects = ["clusterstack:clusterstack"], new_name = "clusterstack", labels = ["clusterstack"])
Expand Down
2 changes: 1 addition & 1 deletion docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ make tilt-up

> To access the Tilt UI please go to: `http://localhost:10351`
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.
You should make sure that everything in the UI looks green. If not, you can trigger the Tilt workflow again.

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.

Expand Down

0 comments on commit db5c781

Please sign in to comment.