Skip to content

Commit e335bc2

Browse files
authored
Merge pull request #6627 from tessapham/fix-filename
update -f flag description for karmadactl interpret
2 parents 8f9f9ef + 0243055 commit e335bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/karmadactl/interpret/interpret.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var (
5454
`)
5555

5656
interpretExample = templates.Examples(`
57-
# Check the customizations in file
57+
# Check the customizations in file (only YAML and JSON formats are supported)
5858
%[1]s interpret -f customization.json --check
5959
6060
# Execute the retention rule
@@ -129,7 +129,7 @@ func NewCmdInterpret(f util.Factory, parentCommand string, streams genericioopti
129129
flags.StringVar(&o.ObservedFile, "observed-file", o.ObservedFile, "Filename, directory, or URL to files identifying the resource to use as observedObj argument in rule script.")
130130
flags.StringVar(&o.StatusFile, "status-file", o.StatusFile, "Filename, directory, or URL to files identifying the resource to use as statusItems argument in rule script.")
131131
flags.Int32Var(&o.DesiredReplica, "desired-replica", o.DesiredReplica, "The desiredReplica argument in rule script.")
132-
cmdutil.AddJsonFilenameFlag(flags, &o.FilenameOptions.Filenames, "Filename, directory, or URL to files containing the customizations")
132+
cmdutil.AddJsonFilenameFlag(flags, &o.FilenameOptions.Filenames, "Filename, directory, or URL to files containing the customizations. Files need to be in either YAML or JSON format.")
133133
flags.BoolVarP(&o.FilenameOptions.Recursive, "recursive", "R", false, "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.")
134134

135135
utilcomp.RegisterCompletionFuncForKarmadaContextFlag(cmd)

0 commit comments

Comments
 (0)