From 8cb59eab5e4cea34270e2dd37549b91bcaa985b2 Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Thu, 14 Mar 2024 16:30:14 +0100 Subject: [PATCH] Adjust FeatureFlags --- docker-compose.minimal.yml | 4 ++++ src/flagd/demo.flagd.json | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/docker-compose.minimal.yml b/docker-compose.minimal.yml index d36e6b7988..15a7c32b18 100644 --- a/docker-compose.minimal.yml +++ b/docker-compose.minimal.yml @@ -36,6 +36,7 @@ services: - "${AD_SERVICE_PORT}" environment: - AD_SERVICE_PORT + - FLAGD_HOST - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - OTEL_RESOURCE_ATTRIBUTES @@ -64,6 +65,7 @@ services: - "${CART_SERVICE_PORT}" environment: - CART_SERVICE_PORT + - FLAGD_HOST - REDIS_ADDR - OTEL_EXPORTER_OTLP_ENDPOINT - OTEL_RESOURCE_ATTRIBUTES @@ -348,6 +350,7 @@ services: - "${PRODUCT_CATALOG_SERVICE_PORT}" environment: - PRODUCT_CATALOG_SERVICE_PORT + - FLAGD_HOST - OTEL_EXPORTER_OTLP_ENDPOINT - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - OTEL_RESOURCE_ATTRIBUTES @@ -403,6 +406,7 @@ services: - "${RECOMMENDATION_SERVICE_PORT}" environment: - RECOMMENDATION_SERVICE_PORT + - FLAGD_HOST - PRODUCT_CATALOG_SERVICE_ADDR - OTEL_PYTHON_LOG_CORRELATION=true - OTEL_EXPORTER_OTLP_ENDPOINT diff --git a/src/flagd/demo.flagd.json b/src/flagd/demo.flagd.json index fadf02425a..5234fcce55 100644 --- a/src/flagd/demo.flagd.json +++ b/src/flagd/demo.flagd.json @@ -51,6 +51,24 @@ "off": false }, "defaultVariant": "off" + }, + "paymentServiceFailure": { + "description": "Fail payment service charge requests", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "paymentServiceUnreachable": { + "description": "Payment service is unavailable", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" } } }