Description
What is the feature and why do you need it:
I would like to have an 'apply' (patch) mode for the helpful create_from_yaml
/create_from_dict
utility methods.
I currently use this to automate deployment of our application, however from time-to-time something goes wrong in the deployment and we need to deploy it again. At the moment we can't re-run the automation, because parts of it fail due to some objects having already been created.
I'm looking at catching the FailToCreateError
and checking for reason: "AlreadyExists"
, but at this point it would be wonderful to be able to run create_from_yaml
in an 'apply'/patch mode, rather than have to build out the full request myself.
Describe the solution you'd like to see:
Probably something as simple as an apply=True
or patch=True
argument on these methods could do the job?