tilt-dev / tilt-dev/tilt

`local` run-once option for `tilt up`

Open
#6,019 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Describe the Feature You Want

local run once or some prerequisite phase that runs only once for a tiltfile.

Current Behavior

Tilt tries to generate files that trigger the k8s_yaml or any deps field change and reload of tilt. This leads to an endless loop of local commands triggering k8s_yaml tilt reload. I don't want to ignore the files as these are regenerated with each save by a tilt state.

Why Do You Want This?

This phase can be used to pre-generate some files that will be loaded as resources by k8s_yaml without triggering an endless loop. I use kapitan go generate some files and would like to generate the files for each save. But to load these files in the first place I have to have them in the folder which requires me to do the first generation outside of Tilt.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the tilt up handling of local commands, k8s_yaml, and deps changes. Reproduce the regeneration loop described in the issue, then define the run-once behavior and verify that prerequisite generation does not trigger an endless reload while later saves still regenerate the files.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
cli, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.