Skip to content

Conversation

@eachirei
Copy link
Contributor

@eachirei eachirei commented Jun 7, 2020

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #24
License Apache 2.0

What's in this PR?

Change the JSON marshalling method to sort the keys.

Why?

Infinite reconcile loops caused by different annotations because of random order JSON representation.

Additional context

I tested the implementation by forking this repo and using it in my operator.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)

To Do

  • Run automated tests if needed?
  • Handle other places where this modification is required?

@pepov pepov requested review from Laci21 and pepov June 7, 2020 20:58
Copy link
Collaborator

@pepov pepov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@pepov pepov merged commit 1c8d494 into cisco-open:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployment meta annotations order broken

4 participants