Make Update Operations Idempotent
Closed this issue · 0 comments
danielhelfand commented
When using the update operation step, the following scenario can happen:
- Start by creating resources in a namespace
- The manifests originally used to create resources add a resource that wasn't part of the original create command.
- You want to update the existing resources while also creating this new resource.
- You use this new manifest with the update step, but it fails saying the new resource doesn't exist
Instead of failing in this scenario, the step should create the new resource if it doesn't exist and also update all of the existing resources defined in the manifest.
This is important because you may have a tool that generates manifests and in later versions adds additional resources and want to validate they can be created successfully.
There are several update operation steps, so ideally we will fix all update operations in kubedog as part of this issue.