Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -61,7 +61,7 @@ func withRlimits(daemon *Daemon, daemonCfg *dconfig.Config, c *container.Contain |
| 61 | 61 |
} |
| 62 | 62 |
|
| 63 | 63 |
// withRootless sets the spec to the rootless configuration |
| 64 |
-func withRootless(daemon *Daemon, daemonCfg *dconfig.Config) coci.SpecOpts {
|
|
| 64 |
+func withRootless(_ *Daemon, daemonCfg *dconfig.Config) coci.SpecOpts {
|
|
| 65 | 65 |
return func(_ context.Context, _ coci.Client, _ *containers.Container, s *coci.Spec) error {
|
| 66 | 66 |
var v2Controllers []string |
| 67 | 67 |
if cgroupDriver(daemonCfg) == cgroupSystemdDriver {
|
| ... | ... |
@@ -89,7 +89,7 @@ func withRootless(daemon *Daemon, daemonCfg *dconfig.Config) coci.SpecOpts {
|
| 89 | 89 |
|
| 90 | 90 |
// withRootfulInRootless is used for "rootful-in-rootless" dind; |
| 91 | 91 |
// the daemon is running in UserNS but has no access to RootlessKit API socket, host filesystem, etc. |
| 92 |
-func withRootfulInRootless(daemon *Daemon, daemonCfg *dconfig.Config) coci.SpecOpts {
|
|
| 92 |
+func withRootfulInRootless(_ *Daemon, _ *dconfig.Config) coci.SpecOpts {
|
|
| 93 | 93 |
return func(_ context.Context, _ coci.Client, _ *containers.Container, s *coci.Spec) error {
|
| 94 | 94 |
specconv.ToRootfulInRootless(s) |
| 95 | 95 |
return nil |