Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

API: transition into new terminology#1188

Merged
shlomi-noach merged 10 commits intomasterfrom
api-instance-terminology
Jun 9, 2020
Merged

API: transition into new terminology#1188
shlomi-noach merged 10 commits intomasterfrom
api-instance-terminology

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant