Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

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 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