Skip to content

[ca] Refactor SecurityConfig to automatically create a watch.Queue#2274

Merged
diogomonica merged 1 commit intomoby:masterfrom
cyli:refactor-security-config-set-watch
Jun 26, 2017
Merged

[ca] Refactor SecurityConfig to automatically create a watch.Queue#2274
diogomonica merged 1 commit intomoby:masterfrom
cyli:refactor-security-config-set-watch

Conversation

@cyli
Copy link
Copy Markdown
Contributor

@cyli cyli commented Jun 21, 2017

Rather than use SetWatch. This returns the watch.Queue.Close function as a cleanup function whenever a security config is created.

cc @aaronlehmann @diogomonica

…t API users

watch the queue for updates.  This means that creators of a SecurityConfig need
to close the watch queue for cleanup.

Signed-off-by: Ying Li <ying.li@docker.com>
@aaronlehmann
Copy link
Copy Markdown
Collaborator

How does this relate to #2262?

@cyli
Copy link
Copy Markdown
Contributor Author

cyli commented Jun 21, 2017

It would reduce the amount of changed files in the last commit of #2262, and in particular, addresses #2262 (comment) because NewSecurityConfig now returns the watch close function, rather than how it is currently in #2262 with SecurityConfig having a Close function.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 21, 2017

Codecov Report

Merging #2274 into master will increase coverage by 0.02%.
The diff coverage is 72.5%.

@@            Coverage Diff             @@
##           master    #2274      +/-   ##
==========================================
+ Coverage   60.33%   60.35%   +0.02%     
==========================================
  Files         125      125              
  Lines       20394    20395       +1     
==========================================
+ Hits        12304    12309       +5     
+ Misses       6698     6693       -5     
- Partials     1392     1393       +1

@aaronlehmann
Copy link
Copy Markdown
Collaborator

LGTM

@aaronlehmann
Copy link
Copy Markdown
Collaborator

ping @diogomonica

@diogomonica diogomonica merged commit 1758d51 into moby:master Jun 26, 2017
@cyli cyli deleted the refactor-security-config-set-watch branch June 26, 2017 20:31
andrewhsu pushed a commit to docker-archive/docker-ce that referenced this pull request Jul 14, 2017
- moby/swarmkit#2266 (support for templating Node.Hostname in docker executor)
- moby/swarmkit#2281 (change restore action on objects to be update, not delete/create)
- moby/swarmkit#2285 (extend watch queue with timeout and size limit)
- moby/swarmkit#2253 (version-aware failure tracking in the scheduler)
- moby/swarmkit#2275 (update containerd and port executor to container client library)
- moby/swarmkit#2292 (rename some generic resources)
- moby/swarmkit#2300 (limit the size of the external CA response)
- moby/swarmkit#2301 (delete global tasks when the node running them is deleted)

Minor cleanups, dependency bumps, and vendoring:
- moby/swarmkit#2271
- moby/swarmkit#2279
- moby/swarmkit#2283
- moby/swarmkit#2282
- moby/swarmkit#2274
- moby/swarmkit#2296 (dependency bump of etcd, go-winio)

Signed-off-by: Ying Li <ying.li@docker.com>
Upstream-commit: 4509a00
Component: engine
silvin-lubecki pushed a commit to silvin-lubecki/engine-extract that referenced this pull request Mar 16, 2020
- moby/swarmkit#2266 (support for templating Node.Hostname in docker executor)
- moby/swarmkit#2281 (change restore action on objects to be update, not delete/create)
- moby/swarmkit#2285 (extend watch queue with timeout and size limit)
- moby/swarmkit#2253 (version-aware failure tracking in the scheduler)
- moby/swarmkit#2275 (update containerd and port executor to container client library)
- moby/swarmkit#2292 (rename some generic resources)
- moby/swarmkit#2300 (limit the size of the external CA response)
- moby/swarmkit#2301 (delete global tasks when the node running them is deleted)

Minor cleanups, dependency bumps, and vendoring:
- moby/swarmkit#2271
- moby/swarmkit#2279
- moby/swarmkit#2283
- moby/swarmkit#2282
- moby/swarmkit#2274
- moby/swarmkit#2296 (dependency bump of etcd, go-winio)

Signed-off-by: Ying Li <ying.li@docker.com>
Upstream-commit: 4509a00
Component: engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants