Skip to content

Commit b941412

Browse files
Merge pull request #1759 from wking/restore-CustomNoUpgrade-manifest-handling
NO-ISSUE: pkg/manifest: Restore CustomNoUpgrade handling
2 parents 51af916 + a2c1a93 commit b941412

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/manifest/manifest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func init() {
4040
knownFeatureSets.Insert(string(featureSet))
4141
}
4242
}
43+
knownFeatureSets.Insert(string(configv1.CustomNoUpgrade))
4344
}
4445

4546
// resourceId uniquely identifies a Kubernetes resource.

pkg/manifest/manifest_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func Test_include(t *testing.T) {
688688
"include.release.openshift.io/self-managed-high-availability": "true",
689689
"release.openshift.io/feature-set": "Other",
690690
},
691-
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
691+
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: CustomNoUpgrade,Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
692692
},
693693
{
694694
name: "incorrect techpreview value is not excluded if techpreview on using feature-set",
@@ -698,7 +698,7 @@ func Test_include(t *testing.T) {
698698
"include.release.openshift.io/self-managed-high-availability": "true",
699699
"release.openshift.io/feature-set": "Other",
700700
},
701-
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
701+
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: CustomNoUpgrade,Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
702702
},
703703
{
704704
name: "default profile selection excludes without annotation",

0 commit comments

Comments
 (0)