KubeOps Transpiler
The KubeOps.Transpiler package provides a set of utilities for transpiling .NET types to Kubernetes objects.
Installation
The package is available on NuGet:
dotnet add package KubeOps.Transpiler
Usage
The transpiler is used to convert .NET types to Kubernetes objects.
As an example, you can transpile valid .NET types (i.e. classes that
have a KubernetesEntityAttribute
attached) to
V1CustomResourceDefinition
objects:
// Create a MLC.
var mlc = new MetadataLoadContext(/* */);
mlc.Transpile(typeof(MyCustomResource));