influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
63 stars 24 forks source link

fix: template apply uses better diff checking #358

Closed lesam closed 2 years ago

lesam commented 2 years ago

fix: when statestatus is 'remove', mark as removed

fix: template apply uses better diff checking

Closes: https://github.com/influxdata/influx-cli/issues/233

Previously, we did a DeepEqual of all the returned data about each changed entity, but due to our template overrides that is not actually all the information available for each entity. So we marked trivial things as 'conflicts' (e.g. telegraf config ID's 'changing' from the empty string to the real, current value) while not catching important conflicts like flux script changes in checks and tasks.

Changes to make things more straightforward:

lesam commented 2 years ago

Issue opened ☝️