Comments (1)
oof, this is tricky. The short version is that this is currently working as designed.
re: "I can't find any docs that say it should work this way" - here's a good doc on tilt's execution model - https://docs.tilt.dev/controlloop. Basically, you can think of it as docker build && kubectl apply && kubectl wait
. tilt ci
mainly adds exit conditions.
The fundamental problem is that if you kubectl apply
a job, and the spec of the Job hasn't changed, then (from Kubernetes' perspective), there's no reason to re-run the job. From the apiserver perspective, the whole contract of apply
if that if the spec of an object hasn't changed, then the system should do nothing.
Tilt inherits this behavior -- if the Job hasn't changed, then the Job shouldn't be re-run.
There have been discussions of this over the years (e.g., kubernetes/kubernetes#77396), but lots of stuff relies on this behavior.
I guess the simple workaround right now is to add to your tiltfile like:
if config.tilt_subcommand == 'ci'):
local('./clean-up-old-jobs.sh')
though i agree that's unsatisfying :(
from tilt.
Related Issues (20)
- Docker compose profiles set to * doesn't work HOT 5
- Tilt tries to push to docker registry when used with rootless docker + minikube HOT 4
- livenessProbeProbe returns Connection Refused HOT 1
- [Bug] Unable to call commands on host from within `workload_to_resource_function` method HOT 2
- Override auto_init for `tilt ci` HOT 2
- Feature Request: Support Gitlab subgroups within an extension repo's URL HOT 2
- When specifying a deployment namespace with `tilt up --namespace <NAMESPACE>`, if `<NAMESPACE>` does not currently exist, create the namespace. HOT 4
- Make it Scoopable HOT 1
- How to Starlark here to config it? HOT 1
- missing argument for echo_off HOT 1
- split service from workload resource
- Graceful shutdown is ignored by Tilt HOT 3
- tty in local_resource kills tilt HOT 2
- Log pane scrolls to top when truncating
- live update doesn't work with jobset HOT 2
- ability to wait on crd deletion before deleting operator
- tty in node in local_resource kills tilt
- Cluster status error since 0.33.9 with eks cluster HOT 3
- dockerignore with globs creates empty folders HOT 1
- Docker Push not skipped when using Docker Desktop 4.31 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilt.