diff --git a/config/main.go b/config/main.go index 6d34d6b..5da8cb8 100644 --- a/config/main.go +++ b/config/main.go @@ -180,7 +180,7 @@ func initialize() { options.SetDefault(Keys.CwLogGroup, "platform-dev") options.SetDefault(Keys.CwLogStream, hostname) options.SetDefault(Keys.CwRegion, "us-east-1") - options.SetDefault(Keys.Features, "ansible,smart_management,rhods,rhoam,rhosak,openshift,acs") + options.SetDefault(Keys.Features, os.Getenv("BUNDLES_SKUS_ALLOW_LIST")) options.SetDefault(Keys.SubAPIBasePath, "/svcrest/subscription/v5/") options.SetDefault(Keys.CompAPIBasePath, "/v1/screening") options.SetDefault(Keys.RunBundleSync, false) diff --git a/deployment/clowdapp.yml b/deployment/clowdapp.yml index b8d8006..83d83f6 100644 --- a/deployment/clowdapp.yml +++ b/deployment/clowdapp.yml @@ -111,6 +111,8 @@ objects: value: ${SUBS_CACHE_MAX_SIZE} - name: ENT_SUBS_CACHE_ITEM_PRUNE value: ${SUBS_CACHE_ITEM_PRUNE} + - name: BUNDLES_SKUS_ALLOW_LIST + value; ${BUNDLES_SKU_ALLOW_LIST} - name: GLITCHTIP_DSN valueFrom: secretKeyRef: @@ -237,3 +239,6 @@ parameters: - description: ClowdEnv Name name: ENV_NAME required: true +- description: Application allows list for new bundles with skus to update the feature in the IT features API + name: BUNDLES_SKUS_ALLOW_LIST + value: ansible,smart_management_rods,rhoam,rhosak,openshift,rhel \ No newline at end of file diff --git a/deployment/deploy.yml b/deployment/deploy.yml index a5efa7c..916541b 100644 --- a/deployment/deploy.yml +++ b/deployment/deploy.yml @@ -110,6 +110,8 @@ objects: value: ${SUBS_CACHE_MAX_SIZE} - name: ENT_SUBS_CACHE_ITEM_PRUNE value: ${SUBS_CACHE_ITEM_PRUNE} + - name: BUNDLES_SKUS_ALLOW_LIST + value: ${BUNDLES_SKUS_ALLOW_LIST} - name: ENT_CW_LOG_GROUP valueFrom: secretKeyRef: @@ -253,6 +255,9 @@ parameters: name: RUN_BUNDLE_SYNC required: false value: 'false' +- description: Application allow list for new bundles with skus to update the feature in the IT features API + name: BUNDLES_SKUS_ALLOW_LIST + value: ansible,smart_management_rods,rhoam,rhosak,openshift,rhel - description: Flag to determine whether or not to entitle all by default and mock calls to IT name: ENTITLE_ALL required: false