-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct diffs when comparing objects with empty tags (#985)
Right now, when some declarative configuration having empty tags on any of its entities is deployed, subsequent `diff` / `sync` will show misleading results: ``` $ cat kong.yaml _format_version: "3.0" services: - name: foo protocol: http host: foo port: 8000 tags: [] $ deck sync creating service foo Summary: Created: 1 Updated: 0 Deleted: 0 $ deck sync updating service foo { "connect_timeout": 60000, "enabled": true, "host": "foo", "id": "afadd2ed-2bcd-49fc-9000-adb58cd11b50", "name": "foo", "port": 8000, "protocol": "http", "read_timeout": 60000, "retries": 5, "write_timeout": 60000 } Summary: Created: 0 Updated: 1 Deleted: 0 ``` The second `deck sync` run is showing an update without an actual diff. This is due to the way empty tags are treated internally in decK. This commit fixes this defect.
- Loading branch information
Showing
2 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters