Hi,
when setting a propagation policy for the delete operation this is ignored
client.resource(item).withPropagationPolicy("Foreground").delete()
Generated request:
--> DELETE https://127.0.0.1:32774/apis/sources.knative.dev/v1alpha1/namespaces/site/githubsources/github-source
Content-Type: application/json; charset=utf-8
Content-Length: 67
{"apiVersion":"v1","kind":"DeleteOptions","orphanDependents":false}
--> END DELETE (67-byte body)
PS: propagation policy not being propagated. Nice 馃お!
Umm, Need to check. Does it work with you use item with DSL? For example, client.pods().inNamespace("foo").withName("some").withPropagationPolicy("Foreground").delete()
I can see propagation policy being appended in code, but need to check whether control comes here when using generic resource API:
https://github.com/fabric8io/kubernetes-client/blob/16bd97fb010fad230ab7851d8e2b9286a739f38a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java#L220-L227
Currently tracing this... so far I found this where it is lost
Yeah, it then calls resource-specific handler which is a generated class
I think you would need to modify this and compile client again
Have it working locally. I麓ll open a PR
馃槒 applying this to the entire project is no fun, especially knative. IMO it makes more sense to first apply https://github.com/fabric8io/kubernetes-client/pull/2134 to knative as well and then continue with this
Most helpful comment
Have it working locally. I麓ll open a PR