Skip to content

Commit bcdfbf5

Browse files
Fixing unused flags
1 parent 1c967ba commit bcdfbf5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/non-admin/restore/create.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ type CreateOptions struct {
7676
FromBackup string
7777
IncludeResources flag.StringArray
7878
ExcludeResources flag.StringArray
79-
NamespaceMapping flag.Map
8079
Labels flag.Map
8180
Annotations flag.Map
8281
Selector flag.LabelSelector
@@ -97,7 +96,6 @@ func NewCreateOptions() *CreateOptions {
9796
IncludeResources: flag.NewStringArray("*"),
9897
Labels: flag.NewMap(),
9998
Annotations: flag.NewMap(),
100-
NamespaceMapping: flag.NewMap(),
10199
UploaderConfig: flag.NewMap(),
102100
IncludeClusterResources: flag.NewOptionalBool(nil),
103101
RestorePVs: flag.NewOptionalBool(nil),
@@ -111,7 +109,6 @@ func (o *CreateOptions) BindFlags(flags *pflag.FlagSet) {
111109
flags.Var(&o.ExcludeResources, "exclude-resources", "Resources to exclude from the restore, formatted as resource.group, such as storageclasses.storage.k8s.io.")
112110
flags.Var(&o.Labels, "labels", "Labels to apply to the restore.")
113111
flags.Var(&o.Annotations, "annotations", "Annotations to apply to the restore.")
114-
// Note: namespace-mappings are restricted for non-admin users and therefore not exposed
115112
flags.VarP(&o.Selector, "selector", "l", "Only restore resources matching this label selector.")
116113
flags.Var(&o.OrSelector, "or-selector", "Restore resources matching at least one of the label selector from the list. Label selectors should be separated by ' or '. For example, foo=bar or app=nginx")
117114
flags.DurationVar(&o.ItemOperationTimeout, "item-operation-timeout", o.ItemOperationTimeout, "How long to wait for async plugin operations before timeout.")

0 commit comments

Comments
 (0)