kubectl delete all -l foo=bar - does not delete ingress
kubectl delete all -l foo=bar
does not delete ingress with label foo=bar.
~~I think this is because of ingress is a cluster scoped resource. https://github.com/kubernetes/community/blob/master/contributors/devel/kubectl-conventions.md#rules-for-extending-special-resource-alias---all~~
Ingress is namespaced. --all probably uses a static list somewhere.
Yes but when i use kubectl delete all -l foo=bar -n baz it doesn't work either.
My comment was in response to @mengqiy.
@bowei is this your team?
yes -- cc: @nicksardo
@Vrtak-CZ : do you have a minimal repro we can try? (e.g. ingress YAML)
sure
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: awesome-ingress
namespace: foo
labels:
app: bar
spec:
rules:
- host: example.com
http:
paths:
- path: /
backend:
serviceName: awesome-service
servicePort: 3000
and then I try kubectl delete all -l app=bar -n foo
If kubectl get all doesn't show ingresses, then I'm glad kubectl delete all doesn't delete ingresses. https://github.com/kubernetes/kubernetes/issues/42885
According to this https://github.com/kubernetes/kubernetes/pull/42954#issuecomment-286012772, changes are afoot.
@pwittrock -- doesn't seem to be a networking related issue? Who should own this then?
@mengqiy Would you follow up on this and figure out if it was fixed in 1.7 with dynamically populating "all"?
I didn't find any code dynamically populating "all".
We still hard code all.
So we still don't support ingress and daemonset in all.
dynamically populating "all"?
@pwittrock Can you give me an pointer to this?
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.
Prevent issues from auto-closing with an /lifecycle frozen comment.
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
/remove-lifecycle stale
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
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 /remove-lifecycle stale
is there any progress?
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
~~Ingress is a cluster scoped resource. Per https://github.com/kubernetes/community/blob/9151896ac90a1a3bacb4f33768e7bde96abbde22/contributors/devel/kubectl-conventions.md#rules-for-extending-special-resource-alias---all, ingress should not be included.~~
EDIT: Ingress is namespaced resource.
/reopen