Skip to content

Conversation

@rumpl
Copy link
Member

@rumpl rumpl commented Nov 4, 2019

Fixes docker-archive-public/docker.app#688

- What I did
Added interpolation type cast mapping for missing deploy.placement.max_replicas_per_node.

- How to verify it

Changed the unit test

- A picture of a cute animal (not mandatory but encouraged)
image

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "fix-max_replicas_per_node_interpolation" git@github.com:rumpl/cli.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@rumpl rumpl force-pushed the fix-max_replicas_per_node_interpolation branch from 3041997 to d090152 Compare November 4, 2019 13:27
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

overall LGTM, but left a comment

func TestLoadWithInterpolationCastFull(t *testing.T) {
dict, err := ParseYAML([]byte(`
version: "3.7"
version: "3.9"
Copy link
Member

Choose a reason for hiding this comment

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

Could you change this to version 3.8? This feature was added in 19.03 (through #1612), which has compose schema 3.8 as maximum

Changing to version 3.8 would allow us to back port this fix

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Fixes docker-archive-public/docker.app#688

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl force-pushed the fix-max_replicas_per_node_interpolation branch from d090152 to cb29ef6 Compare November 5, 2019 07:31
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subkeys render error - max_replicas_per_node

4 participants