Delete before deploy and wildcards in delete #298
-
There should be a configuration option to apply a delete configuration before the other configurations.
to delete all app-detection-rules in this example and then define new app-detection-rules in the same deploy statement. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @mdicss, for me it looks like you are trying to overcome some configuration or possible api bug here. Monaco is always detecting existing configuration by This kind of workflow is also a reason delete is executed after deployment. Otherwise, you would be constantly recreating configuration and for some API's this means losing all history. Adding wildcard would IMO make sense. Delete will be reworked with new configuration in monaco 2.0. |
Beta Was this translation helpful? Give feedback.
Hi @mdicss, for me it looks like you are trying to overcome some configuration or possible api bug here. Monaco is always detecting existing configuration by
name
parameter and then using PUT method to update existing, or use POST method to create new configuration. Please make sure to use unmodified{{ .name }}
variable in JSON and also to define name in YAML file. Havingname
in JSON different then what's defined in YAML would result in this kind of errors you are describing.This kind of workflow is also a reason delete is executed after deployment. Otherwise, you would be constantly recreating configuration and for some API's this means losing all history.
Adding wildcard would IMO ma…