Skip to content

Commit 226af68

Browse files
committed
cli/command/service: fix API version for memory-swap, memory-swappiness
These flags were added in 71828f2, but copy/pasted the annotation from `--limit-pids`. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 93fa57b commit 226af68

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)