Skip to content

[release-1.10] Remove resources when terminating the environment#531

Merged
knative-prow[bot] merged 3 commits intoknative-extensions:release-1.10from
knative-prow-robot:cherry-pick-519-to-release-1.10
May 23, 2023
Merged

[release-1.10] Remove resources when terminating the environment#531
knative-prow[bot] merged 3 commits intoknative-extensions:release-1.10from
knative-prow-robot:cherry-pick-519-to-release-1.10

Conversation

@knative-prow-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #519

pierDipi added 3 commits May 23, 2023 15:02
When calling env.Finish() the resources that have been created
by such environment should be removed.

So far, we were relying on the namespace deletion to clean
up resources, however, if a precreated namespace is used
for multiple tests and multiple environments, the cluster
is full of resources that are not needed anymore since
those tests were successfully run.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 23, 2023
Copy link
Copy Markdown
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2023
@knative-prow
Copy link
Copy Markdown

knative-prow bot commented May 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knative-prow-robot, pierDipi

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

The pull request process is described here

Details 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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2023
@knative-prow knative-prow bot merged commit f5d5aaa into knative-extensions:release-1.10 May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants