python icon indicating copy to clipboard operation
python copied to clipboard

Delete kubernetes resources from yaml files , solves #940

Open DiptoChakrabarty opened this issue 4 years ago • 34 comments
trafficstars

This is a method to delete kubernetes resources using the yaml files . It is similar to the method create_from_yaml but for deleting kubernetes resources . It can be used to any type pf resource deployment , pod , service etc. Fixes #940

create_from_yaml creates kubernetes objects like deployments,serivces,ingress etc from the given yml files , the delete_from_yaml method can be used to remove/delete those objects from the same yml files in the given cluster for any namespace

DiptoChakrabarty avatar Mar 16 '21 03:03 DiptoChakrabarty

hey all the tests are passing for my branch in my repo image However in the master branch the test_portforward_raw.py test seems to be failing only causing the travis build to fail , I havent done any changes to that file image What can I do since I havent edited that file

DiptoChakrabarty avatar Mar 19 '21 07:03 DiptoChakrabarty

test_portforward_raw is flaky, we have an issue to track fixing it.

closing to trigger CI /close

yliaog avatar Mar 19 '21 16:03 yliaog

@yliaog: Closed this PR.

In response to this:

test_portforward_raw is flaky, we have an issue to track fixing it.

closing to trigger CI /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Mar 19 '21 16:03 k8s-ci-robot

/reopen

yliaog avatar Mar 19 '21 16:03 yliaog

@yliaog: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Mar 19 '21 16:03 k8s-ci-robot

/assign @yliaog

roycaihw avatar Mar 29 '21 16:03 roycaihw

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: DiptoChakrabarty To complete the pull request process, please ask for approval from yliaog after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Apr 04 '21 13:04 k8s-ci-robot

hey since this is solving the issue of #940 deleting resources using yaml maintainers can this be merged pleased

DiptoChakrabarty avatar May 22 '21 05:05 DiptoChakrabarty

it is mostly duplicates from create_from_yaml, better to refactor it into a common file, then have create_from_yaml, and delete_from_yaml share the common util.

yliaog avatar May 22 '21 17:05 yliaog

it is mostly duplicates from create_from_yaml, better to refactor it into a common file, then have create_from_yaml, and delete_from_yaml share the common util.

Can this not be a new issue as this PR is solving the issue of deleting using yamls feature and a common file would be a new enhancement

DiptoChakrabarty avatar May 23 '21 08:05 DiptoChakrabarty

@DiptoChakrabarty -- I agree with @yliaog. It's better to address the duplication of logic in this PR itself. I wouldn't say that deduplication of logic is a new enhancement.

palnabarun avatar May 27 '21 14:05 palnabarun

@DiptoChakrabarty -- I agree with @yliaog. It's better to address the duplication of logic in this PR itself. I wouldn't say that deduplication of logic is a new enhancement.

Okay I am working on it

DiptoChakrabarty avatar Jun 08 '21 14:06 DiptoChakrabarty

I made a new file operate_from_yaml which has both the create and delete features as requested. Please tell me if I have to add anything more in it.

DiptoChakrabarty avatar Jun 10 '21 04:06 DiptoChakrabarty

hey I have rebased it

DiptoChakrabarty avatar Jun 21 '21 11:06 DiptoChakrabarty

Hi, any plans to merge this and release it?

mohammedi-haroune avatar Jun 28 '21 14:06 mohammedi-haroune

Hey @reviewers can you please review this and tell what I have to do next or any suggestions

DiptoChakrabarty avatar Jul 03 '21 18:07 DiptoChakrabarty

Hey I have rebased it again , @reviewers please review it I have implemented all changes that had been mentioned .

DiptoChakrabarty avatar Jul 21 '21 18:07 DiptoChakrabarty

@reviewers can this be reviewed before the next merge please or else create_from_yaml will constantly get updated and the changes proposed by this PR will become delayed and outdated pushing it further back since it depends on it.

DiptoChakrabarty avatar Jul 29 '21 21:07 DiptoChakrabarty

@yliaog can we do another round of review please.I would like to move this PR forward.Thank You.

DiptoChakrabarty avatar Aug 11 '21 13:08 DiptoChakrabarty

image

hey I think the tests are passing with the recent commit.

DiptoChakrabarty avatar Aug 15 '21 15:08 DiptoChakrabarty

Hey will it be helpful if I squash my commits @yliaog

DiptoChakrabarty avatar Aug 24 '21 08:08 DiptoChakrabarty

yes, it will be helpful to squash the commits.

I'm very busy lately, @palnabarun do you have time to review the PR?

yliaog avatar Aug 25 '21 15:08 yliaog

/assign @palnabarun

yliaog avatar Aug 25 '21 15:08 yliaog

yes, it will be helpful to squash the commits.

I'm very busy lately, @palnabarun do you have time to review the PR?

Yes Squashed it

DiptoChakrabarty avatar Aug 25 '21 17:08 DiptoChakrabarty

@palnabarun can you review it once please

DiptoChakrabarty avatar Sep 03 '21 09:09 DiptoChakrabarty

I have re based the recent changes and the tests are passing in my branch , can this PR be reviewed please. Thank You.

DiptoChakrabarty avatar Sep 23 '21 03:09 DiptoChakrabarty

hey can you once approve the tests for this PR please , Thank you

DiptoChakrabarty avatar Oct 13 '21 18:10 DiptoChakrabarty

/release-note-none

DiptoChakrabarty avatar Oct 30 '21 18:10 DiptoChakrabarty

/kind feature

DiptoChakrabarty avatar Oct 30 '21 18:10 DiptoChakrabarty

@DiptoChakrabarty: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Feb 02 '22 05:02 k8s-ci-robot