crd-gates

command module
v0.0.0-...-dfe7bd2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

crd-gates

Add feature gates to CRDs

$ crd-gates crd.yaml

It outputs the processed CRD manifest to stdout.

It does the following transformation of schemas:

properties:
  foo:
    description: [[GATE:FeatureGateName]] THIS IS AN ALPHA FIELD. This is a foo field.

to

properties:
  # {{- if .FeatureGateName }}
  foo:
    description: THIS IS AN ALPHA FIELD. This is a foo field.
  # {{- end }}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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