diff --git a/cmd/commands/project.go b/cmd/commands/project.go index 8253e611..23469e4a 100644 --- a/cmd/commands/project.go +++ b/cmd/commands/project.go @@ -130,7 +130,7 @@ func NewProjectCreateCommand() *cobra.Command { } cmd.Flags().StringVar(&kubeServer, "dest-server", "", "The default destination kubernetes server for applications in this project") - cmd.Flags().StringVar(&kubeContext, "dest-kube-context", "", "The default destination kubernetes context for applications in this project (will be ignored if --dest-kube-server is supplied)") + cmd.Flags().StringVar(&kubeContext, "dest-kube-context", "", "The default destination kubernetes context for applications in this project (will be ignored if --dest-server is supplied)") cmd.Flags().BoolVar(&dryRun, "dry-run", false, "If true, print manifests instead of applying them to the cluster (nothing will be commited to git)") cmd.Flags().StringToStringVar(&labels, "labels", nil, "Optional labels that will be set on the Application resource. (e.g. \"app.kubernetes.io/managed-by={{ placeholder }}\"") cmd.Flags().StringToStringVar(&annotations, "annotations", nil, "Optional annotations that will be set on the Application resource. (e.g. \"argocd.argoproj.io/sync-wave={{ placeholder }}\"") diff --git a/docs/commands/argocd-autopilot_project_create.md b/docs/commands/argocd-autopilot_project_create.md index 27b6e989..b1e7ad82 100644 --- a/docs/commands/argocd-autopilot_project_create.md +++ b/docs/commands/argocd-autopilot_project_create.md @@ -43,7 +43,7 @@ argocd-autopilot project create [PROJECT] [flags] --config string Path to Argo CD config (default "/home/user/.config/argocd/config") --controller-name string Name of the Argo CD Application controller; set this or the ARGOCD_APPLICATION_CONTROLLER_NAME environment variable when the controller's name label differs from the default, for example when installing via the Helm chart (default "argocd-application-controller") --core If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server - --dest-kube-context string The default destination kubernetes context for applications in this project (will be ignored if --dest-kube-server is supplied) + --dest-kube-context string The default destination kubernetes context for applications in this project (will be ignored if --dest-server is supplied) --dest-server string The default destination kubernetes server for applications in this project --dry-run If true, print manifests instead of applying them to the cluster (nothing will be commited to git) --exec-command string Command to run to provide client credentials to the cluster. You may need to build a custom ArgoCD image to ensure the command is available at runtime.