Skip to content

Commit e6b2315

Browse files
committed
fixup! Update CRD generator to support experimental CRDs
Signed-off-by: Todd Short <[email protected]>
1 parent 778d86c commit e6b2315

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hack/tools/crd-generator/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import (
3333
)
3434

3535
const (
36-
// ChannelAnnotation is the annotation key used in the Operator-Controller API CRDs to specify
36+
// FeatureSetAnnotation is the annotation key used in the Operator-Controller API CRDs to specify
3737
// the installed Operator-Controller API channel.
38-
ChannelAnnotation = "olm.operatorframework.io/channel"
39-
VersionAnnotation = "controller-gen.kubebuilder.io/version"
40-
StandardChannel = "standard"
41-
ExperimentalChannel = "experimental"
38+
FeatureSetAnnotation = "olm.operatorframework.io/feature-set"
39+
VersionAnnotation = "controller-gen.kubebuilder.io/version"
40+
StandardChannel = "standard"
41+
ExperimentalChannel = "experimental"
4242
)
4343

4444
var standardKinds = map[string]bool{
@@ -119,7 +119,7 @@ func runGenerator(args ...string) {
119119
if crdRaw.ObjectMeta.Annotations == nil {
120120
crdRaw.ObjectMeta.Annotations = map[string]string{}
121121
}
122-
crdRaw.ObjectMeta.Annotations[ChannelAnnotation] = channel
122+
crdRaw.ObjectMeta.Annotations[FeatureSetAnnotation] = channel
123123
if ctVer != "" {
124124
crdRaw.ObjectMeta.Annotations[VersionAnnotation] = ctVer
125125
}

0 commit comments

Comments
 (0)