godaddy / kubernetes-client

Simplified Kubernetes API client for Node.js.
MIT License
960 stars 192 forks source link

Secrets data is being truncated to 499 characters #724

Open mslagle opened 3 years ago

mslagle commented 3 years ago

When I perform the following call:

k8sClient.api.v1.namespaces(namespace).secrets.get();

The data within the secrets are being truncated to exactly 499 characters if the data is larger than that. I have tried getting the secrets directly with k8sClient.api.v1.namespaces(namespace).secrets(secret.metadata.name).get(); but the data again is truncated. I have not found any options to ignore any type of truncation.

I have verified by performing the rest calls directly using postman that the full data is being returned. How do I disable this truncation or is this a bug?