Interface KubernetesClientObjectMapperCustomizer


public interface KubernetesClientObjectMapperCustomizer
Allow the provision of beans that customize the default ObjectMapper used by the KubernetesClient to perform kubernetes-specific serialization and deserialization operations.

The resulting ObjectMapper is used to produce the default KubernetesSerialization bean, which is in turn used to produce the default KubernetesClient bean.

The following code snippet shows how to provide a KubernetesClientObjectMapperCustomizer:



 @Singleton
 public static class Customizer implements KubernetesClientObjectMapperCustomizer {
     @Override
     public void customize(ObjectMapper objectMapper) {
         objectMapper.setLocale(Locale.ROOT);
     }
 }

 
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Details

    • customize

      void customize(com.fasterxml.jackson.databind.ObjectMapper objectMapper)