Separate TechPreview SchemaSupport
Pre-release
Pre-release
deads2k
released this
08 Sep 17:55
·
397 commits
to master
since this release
This release adds the ability to set an env var OPENSHIFT_REQUIRED_FEATURESET=TechPreviewNoUpgrade
when calling the CRD manifest generator. When you pass that, only yaml files that have the annotation release.openshift.io/feature-set
equal to $OPENSHIFT_REQUIRED_FEATURESET will be considered.
On any given field, you can add // +openshift:enable:FeatureSets=TechPreviewNoUpgrade
and when the featureset is NOT TechPreviewNoUpgrade, the CRD schema will not include the field that is tagged with those comments. When the featureset IS TechPreviewNoUpgrade, the CRD schema will include the field.
Fields that don't have a openshift:enable:FeatureSets will be included in all schemas.