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

Add a command to remove a repository from jx #462

Open
ankitm123 opened this issue Dec 22, 2021 · 3 comments
Open

Add a command to remove a repository from jx #462

ankitm123 opened this issue Dec 22, 2021 · 3 comments

Comments

@ankitm123
Copy link
Contributor

it's easy to import a repository into Jenkins X using jx project import, but there is no jx project remove command to remove the imported repository. It's a manual process atm.

@msvticket
Copy link
Contributor

Doesn't jx application delete do the trick? It's supposed to...

@franlucchini-ceniadev
Copy link

franlucchini-ceniadev commented Oct 12, 2022

From what I tried, jx application delete --repo <repo_name> creates the PR in the cluster repo to remove a project from .jx/gitops/source-config.yaml.

But, after the merge ends, when I run the update webhook command jx gitops webhook update --warn-on-fail, the deleted repos appear in the list. The source repository list also shows them when I run kubectl get sourcerepositories -A.

I checked the jx scm repository delete -o <owner> --filter ... command. Whit the --dry-run flag, it shows the repo of the project I want to delete, but without the flag, returns a 403 error.

@msvticket
Copy link
Contributor

jx application delete works for me. But in my cluster I use kpt live apply instead of kubectl apply --prune to apply the manifests. (See jenkins-x/jx3-versions#3223.)

kubectl apply --prune would indeed not delete any sourcerepositoriis from the cluster even if they where removed from the manifests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants