Skip to content

Commit 7ffe803

Browse files
committed
OPRUN-3690: Watch for new upstream feature gate APIV1MetasHandler
refer: * [Metas Endpoint RFC](https://docs.google.com/document/d/1s6_9IFEKGQLNh3ueH7SF4Yrx4PW9NSiNFqFIJx0pU-8/edit?usp=sharing) * [PR that introduced metas endpoint in catalogd](operator-framework/operator-controller-1643) * [APIV1MetasHandler naming](operator-framework/operator-controller@45cdb37#diff-03c0636b035013a21712c5f4f04a30ae71ef533c9aa4a6d0724dc5575bf0dffdR9) * [Guide this PR followed for mapping upstream APIV1MetasHandler feature gate to downstream FeatureGateNewOLMCatalogdMetas} feature gate](https://docs.google.com/document/d/1krN-4vwaE47aLRW9QjwD374-0Sh80taa_7goqVNi_-s/edit?tab=t.0#heading=h.th7069vduyim)
1 parent 9e0ebe1 commit 7ffe803

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

internal/featuregates/mapper.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ import (
1010
)
1111

1212
// Add your new upstream feature gate here
13-
// const (
14-
// MyUpstreamFeature = "MyUpstreamFeature"
15-
// )
13+
const (
14+
// ref:
15+
// 1. https://github.com/operator-framework/operator-controller/pull/1643
16+
// 2. https://github.com/operator-framework/operator-controller/commit/5965d5c9ee56e9077dca39afa59047ece84ed97e#diff-bfcbe63805e38aeb1d57481bd753566c7ddf58702829e1c1ffd7698bd047de67R309
17+
APIV1MetasHandler = "APIV1MetasHandler"
18+
)
1619

1720
type MapperInterface interface {
1821
OperatorControllerUpstreamForDownstream(downstreamGate configv1.FeatureGateName) []string
@@ -34,6 +37,7 @@ func NewMapper() *Mapper {
3437
}
3538
catalogdGates := map[configv1.FeatureGateName][]string{
3639
// features.FeatureGateNewOLMMyDownstreamFeature: {MyUpstreamCatalogdFeature}
40+
features.FeatureGateNewOLMCatalogdMetas: {APIV1MetasHandler},
3741
}
3842

3943
for _, m := range []map[configv1.FeatureGateName][]string{operatorControllerGates, catalogdGates} {

vendor/github.com/openshift/api/features/features.go

Lines changed: 14 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)