Skip to content

phisco/crd-gates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }}

About

Add feature gates to CRDs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%