You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# See, what the prune command would delete if we're interested in removing images
95
90
# exceeding currently set limit ranges ('openshift.io/Image')
96
91
%[1]s %[2]s --prune-over-size-limit
@@ -113,17 +108,15 @@ var (
113
108
114
109
// PruneImagesOptions holds all the required options for pruning images.
115
110
typePruneImagesOptionsstruct {
116
-
Confirmbool
117
-
KeepYoungerThan*time.Duration
118
-
KeepTagRevisions*int
119
-
PruneOverSizeLimit*bool
120
-
AllImages*bool
121
-
CABundlestring
122
-
RegistryUrlOverridestring
123
-
Namespacestring
124
-
ForceInsecurebool
125
-
ExcludeImageStreamTagstring
126
-
ExcludeImageStreamTagFilestring
111
+
Confirmbool
112
+
KeepYoungerThan*time.Duration
113
+
KeepTagRevisions*int
114
+
PruneOverSizeLimit*bool
115
+
AllImages*bool
116
+
CABundlestring
117
+
RegistryUrlOverridestring
118
+
Namespacestring
119
+
ForceInsecurebool
127
120
128
121
ClientConfig*restclient.Config
129
122
AppsClient appsclient.AppsInterface
@@ -165,8 +158,6 @@ func NewCmdPruneImages(f *clientcmd.Factory, parentName, name string, out io.Wri
165
158
cmd.Flags().BoolVar(opts.AllImages, "all", *opts.AllImages, "Include images that were imported from external registries as candidates for pruning. If pruned, all the mirrored objects associated with them will also be removed from the integrated registry.")
166
159
cmd.Flags().DurationVar(opts.KeepYoungerThan, "keep-younger-than", *opts.KeepYoungerThan, "Specify the minimum age of an image and its referrers for it to be considered a candidate for pruning.")
167
160
cmd.Flags().IntVar(opts.KeepTagRevisions, "keep-tag-revisions", *opts.KeepTagRevisions, "Specify the number of image revisions for a tag in an image stream that will be preserved.")
168
-
cmd.Flags().StringVar(&opts.ExcludeImageStreamTag, "exclude-imagestreamtag", "", "The regular expression matching ImageStreamTags excluded from pruning.")
169
-
cmd.Flags().StringVar(&opts.ExcludeImageStreamTagFile, "exclude-imagestreamtag-file", "", "The filename that contains the regular expressions matching ImageStreamTags excluded from pruning.")
170
161
cmd.Flags().BoolVar(opts.PruneOverSizeLimit, "prune-over-size-limit", *opts.PruneOverSizeLimit, "Specify if images which are exceeding LimitRanges (see 'openshift.io/Image'), specified in the same namespace, should be considered for pruning. This flag cannot be combined with --keep-younger-than nor --keep-tag-revisions.")
171
162
cmd.Flags().StringVar(&opts.CABundle, "certificate-authority", opts.CABundle, "The path to a certificate authority bundle to use when communicating with the managed Docker registries. Defaults to the certificate authority data from the current user's config file. It cannot be used together with --force-insecure.")
172
163
cmd.Flags().StringVar(&opts.RegistryUrlOverride, "registry-url", opts.RegistryUrlOverride, "The address to use when contacting the registry, instead of using the default value. This is useful if you can't resolve or reach the registry (e.g.; the default is a cluster-internal URL) but you do have an alternative route that works. Particular transport protocol can be enforced using '<scheme>://' prefix.")
@@ -396,19 +387,6 @@ func (o PruneImagesOptions) Run() error {
0 commit comments