tilt
tilt copied to clipboard
Reconciler Error if an custom extension is registered but not loaded
Expected Behavior
No errors in logs
Current Behavior
Many error messages in logs when a custom extension is registered, but never loaded.
ERROR: [] "msg"="Reconciler error" "error"="Failed to update API server: [create extensionrepos/default: extensionrepos.tilt.dev \"default\" already exists, create extensions/helm_resource: extensions.tilt.dev \"helm_resource\" already exists]" "controller"="tiltfile" "controllerGroup"="tilt.dev" "controllerKind"="Tiltfile" "Tiltfile"={"name":"my_ext_2"} "namespace"="" "name"="my_ext_2" "reconcileID"="96266349-e12c-443f-ac40-93f8c8645e54"
Steps to Reproduce
Reproduction at:
https://github.com/markdingram/tilt-extension-test
Context
tilt doctor Output
Tilt: v0.30.13, built 2022-12-01 System: darwin-amd64
About Your Use Case
We have a number of custom extensions. Some of which build on existing extensions like 'helm_resource'. These error messages start spamming the logs if such an extension is registered without being loaded.
Encountered this when creating a single helper function that would handle all the registrations for various Tiltfile's to import. The workaround is to "load_dynamic" all of the extensions as they are registered.
thanks for the report! :thinking: