Skip to content

tk delete #155

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

Closed
sh0rez opened this issue Jan 11, 2020 · 2 comments
Closed

tk delete #155

sh0rez opened this issue Jan 11, 2020 · 2 comments
Assignees
Labels
component/cli Command Line Interface keepalive kind/feature Something new should be added
Milestone

Comments

@sh0rez
Copy link
Member

sh0rez commented Jan 11, 2020

Like kubectl, it should be easily possible to delete the resources created with Tanka:

  • tk delete <environment>
  • support for targets
  • must have diff output before

Implementation however must wait until #131 is merged, as this big PR messes with the deleting in the client too much


For now the following workaround can be used:

WARNING: Make sure to use the correct context in kubectl, otherwise you might delete from the wrong cluster.

$ tk show <environment> --dangerous-allow-redirect | kubectl delete -f - --context=correct-cluster-name
@sh0rez sh0rez added kind/feature Something new should be added component/cli Command Line Interface dependent labels Jan 11, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label kind/feature to this issue, with a confidence of 0.80. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@sh0rez sh0rez added lifecycle/blocked Blocked by outstanding changes (to another project) and removed dependent labels Jan 11, 2020
@stale
Copy link

stale bot commented Feb 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels Feb 10, 2020
@sh0rez sh0rez removed the lifecycle/blocked Blocked by outstanding changes (to another project) label Jun 26, 2020
@sh0rez sh0rez added this to the v0.11 milestone Jun 30, 2020
mplzik added a commit that referenced this issue Jul 6, 2020
This can be used to tear down a tanka environment. When doing `tk
delete`, tanka will generate all manifests for an environment and remove
them from kubernetes cluster.

This is a safer variant of the one-liner mentioned at #155

Signed-off-by: Milan Plzik <[email protected]>
mplzik added a commit that referenced this issue Jul 6, 2020
This can be used to tear down a tanka environment. When doing `tk
delete`, tanka will generate all manifests for an environment and remove
them from kubernetes cluster.

This is a safer variant of the one-liner mentioned at #155

Signed-off-by: Milan Plzik <[email protected]>
@sh0rez sh0rez closed this as completed in ed6e1e5 Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli Command Line Interface keepalive kind/feature Something new should be added
Projects
None yet
Development

No branches or pull requests

2 participants