kubernetes-client / kubernetes-client/java

Watch.Response with type ADDED does not provide object's data

Open
#3,215 16 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
Dominant language
Java
Stars
4k
Forks
2.1k
Avg merge
2d 9h
Merged PRs (30d)
16

Description

**Describe the bug**

If the response received from calling GenericKubernetesApi.watch has `type` "ADDED", the KubernetesObject in `object` has only metadata. `raw` is empty (`null`). (The object's raw data *is* provided for `type` "MODIFIED")

**Client Version**
`v19`

**Java Version**
Java 17

**To Reproduce**
Call the method, add a Kubernetes object, look at the result.

**Expected behavior**
The (raw) data should be provided.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.