Skip to content

Commit

Permalink
RHCLOUD-28460 Move all feature flags to Unleash (RedHatInsights#2522)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Mar 15, 2024
1 parent 0ecbb62 commit 657f824
Show file tree
Hide file tree
Showing 77 changed files with 1,265 additions and 1,240 deletions.
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-aggregator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ objects:
- notifications-backend
database:
sharedDbAppName: notifications-backend
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.ingress
partitions: 3
Expand Down Expand Up @@ -47,6 +48,8 @@ objects:
env:
- name: ENV_NAME
value: ${ENV_NAME}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
value: ${NOTIFICATIONS_LOG_LEVEL}
- name: QUARKUS_LOG_CLOUDWATCH_ENABLED
Expand All @@ -59,6 +62,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: PROMETHEUS_PUSHGATEWAY_URL
value: ${PROMETHEUS_PUSHGATEWAY}
- name: NOTIFICATIONS_BUNDLE_LEVEL_DIGEST_ENABLED
Expand Down Expand Up @@ -94,6 +99,8 @@ parameters:
- name: NOTIFICATIONS_LOG_LEVEL
description: Log level for com.redhat.cloud.notifications
value: INFO
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: SENTRY_DSN
description: The DSN to push data to Sentry — i.e. https://public_key@host/project_id?environment=
- name: SENTRY_ENABLED
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ objects:
database:
name: notifications-backend
version: 15
featureFlags: true
testing:
iqePlugin: notifications
jobs:
Expand Down Expand Up @@ -118,8 +119,12 @@ objects:
name: notifications-ephemeral-data
key: ephemeral_data.json
optional: true
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_REST_CLIENT_RBAC_AUTHENTICATION_READ_TIMEOUT
value: ${RBAC_AUTHENTICATION_READ_TIMEOUT}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: INTERNAL_RBAC_ENABLED
value: ${INTERNAL_RBAC_ENABLED}
- name: INTERNAL_ADMIN_ROLE
Expand Down Expand Up @@ -226,6 +231,8 @@ parameters:
- name: NOTIFICATIONS_EMAILS_ONLY_MODE_ENABLED
description: When this is true, all integration types except emails are disabled
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_LOG_CLOUDWATCH_API_CALL_TIMEOUT
description: Amount of time to allow the CloudWatch client to complete the execution of an API call expressed with the ISO-8601 duration format PnDTnHnMn.nS.
value: PT30S
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-drawer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ objects:
dependencies:
- notifications-recipients-resolver
envName: ${ENV_NAME}
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -73,6 +74,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_CONCURRENT_CONSUMERS}
- name: NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -99,6 +102,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -152,6 +157,8 @@ parameters:
- name: NOTIFICATIONS_LOG_LEVEL
description: Log level of Notifications
value: INFO
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-email.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ objects:
dependencies:
- notifications-recipients-resolver
envName: ${ENV_NAME}
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -97,6 +98,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_MAX_RECIPIENTS_PER_EMAIL}
- name: NOTIFICATIONS_EMAILS_INTERNAL_ONLY_ENABLED
value: ${NOTIFICATIONS_EMAILS_INTERNAL_ONLY_ENABLED}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -123,6 +126,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: BACKOFFICE_CLIENT_ENV
description: Back-office client environment
Expand Down Expand Up @@ -205,6 +210,8 @@ parameters:
value: "50"
- name: NOTIFICATIONS_EMAILS_INTERNAL_ONLY_ENABLED
value: "false"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-google-chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ objects:
name: notifications-connector-google-chat
spec:
envName: ${ENV_NAME}
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -79,6 +80,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
value: ${NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -105,6 +108,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -170,6 +175,8 @@ parameters:
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
description: Add flags on connector response to let engine disable endpoint regarding HTTP error type
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-microsoft-teams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ objects:
name: notifications-connector-microsoft-teams
spec:
envName: ${ENV_NAME}
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -79,6 +80,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
value: ${NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -105,6 +108,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -170,6 +175,8 @@ parameters:
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
description: Add flags on connector response to let engine disable endpoint regarding HTTP error type
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-servicenow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ objects:
- drift
- notifications-backend
- policies-engine
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -92,6 +93,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
value: ${NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -118,6 +121,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -183,6 +188,8 @@ parameters:
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
description: Add flags on connector response to let engine disable endpoint regarding HTTP error type
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ objects:
name: notifications-connector-slack
spec:
envName: ${ENV_NAME}
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -73,6 +74,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_CONCURRENT_CONSUMERS}
- name: NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -99,6 +102,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -155,6 +160,8 @@ parameters:
- name: NOTIFICATIONS_LOG_LEVEL
description: Log level of Notifications
value: INFO
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-splunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ objects:
- drift
- notifications-backend
- policies-engine
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -92,6 +93,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
value: ${NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -118,6 +121,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -183,6 +188,8 @@ parameters:
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
description: Add flags on connector response to let engine disable endpoint regarding HTTP error type
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-connector-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ objects:
- sources-api
optionalDependencies:
- notifications-backend
featureFlags: true
kafkaTopics:
- topicName: platform.notifications.tocamel
partitions: 3
Expand Down Expand Up @@ -94,6 +95,8 @@ objects:
value: ${NOTIFICATIONS_CONNECTOR_SEDA_QUEUE_SIZE}
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
value: ${NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_HTTP_PORT
value: ${QUARKUS_HTTP_PORT}
- name: QUARKUS_LOG_CATEGORY__COM_REDHAT_CLOUD_NOTIFICATIONS__LEVEL
Expand All @@ -120,6 +123,8 @@ objects:
value: ${SENTRY_DSN}${ENV_NAME}
- name: QUARKUS_LOG_SENTRY_ENVIRONMENT
value: ${ENV_NAME}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
parameters:
- name: CPU_LIMIT
description: CPU limit
Expand Down Expand Up @@ -191,6 +196,8 @@ parameters:
- name: NOTIFICATIONS_CONNECTOR_HTTP_DISABLE_FAULTY_ENDPOINTS
description: Add flags on connector response to let engine disable endpoint regarding HTTP error type
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_HTTP_PORT
description: Quarkus HTTP server port, defaulting to the default Clowder private port
value: "9000"
Expand Down
7 changes: 7 additions & 0 deletions .rhcicd/clowdapp-recipients-resolver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ objects:
envName: ${ENV_NAME}
dependencies:
- rbac
featureFlags: true
deployments:
- name: service
minReplicas: ${{MIN_REPLICAS}}
Expand Down Expand Up @@ -73,6 +74,8 @@ objects:
value: ${NOTIFICATIONS_RECIPIENTS_RESOLVER_FETCH_USERS_MBOP_ENABLED}
- name: NOTIFICATIONS_RECIPIENTS_RESOLVER_FETCH_USERS_RBAC_ENABLED
value: ${NOTIFICATIONS_RECIPIENTS_RESOLVER_FETCH_USERS_RBAC_ENABLED}
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: QUARKUS_CACHE_CAFFEINE_RBAC_RECIPIENT_USERS_PROVIDER_GET_USERS_EXPIRE_AFTER_WRITE
value: ${RBAC_USERS_RETENTION_DELAY}
- name: QUARKUS_CACHE_CAFFEINE_RBAC_RECIPIENT_USERS_PROVIDER_GET_GROUP_USERS_EXPIRE_AFTER_WRITE
Expand Down Expand Up @@ -123,6 +126,8 @@ objects:
value: ${IT_S2S_READ_TIMEOUT}
- name: QUARKUS_REST_CLIENT_RBAC_S2S_READ_TIMEOUT
value: ${RBAC_S2S_READ_TIMEOUT}
- name: QUARKUS_UNLEASH_ACTIVE
value: ${NOTIFICATIONS_UNLEASH_ENABLED}
- name: RBAC_SERVICE_TO_SERVICE_APPLICATION
value: ${RBAC_SERVICE_TO_SERVICE_APP}
- name: RBAC_SERVICE_TO_SERVICE_SECRET_MAP
Expand Down Expand Up @@ -176,6 +181,8 @@ parameters:
- name: NOTIFICATIONS_RECIPIENTS_RESOLVER_FETCH_USERS_RBAC_ENABLED
description: Users from an organization will be retrieved from RBAC if true
value: "true"
- name: NOTIFICATIONS_UNLEASH_ENABLED
value: "false"
- name: QUARKUS_LOG_CATEGORY__ORG_JBOSS_RESTEASY_REACTIVE_CLIENT_LOGGING__LEVEL
description: When QUARKUS_REST_CLIENT_LOGGING_SCOPE is set to 'request-response', this logger level needs to be set to DEBUG
value: INFO
Expand Down
5 changes: 5 additions & 0 deletions aggregator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<artifactId>quarkus-logging-cloudwatch</artifactId>
<version>${quarkus-logging-cloudwatch.version}</version>
</dependency>
<dependency>
<groupId>io.quarkiverse.unleash</groupId>
<artifactId>quarkus-unleash</artifactId>
<version>${quarkus-unleash.version}</version>
</dependency>

<!-- Insights -->
<dependency>
Expand Down
Loading

0 comments on commit 657f824

Please sign in to comment.