Interface TransformFunc


public interface TransformFunc
TransformFunc allows for transforming an object before it will be processed and put into the cache and before the corresponding handlers will be called on it. TransformFunc (similarly to ResourceEventHandler functions) should be able to correctly handle the tombstone of type DeletedFinalStateUnknown.

The most common usage pattern is to clean up some parts of the object to reduce component memory usage if a given component doesn't care about them.

The code has been copied from the official client and modified: TransformFunc

  • Method Details

    • transform

      @NonNull @NonNull KubernetesObject transform(@NonNull @NonNull KubernetesObject object)
      Transforms given object.
      Parameters:
      object - the original object to be transformed
      Returns:
      the transformed object