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
if A already exists in state and we move the invocation to B, a terraform {plan,apply} will error out with a ko build error due to a non-existent path.
the desired behavior instead is for the tf provider to simply rebuild the image with the new path.
The text was updated successfully, but these errors were encountered:
It's not a great answer, but ko_image resources are cheap and disposable -- can you change the name of the ko_image resource to something new, so terraform plan considers it a new resource without any preexisting state? This would also delete (no-op) the old image resource.
If that works you can rename the resource back to the old now-deleted resource name. I agree this isn't ideal though, since it requires a few manual steps.
Short of that though I'm not sure what would be better for the provider to do. It's possible there's an answer I just don't know it.
Changing the build path of an existing resource to one that doesn't exist results in an error at
plan/apply
time.An example of this occurring is when we're refactoring an invocation path:
to
if
A
already exists in state and we move the invocation toB
, aterraform {plan,apply}
will error out with ako
build error due to a non-existent path.the desired behavior instead is for the tf provider to simply rebuild the image with the new path.
The text was updated successfully, but these errors were encountered: