minimal

command
v1.65.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README


type: Example title: minimal — generate a CRD from a chart's values.schema.json description: Runnable example that feeds a JSON Schema to crdgen.Generate and prints the resulting CustomResourceDefinition YAML, the same transformation core-provider performs per CompositionDefinition. resource: github.com/krateo-platformops/plumbing/crdgen tags: [example, crdgen] timestamp: 2026-08-07T00:00:00Z

minimal

Feeds a chart-style values.schema.json (inline JSON Schema) to crdgen.Generate and prints the resulting CustomResourceDefinition YAML — the exact transformation the core-provider engine performs for every CompositionDefinition. It also shows crdgen.NormalizeVersionName (chart version 1.0.0 → CRD version v1-0-0) and the Managed option (conditioned status subresource).

Preconditions

  • Go (version per go.mod). No cluster, no network beyond the module cache.

Run

go run ./examples/minimal

Expected output: a structurally valid CRD named dummyapps.examples.krateo.io with a single served version v1-0-0.

Documentation

Overview

Command minimal is the runnable example for the plumbing library: it feeds a chart-style values.schema.json (JSON Schema) to crdgen.Generate and prints the resulting CustomResourceDefinition YAML — the exact transformation core-provider performs for every CompositionDefinition. It needs no cluster and no network.

Run from the repo root:

go run ./examples/minimal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL