Skip to content

Commit 06dd876

Browse files
authored
docs: update apps/appsets in any namespace flags documentation (#22480)
Signed-off-by: nitishfy <[email protected]>
1 parent 2fbace3 commit 06dd876

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

cmd/argocd/commands/admin/backup.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,18 @@ func NewExportCommand() *cobra.Command {
139139

140140
clientConfig = cli.AddKubectlFlagsToCmd(&command)
141141
command.Flags().StringVarP(&out, "out", "o", "-", "Output to the specified file instead of stdout")
142-
command.Flags().StringSliceVarP(&applicationNamespaces, "application-namespaces", "", []string{}, fmt.Sprintf("Comma separated list of namespace globs to export applications from. If not provided value from '%s' in %s will be used. If it's not defined, only applications from Argo CD namespace will be exported", applicationNamespacesCmdParamsKey, common.ArgoCDCmdParamsConfigMapName))
143-
command.Flags().StringSliceVarP(&applicationsetNamespaces, "applicationset-namespaces", "", []string{}, fmt.Sprintf("Comma separated list of namespace globs to export applicationsets from. If not provided value from '%s' in %s will be used. If it's not defined, only applicationsets from Argo CD namespace will be exported", applicationsetNamespacesCmdParamsKey, common.ArgoCDCmdParamsConfigMapName))
142+
command.Flags().StringSliceVarP(&applicationNamespaces, "application-namespaces", "", []string{}, fmt.Sprintf("Comma-separated list of namespace globs to export applications from, in addition to the control plane namespace (Argo CD namespace). "+
143+
"By default, all applications from the control plane namespace are always exported. "+
144+
"If this flag is provided, applications from the specified namespaces are exported along with the control plane namespace. "+
145+
"If not specified, the value from '%s' in %s is used (if defined in the ConfigMap). "+
146+
"If the ConfigMap value is not set, only applications from the control plane namespace are exported.",
147+
applicationNamespacesCmdParamsKey, common.ArgoCDCmdParamsConfigMapName))
148+
command.Flags().StringSliceVarP(&applicationsetNamespaces, "applicationset-namespaces", "", []string{}, fmt.Sprintf("Comma-separated list of namespace globs to export ApplicationSets from, in addition to the control plane namespace (Argo CD namespace). "+
149+
"By default, all ApplicationSets from the control plane namespace are always exported. "+
150+
"If this flag is provided, ApplicationSets from the specified namespaces are exported along with the control plane namespace. "+
151+
"If not specified, the value from '%s' in %s is used (if defined in the ConfigMap). "+
152+
"If the ConfigMap value is not set, only ApplicationSets from the control plane namespace are exported.",
153+
applicationsetNamespacesCmdParamsKey, common.ArgoCDCmdParamsConfigMapName))
144154
return &command
145155
}
146156

docs/user-guide/commands/argocd_admin_export.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)