Skip to content

Delete namespace after tests when using helm#6919

Closed
alex-slynko wants to merge 2 commits intoistio:masterfrom
CFCR:master
Closed

Delete namespace after tests when using helm#6919
alex-slynko wants to merge 2 commits intoistio:masterfrom
CFCR:master

Conversation

@alex-slynko
Copy link
Copy Markdown
Contributor

Signed-off-by: Neil Hickey nhickey@pivotal.io

Signed-off-by: Neil Hickey <nhickey@pivotal.io>
@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alex-slynko
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: baodongli

Assign the PR to them by writing /assign @baodongli in a comment when ready.

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

@googlebot
Copy link
Copy Markdown
Collaborator

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@googlebot googlebot added the cla: no Set by the Google CLA bot to indicate the author of a PR has not signed the Google CLA. label Jul 9, 2018
@rshriram
Copy link
Copy Markdown
Member

rshriram commented Jul 9, 2018

/ok-to-test


if err := util.DeleteNamespace(k.Namespace, k.KubeConfig); err != nil {
log.Errorf("Failed to delete namespace %s", k.Namespace)
return err
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might not want to return err here. If the helm chart being deleted has the namespace manifest then the HelmDelete step would delete the ns and this DeleteNamespace would fail since the ns is already gone. In that case propagating the err from the Teardown method would be an issue.

@akshaymankar
Copy link
Copy Markdown

Fixes #6700

@rshriram
Copy link
Copy Markdown
Member

PR to release-1.0 branch

@alex-slynko
Copy link
Copy Markdown
Contributor Author

@rshriram do I have to PR to both master and release branch?

@googlebot
Copy link
Copy Markdown
Collaborator

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

If the helm chart being deleted has the namespace manifest then the HelmDelete would've already deleted the namespace
@alex-slynko
Copy link
Copy Markdown
Contributor Author

closed in favor of #7051 that is opened against release-1.0 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: no Set by the Google CLA bot to indicate the author of a PR has not signed the Google CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants