You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force refresh should recreate dependent resources (service accounts, configmaps) prior to deployment.
Current Behavior
When hitting the force refresh button, it's possible that dependent resources are not recreated, such as in the example described below. Pods from the deployment will fail to start.
STEP 1/2 — Force update
Beginning force update
Deleting kubernetes objects:
→ Deployment/my-app
→ ServiceAccount/my-service-account
Beginning garbage collecting Kubernetes objects
Deleting kubernetes objects:
→ Deployment/my-app
→ ServiceAccount/my-service-account
STEP 2/2 — Deploying
Applying YAML to cluster
Objects applied to cluster:
→ my-service-account:serviceaccount
→ my-app:deployment
Step 1 - 0.08s (Force update)
Step 2 - 0.14s (Deploying)
DONE IN: 0.22s
[event: replicaset my-app-6fdfcf9477] Error creating: pods "my-app-6fdfcf9477-" is forbidden: error looking up service account default/my-service-account: serviceaccount "my-service-account" not found
[event: replicaset my-app-6fdfcf9477] Error creating: pods "my-app-6fdfcf9477-" is forbidden: error looking up service account default/my-service-account: serviceaccount "my-service-account" not found
[event: replicaset my-app-6fdfcf9477] Error creating: pods "my-app-6fdfcf9477-" is forbidden: error looking up service account default/my-service-account: serviceaccount "my-service-account" not found
querying the cluster shows the serviceaccount has not been created:
% kubectl get sa
NAME SECRETS AGE
default 0 7d2h
% kubectl get deploy
NAME READY UP-TO-DATE AVAILABLE AGE
my-app 0/1 0 0 2m54s
Thanks for seeing the Tilt Doctor!
Please send the info above when filing bug reports. 💗
The info below helps us understand how you're using Tilt so we can improve,
but is not required to ask for help.
Analytics Settings
--> (These results reflect your personal opt in/out status and may be overridden by an analytics_settings call in your Tiltfile)
User Mode: opt-in
Machine: 5247e78a689a305f4392f2b8e5bdfe12
Repo: vPUwqCdPvBm6dJXroBYigg==
#### About Your Use Case
This is impacting our ability to use newer versions of Tilt, with this change in.
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
The text was updated successfully, but these errors were encountered:
Expected Behavior
Force refresh should recreate dependent resources (service accounts, configmaps) prior to deployment.
Current Behavior
When hitting the force refresh button, it's possible that dependent resources are not recreated, such as in the example described below. Pods from the deployment will fail to start.
querying the cluster shows the serviceaccount has not been created:
Steps to Reproduce
I have put together a simple example reproduction here: https://github.com/bobdoah/tilt-delete-race-condition
Context
This seems to be related to this change to make deletion asynchronous/two-step. I built a version with this change reverted. Using that, I am unable to reproduce the issue.
tilt doctor
OutputTilt: v0.34.2, built 2025-04-11
System: linux-amd64
Docker
Kubernetes
Thanks for seeing the Tilt Doctor!
Please send the info above when filing bug reports. 💗
The info below helps us understand how you're using Tilt so we can improve,
but is not required to ask for help.
Analytics Settings
--> (These results reflect your personal opt in/out status and may be overridden by an
analytics_settings
call in your Tiltfile)The text was updated successfully, but these errors were encountered: