Skip to content

Commit

Permalink
Merge pull request #1759 from wking/restore-CustomNoUpgrade-manifest-…
Browse files Browse the repository at this point in the history
…handling

NO-ISSUE: pkg/manifest: Restore CustomNoUpgrade handling
  • Loading branch information
openshift-merge-bot[bot] authored Jul 9, 2024
2 parents 51af916 + a2c1a93 commit b941412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func init() {
knownFeatureSets.Insert(string(featureSet))
}
}
knownFeatureSets.Insert(string(configv1.CustomNoUpgrade))
}

// resourceId uniquely identifies a Kubernetes resource.
Expand Down
4 changes: 2 additions & 2 deletions pkg/manifest/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func Test_include(t *testing.T) {
"include.release.openshift.io/self-managed-high-availability": "true",
"release.openshift.io/feature-set": "Other",
},
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: CustomNoUpgrade,Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
},
{
name: "incorrect techpreview value is not excluded if techpreview on using feature-set",
Expand All @@ -698,7 +698,7 @@ func Test_include(t *testing.T) {
"include.release.openshift.io/self-managed-high-availability": "true",
"release.openshift.io/feature-set": "Other",
},
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
expected: fmt.Errorf("unrecognized value \"Other\" in release.openshift.io/feature-set=Other; known values are: CustomNoUpgrade,Default,DevPreviewNoUpgrade,TechPreviewNoUpgrade"),
},
{
name: "default profile selection excludes without annotation",
Expand Down

0 comments on commit b941412

Please sign in to comment.