Default transformer for the Kubernetes orchestrator.

This extends the Polaris DefaultTransformer and allows augmenting its methods for Kubernetes.

Type Parameters

  • T

Hierarchy

Constructors

Methods

  • Transforms the specified orchestrator-specific plain object into a corresponding Polaris object.

    Parameters

    • polarisType: Constructor<T>

      The type of Polaris object that should be created.

    • orchPlainObj: InterfaceOf<T>

      The orchestrator-specific plain object to be transformed. This is guaranteed to be neither null nor undefined.

    • transformationService: PolarisTransformationService

      The PolarisTransformationService that issued this call. It can be used to delegate the transformation of nested objects.

    Returns T

    A new Polaris object that results from transforming orchPlainObj.

    Note

    If this transformer should be inheritable, it is recommended to not instantiate a hardcoded Polaris type in this method, but to use new polarisType(...) instead.

Generated using TypeDoc