Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 585 Bytes

File metadata and controls

26 lines (18 loc) · 585 Bytes

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));