Skip to content

Commit bcb8d75

Browse files
committed
ex: docekrgc: remove BindForOutput flags
1 parent 4d15c88 commit bcb8d75

File tree

3 files changed

+0
-45
lines changed

3 files changed

+0
-45
lines changed

contrib/completions/bash/oc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12056,30 +12056,12 @@ _oc_ex_dockergc()
1205612056
flags_with_completion=()
1205712057
flags_completion=()
1205812058

12059-
flags+=("--dry-run")
12060-
local_nonpersistent_flags+=("--dry-run")
1206112059
flags+=("--image-gc-high-threshold=")
1206212060
local_nonpersistent_flags+=("--image-gc-high-threshold=")
1206312061
flags+=("--image-gc-low-threshold=")
1206412062
local_nonpersistent_flags+=("--image-gc-low-threshold=")
1206512063
flags+=("--minimum-ttl-duration=")
1206612064
local_nonpersistent_flags+=("--minimum-ttl-duration=")
12067-
flags+=("--no-headers")
12068-
local_nonpersistent_flags+=("--no-headers")
12069-
flags+=("--output=")
12070-
two_word_flags+=("-o")
12071-
local_nonpersistent_flags+=("--output=")
12072-
flags+=("--show-all")
12073-
flags+=("-a")
12074-
local_nonpersistent_flags+=("--show-all")
12075-
flags+=("--show-labels")
12076-
local_nonpersistent_flags+=("--show-labels")
12077-
flags+=("--sort-by=")
12078-
local_nonpersistent_flags+=("--sort-by=")
12079-
flags+=("--template=")
12080-
flags_with_completion+=("--template")
12081-
flags_completion+=("_filedir")
12082-
local_nonpersistent_flags+=("--template=")
1208312065
flags+=("--as=")
1208412066
flags+=("--as-group=")
1208512067
flags+=("--cache-dir=")

contrib/completions/zsh/oc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12198,30 +12198,12 @@ _oc_ex_dockergc()
1219812198
flags_with_completion=()
1219912199
flags_completion=()
1220012200

12201-
flags+=("--dry-run")
12202-
local_nonpersistent_flags+=("--dry-run")
1220312201
flags+=("--image-gc-high-threshold=")
1220412202
local_nonpersistent_flags+=("--image-gc-high-threshold=")
1220512203
flags+=("--image-gc-low-threshold=")
1220612204
local_nonpersistent_flags+=("--image-gc-low-threshold=")
1220712205
flags+=("--minimum-ttl-duration=")
1220812206
local_nonpersistent_flags+=("--minimum-ttl-duration=")
12209-
flags+=("--no-headers")
12210-
local_nonpersistent_flags+=("--no-headers")
12211-
flags+=("--output=")
12212-
two_word_flags+=("-o")
12213-
local_nonpersistent_flags+=("--output=")
12214-
flags+=("--show-all")
12215-
flags+=("-a")
12216-
local_nonpersistent_flags+=("--show-all")
12217-
flags+=("--show-labels")
12218-
local_nonpersistent_flags+=("--show-labels")
12219-
flags+=("--sort-by=")
12220-
local_nonpersistent_flags+=("--sort-by=")
12221-
flags+=("--template=")
12222-
flags_with_completion+=("--template")
12223-
flags_completion+=("_filedir")
12224-
local_nonpersistent_flags+=("--template=")
1222512207
flags+=("--as=")
1222612208
flags+=("--as-group=")
1222712209
flags+=("--cache-dir=")

pkg/oc/experimental/dockergc/dockergc.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
dockerapi "github.com/docker/engine-api/client"
2020
dockertypes "github.com/docker/engine-api/types"
2121
dockerfilters "github.com/docker/engine-api/types/filters"
22-
configcmd "github.com/openshift/origin/pkg/config/cmd"
2322
"github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
2423
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2524
)
@@ -35,8 +34,6 @@ var (
3534

3635
// DockerGCConfigCmdOptions are options supported by the dockergc admin command.
3736
type dockerGCConfigCmdOptions struct {
38-
Action configcmd.BulkAction
39-
4037
// MinimumGCAge is the minimum age for a container or unused image before
4138
// it is garbage collected.
4239
MinimumGCAge metav1.Duration
@@ -68,10 +65,6 @@ var (
6865

6966
func NewCmdDockerGCConfig(f *clientcmd.Factory, parentName, name string, out, errout io.Writer) *cobra.Command {
7067
options := &dockerGCConfigCmdOptions{
71-
Action: configcmd.BulkAction{
72-
Out: out,
73-
ErrOut: errout,
74-
},
7568
MinimumGCAge: DefaultMinimumGCAge,
7669
ImageGCHighThresholdPercent: DefaultImageGCHighThresholdPercent,
7770
ImageGCLowThresholdPercent: DefaultImageGCLowThresholdPercent,
@@ -94,8 +87,6 @@ func NewCmdDockerGCConfig(f *clientcmd.Factory, parentName, name string, out, er
9487
cmd.Flags().Int32Var(&options.ImageGCHighThresholdPercent, "image-gc-high-threshold", options.ImageGCHighThresholdPercent, "The percent of disk usage after which image garbage collection is always run.")
9588
cmd.Flags().Int32Var(&options.ImageGCLowThresholdPercent, "image-gc-low-threshold", options.ImageGCLowThresholdPercent, "The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to.")
9689

97-
options.Action.BindForOutput(cmd.Flags())
98-
9990
return cmd
10091
}
10192

0 commit comments

Comments
 (0)