Skip to content

Add support for using Configs as CredentialSpecs in services#38672

Closed
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:swarm_credentialspec_config
Closed

Add support for using Configs as CredentialSpecs in services#38672
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:swarm_credentialspec_config

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Feb 1, 2019

Follow up to #38520

Brings in API changes for moby/swarmkit#2771

- Description for the changelog

+ Add support for using Configs as CredentialSpecs in services

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

@thaJeztah
Copy link
Copy Markdown
Member Author

ping @dperny @anshulpundir @wk8 PTAL; I think this is roughly what's needed to make it work 😅

@thaJeztah thaJeztah force-pushed the swarm_credentialspec_config branch from 8f93e53 to 325c992 Compare February 1, 2019 14:48
@thaJeztah thaJeztah force-pushed the swarm_credentialspec_config branch 2 times, most recently from 7b29ff5 to 129d411 Compare February 1, 2019 14:54
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 1, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@50e63ad). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master   #38672   +/-   ##
=========================================
  Coverage          ?   36.72%           
=========================================
  Files             ?      610           
  Lines             ?    45265           
  Branches          ?        0           
=========================================
  Hits              ?    16622           
  Misses            ?    26359           
  Partials          ?     2284

@thaJeztah
Copy link
Copy Markdown
Member Author

thaJeztah commented Feb 1, 2019

All green; but I'll rebase this on top of #38673 just to be sure (merged, and rebased)

@thaJeztah thaJeztah force-pushed the swarm_credentialspec_config branch from 129d411 to e4474ce Compare February 1, 2019 21:27
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@dperny
Copy link
Copy Markdown
Contributor

dperny commented Feb 5, 2019

i added this commit to #38632, so all of the changes are in the same place.

// API version 1.40
service.TaskTemplate.ContainerSpec.Sysctls = nil

if service.TaskTemplate.ContainerSpec.Privileges != nil && service.TaskTemplate.ContainerSpec.Privileges.CredentialSpec != nil {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: extract and factorize it with createService, as the logic is not that simple?

@cpuguy83
Copy link
Copy Markdown
Member

cpuguy83 commented Feb 6, 2019

Should this be closed in favor of #38632?

@thaJeztah
Copy link
Copy Markdown
Member Author

Yes, let's close this one, as my changes were included in the other PR

@thaJeztah thaJeztah closed this Feb 19, 2019
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.

5 participants