|
54 | 54 | `)
|
55 | 55 |
|
56 | 56 | interpretExample = templates.Examples(`
|
57 |
| - # Check the customizations in file |
| 57 | + # Check the customizations in file (only YAML and JSON formats are supported) |
58 | 58 | %[1]s interpret -f customization.json --check
|
59 | 59 |
|
60 | 60 | # Execute the retention rule
|
@@ -129,7 +129,7 @@ func NewCmdInterpret(f util.Factory, parentCommand string, streams genericioopti
|
129 | 129 | 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.")
|
130 | 130 | 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.")
|
131 | 131 | 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.") |
133 | 133 | 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.")
|
134 | 134 |
|
135 | 135 | utilcomp.RegisterCompletionFuncForKarmadaContextFlag(cmd)
|
|
0 commit comments