You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During create (or any other command (replace, patch, etc.)) the objects are serialized using ObjectSerializer.serialize(spec, 'KubernetesObject').
Using KubernetesObject here means that the specs are not correctly serialized.
Describe the bug
A network policy resource is correctly deserialized when read from the cluster.
The ingress spec is correctly converted from
from
to_from
. See https://github.com/kubernetes-client/javascript/blob/main/src/gen/models/V1NetworkPolicyIngressRule.ts#L24But the serialization (e.g. when using with
client.replace
) does not correctly setfrom
field. see the snippet below.Client Version
e.g.
1.1.2
To Reproduce
See example
Expected behavior
Resource is correctly serialized
Example Code
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: