Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: transition into new terminology #1188

Merged
merged 10 commits into from Jun 9, 2020
Merged

Conversation

shlomi-noach
Copy link
Collaborator

Followup to #1182 and #1187 : this PR changes the Instance API by adding new fields using "replica" terminology, on top of existing fields.
This is done by adding MarshalJSON() function which, at point of marshaling, updates new-terminology fields to the proper values.

This is step 1 in transitioning into new terminology.

Clients are now able to use new terminology and drop usage of old terminology.

Future followups will be:

  • Switch internally to new terminology, reverse marshaling logic
  • Removal of old terminology fields. This is in the longer future since all users will have to first switch to new terminology, or else orchestrator breaks.

@shlomi-noach
Copy link
Collaborator Author

It's best to review the changes hiding whitespace diffs, see https://github.com/openark/orchestrator/pull/1188/files?diff=unified&w=1

@shlomi-noach shlomi-noach merged commit 17df64e into master Jun 9, 2020
@shlomi-noach shlomi-noach deleted the api-instance-terminology branch June 9, 2020 10:53
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.

None yet

1 participant