kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

Secrets data is being truncated to 499 characters

Open mslagle opened this issue 4 years ago • 0 comments

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?

mslagle avatar Jul 08 '21 13:07 mslagle