Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

HNC: Delete validation for Namespace and HNS is broken on k8s versions <1.15 #680

Closed
yiqigao217 opened this issue Apr 28, 2020 · 8 comments
Milestone

Comments

@yiqigao217
Copy link
Contributor

See exact same issue in controller-runtime repo - #845.

The HNC webhook validation on kubectl delete ns <namespace> and kubectl delete hns <subnamespace> -n <ownerNamespace> is broken on k8s versions <1.15.

You should get Forbidden:

Error from server (Forbidden): admission webhook "vnamespace.k8s.io" denied the request: The namespace zchild is an owned namespace. Please delete the HNS instance from the owner namespace zparent instead.

instead of BadRequest:

Error from server (BadRequest): admission webhook "vnamespace.k8s.io" denied the request: there is no content to decode
@yiqigao217
Copy link
Contributor Author

/help
/cc @adrianludwin

@k8s-ci-robot
Copy link
Contributor

@yiqigao217:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help
/cc @adrianludwin

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 k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 28, 2020
@adrianludwin adrianludwin added this to the hnc-backlog milestone Apr 28, 2020
@adrianludwin
Copy link
Contributor

/good-first-issue

I don't think this is very high priority for us to fix (1.14 is on its way out the door anyway, at least on GKE) but if someone wants to help out or we get a strong signal that this fix is needed in 1.14, we can revisit this.

@k8s-ci-robot
Copy link
Contributor

@adrianludwin:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

I don't think this is very high priority for us to fix (1.14 is on its way out the door anyway, at least on GKE) but if someone wants to help out or we get a strong signal that this fix is needed in 1.14, we can revisit this.

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 k8s-ci-robot added the good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. label Apr 28, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 27, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 26, 2020
@adrianludwin
Copy link
Contributor

1.14 is now well out of support so I don't think we need to worry about this.

/remove-lifecycle rotten
/close

@k8s-ci-robot
Copy link
Contributor

@adrianludwin: Closing this issue.

In response to this:

1.14 is now well out of support so I don't think we need to worry about this.

/remove-lifecycle rotten
/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 k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Sep 23, 2020
@adrianludwin adrianludwin removed good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants