@@ -18,26 +18,27 @@ func containerSpecFromGRPC(c *swarmapi.ContainerSpec) *types.ContainerSpec {
1818 return nil
1919 }
2020 containerSpec := & types.ContainerSpec {
21- Image : c .Image ,
22- Labels : c .Labels ,
23- Command : c .Command ,
24- Args : c .Args ,
25- Hostname : c .Hostname ,
26- Env : c .Env ,
27- Dir : c .Dir ,
28- User : c .User ,
29- Groups : c .Groups ,
30- StopSignal : c .StopSignal ,
31- TTY : c .TTY ,
32- OpenStdin : c .OpenStdin ,
33- ReadOnly : c .ReadOnly ,
34- Hosts : c .Hosts ,
35- Secrets : secretReferencesFromGRPC (c .Secrets ),
36- Configs : configReferencesFromGRPC (c .Configs ),
37- Isolation : IsolationFromGRPC (c .Isolation ),
38- Init : initFromGRPC (c .Init ),
39- Sysctls : c .Sysctls ,
40- Capabilities : c .Capabilities ,
21+ Image : c .Image ,
22+ Labels : c .Labels ,
23+ Command : c .Command ,
24+ Args : c .Args ,
25+ Hostname : c .Hostname ,
26+ Env : c .Env ,
27+ Dir : c .Dir ,
28+ User : c .User ,
29+ Groups : c .Groups ,
30+ StopSignal : c .StopSignal ,
31+ TTY : c .TTY ,
32+ OpenStdin : c .OpenStdin ,
33+ ReadOnly : c .ReadOnly ,
34+ Hosts : c .Hosts ,
35+ Secrets : secretReferencesFromGRPC (c .Secrets ),
36+ Configs : configReferencesFromGRPC (c .Configs ),
37+ Isolation : IsolationFromGRPC (c .Isolation ),
38+ Init : initFromGRPC (c .Init ),
39+ Sysctls : c .Sysctls ,
40+ CapabilityAdd : c .CapabilityAdd ,
41+ CapabilityDrop : c .CapabilityDrop ,
4142 }
4243
4344 if c .DNSConfig != nil {
@@ -246,25 +247,26 @@ func configReferencesFromGRPC(sr []*swarmapi.ConfigReference) []*types.ConfigRef
246247
247248func containerToGRPC (c * types.ContainerSpec ) (* swarmapi.ContainerSpec , error ) {
248249 containerSpec := & swarmapi.ContainerSpec {
249- Image : c .Image ,
250- Labels : c .Labels ,
251- Command : c .Command ,
252- Args : c .Args ,
253- Hostname : c .Hostname ,
254- Env : c .Env ,
255- Dir : c .Dir ,
256- User : c .User ,
257- Groups : c .Groups ,
258- StopSignal : c .StopSignal ,
259- TTY : c .TTY ,
260- OpenStdin : c .OpenStdin ,
261- ReadOnly : c .ReadOnly ,
262- Hosts : c .Hosts ,
263- Secrets : secretReferencesToGRPC (c .Secrets ),
264- Isolation : isolationToGRPC (c .Isolation ),
265- Init : initToGRPC (c .Init ),
266- Sysctls : c .Sysctls ,
267- Capabilities : c .Capabilities ,
250+ Image : c .Image ,
251+ Labels : c .Labels ,
252+ Command : c .Command ,
253+ Args : c .Args ,
254+ Hostname : c .Hostname ,
255+ Env : c .Env ,
256+ Dir : c .Dir ,
257+ User : c .User ,
258+ Groups : c .Groups ,
259+ StopSignal : c .StopSignal ,
260+ TTY : c .TTY ,
261+ OpenStdin : c .OpenStdin ,
262+ ReadOnly : c .ReadOnly ,
263+ Hosts : c .Hosts ,
264+ Secrets : secretReferencesToGRPC (c .Secrets ),
265+ Isolation : isolationToGRPC (c .Isolation ),
266+ Init : initToGRPC (c .Init ),
267+ Sysctls : c .Sysctls ,
268+ CapabilityAdd : c .CapabilityAdd ,
269+ CapabilityDrop : c .CapabilityDrop ,
268270 }
269271
270272 if c .DNSConfig != nil {
0 commit comments