Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd-utils import command needs pruning #3478

Closed
viveksatasiya opened this issue Apr 24, 2020 · 2 comments
Closed

argocd-utils import command needs pruning #3478

viveksatasiya opened this issue Apr 24, 2020 · 2 comments
Assignees
Labels
bug Something isn't working component:cli Affects the Argo CD CLI

Comments

@viveksatasiya
Copy link

Hello,

I deployed a new argocd release using helm chart. After deployment of argocd, I added a new repository using argocd UI. Then I tool a backup of yaml files using argocd-utils export command as described in disaster recovery page in the documentation. I got the backup yaml file.

After that, when I try to import argocd backup files taken using argocd-export command, I got the following response.

/ConfigMap argocd-ssh-known-hosts-cm needs pruning /Secret repo-1660342773 needs pruning /Secret argocd-secret needs pruning argoproj.io/AppProject default needs pruning /ConfigMap argocd-rbac-cm needs pruning /ConfigMap argocd-tls-certs-cm needs pruning /ConfigMap argocd-cm needs pruning

Am I making any mistake while importing the backup files?

Please help.

Thanks in advance.

@viveksatasiya viveksatasiya added the bug Something isn't working label Apr 24, 2020
@alexmt alexmt self-assigned this Apr 30, 2020
@jannfis jannfis added the component:cli Affects the Argo CD CLI label May 14, 2020
@allej
Copy link

allej commented May 18, 2020

Hi,
this is probably just a documentation issue. When running the import as documented:
docker run -v ~/.kube:/home/argocd/.kube --rm argoproj/argocd:$VERSION argocd-util import - < backup.yaml,
then docker does not read anything from stdin. The import command gets an empty file to work with. Therefore, all resources will be pruned.
The corrected docker call should include the -i flag for interactive mode:
docker run -i -v ~/.kube:/home/argocd/.kube --rm argoproj/argocd:$VERSION argocd-util import - < backup.yaml

@jannfis
Copy link
Member

jannfis commented Jun 4, 2020

@viveksatasiya Going to close this issue because I think it is resolved by the updated command, also documentation was updated to reflect this (#3710) - if problem persists, please re-open this issue.

@jannfis jannfis closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:cli Affects the Argo CD CLI
Projects
None yet
Development

No branches or pull requests

4 participants