Hacker News new | ask | show | jobs
by ryapric 1482 days ago
The same problems any imperative management within declarative config causes -- drift. If the tool you're using supports declarative configuration, all changes should be made exclusively via the declarative interface to prevent that drift. In this example, the new image should be added to the original manifest itself, not via a CLI update.
1 comments

It depends on how you manage your changes. A lot of people don't have their infra-as-code manage the deployment's image field--rather, that's updated by the application's CD pipeline. There's no drift to worry about.
So upon deploy the CD pipeline calls kubectl with the proper deployment image and that's ok?
Yes.