github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/controllers/apis/liveupdate/mode.go (about) 1 package liveupdate 2 3 // Currently, LiveUpdate runs in one of two modes: 4 // 5 // 1) update-mode=auto, where files are synced into the container as we see them 6 // 2) update-mode=manual, where file changes are collected, but only synced 7 // when the user clicks the trigger button. 8 // 9 // But triggers are not formally represented in the API. They're just a 10 // ConfigMap we hacked in. 11 // 12 // We should probably model this as a more full-featured UpdateStrategy, 13 // so that you can have more control over debouncing and number of retries. 14 // 15 // https://github.com/tilt-dev/tilt/issues/3606 16 // https://github.com/tilt-dev/tilt/issues/5054 17 // 18 // but for now we'll model this as an annotation. 19 20 const AnnotationUpdateMode = "tilt.dev/update-mode" 21 const UpdateModeAuto = "auto" 22 const UpdateModeManual = "manual"