Skip to content

Commit 8cb59ea

Browse files
Adjust FeatureFlags
1 parent 8de7041 commit 8cb59ea

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docker-compose.minimal.yml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ services:
3636
- "${AD_SERVICE_PORT}"
3737
environment:
3838
- AD_SERVICE_PORT
39+
- FLAGD_HOST
3940
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
4041
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
4142
- OTEL_RESOURCE_ATTRIBUTES
@@ -64,6 +65,7 @@ services:
6465
- "${CART_SERVICE_PORT}"
6566
environment:
6667
- CART_SERVICE_PORT
68+
- FLAGD_HOST
6769
- REDIS_ADDR
6870
- OTEL_EXPORTER_OTLP_ENDPOINT
6971
- OTEL_RESOURCE_ATTRIBUTES
@@ -348,6 +350,7 @@ services:
348350
- "${PRODUCT_CATALOG_SERVICE_PORT}"
349351
environment:
350352
- PRODUCT_CATALOG_SERVICE_PORT
353+
- FLAGD_HOST
351354
- OTEL_EXPORTER_OTLP_ENDPOINT
352355
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
353356
- OTEL_RESOURCE_ATTRIBUTES
@@ -403,6 +406,7 @@ services:
403406
- "${RECOMMENDATION_SERVICE_PORT}"
404407
environment:
405408
- RECOMMENDATION_SERVICE_PORT
409+
- FLAGD_HOST
406410
- PRODUCT_CATALOG_SERVICE_ADDR
407411
- OTEL_PYTHON_LOG_CORRELATION=true
408412
- OTEL_EXPORTER_OTLP_ENDPOINT

src/flagd/demo.flagd.json

+18
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@
5151
"off": false
5252
},
5353
"defaultVariant": "off"
54+
},
55+
"paymentServiceFailure": {
56+
"description": "Fail payment service charge requests",
57+
"state": "ENABLED",
58+
"variants": {
59+
"on": true,
60+
"off": false
61+
},
62+
"defaultVariant": "off"
63+
},
64+
"paymentServiceUnreachable": {
65+
"description": "Payment service is unavailable",
66+
"state": "ENABLED",
67+
"variants": {
68+
"on": true,
69+
"off": false
70+
},
71+
"defaultVariant": "off"
5472
}
5573
}
5674
}

0 commit comments

Comments
 (0)