Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Implement versioned fluxd protocol #491

Merged
merged 4 commits into from
Mar 16, 2017
Merged

Conversation

awh
Copy link
Contributor

@awh awh commented Mar 15, 2017

WIP scaffolding for versioning the fluxd protocol. TBD:

  • 'NeedsUpgrade' error to be returned to platform clients (e.g. fluxsvc on behalf of fluxctl) when an old fluxd can't support the requested operation
  • Sensible fluxd behaviour when it tries to talk to a deprecated RegisterDaemon endpoint

Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

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

Just a suggestion that came to mind.

Another thought: can we move the versioned bits into packages, platform/v4 etc.? Or too much faff.

@@ -10,35 +10,35 @@ import (
"github.com/weaveworks/flux/platform"

This comment was marked as abuse.

Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

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

LGTM, nice work Adam

@squaremo squaremo changed the title [WIP] Implement versioned fluxd protocol Implement versioned fluxd protocol Mar 16, 2017
@squaremo
Copy link
Member

'NeedsUpgrade' error to be returned to platform clients (e.g. fluxsvc on behalf of fluxctl) when an old fluxd can't support the requested operation

Done neatly.

Sensible fluxd behaviour when it tries to talk to a deprecated RegisterDaemon endpoint

Not a problem we'll have until we actually deprecate an endpoint, but we should build it in at least a version before we do that :)

@squaremo squaremo merged commit f8cd394 into master Mar 16, 2017
@awh awh deleted the versioned-fluxd-protocol branch May 8, 2017 08:38
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.

2 participants