dhall-haskell icon indicating copy to clipboard operation
dhall-haskell copied to clipboard

Add `full` duplicates option

Open muff1nman opened this issue 4 years ago • 1 comments

Sometimes even within the same kubernetes cluster you'd like to work with different api versions of a given resource. This is currently not easy considering that only a single "SimpleModelName" can be exposed in the top level package.

This adds two --duplicates options.

  • full which esckews the short names used previously in favor of the full model name from the openapi definition.
  • nested which is similar to full but also splits on '.' making nested records. The exception is the typeUnion which keeps identical behavior to full.

Other instances where this is necessary include CRDs using the same kind as native kubernetes type. I.e. Calico NetworkPolicy.

muff1nman avatar Jan 12 '21 18:01 muff1nman

Requires #2134

muff1nman avatar Jan 12 '21 18:01 muff1nman