Skip to content

Commit 55d80cc

Browse files
authored
Merge pull request #6714 from thaJeztah/fix_api_versions
cli/command/service: fix API version for memory-swap, memory-swappiness
2 parents 7c38d6b + 226af68 commit 55d80cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/service/opts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,9 @@ func addServiceFlags(flags *pflag.FlagSet, options *serviceOptions, defaultFlagV
905905
flags.Int64Var(&options.resources.limitPids, flagLimitPids, 0, "Limit maximum number of processes (default 0 = unlimited)")
906906
flags.SetAnnotation(flagLimitPids, "version", []string{"1.41"})
907907
flags.Var(&options.resources.swapBytes, flagSwapBytes, "Swap Bytes (-1 for unlimited)")
908-
flags.SetAnnotation(flagLimitPids, "version", []string{"1.52"})
908+
flags.SetAnnotation(flagSwapBytes, "version", []string{"1.52"})
909909
flags.Int64Var(&options.resources.memSwappiness, flagMemSwappiness, -1, "Tune memory swappiness (0-100), -1 to reset to default")
910-
flags.SetAnnotation(flagLimitPids, "version", []string{"1.52"})
910+
flags.SetAnnotation(flagMemSwappiness, "version", []string{"1.52"})
911911

912912
flags.Var(&options.stopGrace, flagStopGracePeriod, flagDesc(flagStopGracePeriod, "Time to wait before force killing a container (ns|us|ms|s|m|h)"))
913913
flags.Var(&options.replicas, flagReplicas, "Number of tasks")

0 commit comments

Comments
 (0)