@@ -7,15 +7,36 @@ metadata:
77spec :
88 featureFlagSpec : |
99 {
10- "booleanFlags ": {
10+ "flags ": {
1111 "new-welcome-message": {
12- "state": "enabled ",
12+ "state": "ENABLED ",
1313 "variants": {
14- "enabled ": true,
15- "disabled ": false
14+ "on ": true,
15+ "off ": false
1616 },
17- "defaultVariant": "enabled",
18- "rules": []
17+ "defaultVariant": "on"
18+ },
19+ "hex-color": {
20+ "returnType": "string",
21+ "variants": {
22+ "red": "CC0000",
23+ "green": "00CC00",
24+ "blue": "0000CC",
25+ "yellow": "yellow"
26+ },
27+ "defaultVariant": "red",
28+ "state": "ENABLED"
29+ },
30+ "fib-algo": {
31+ "returnType": "string",
32+ "variants": {
33+ "recursive": "recursive",
34+ "memo": "memo",
35+ "loop": "loop",
36+ "binet": "binet"
37+ },
38+ "defaultVariant": "recursive",
39+ "state": "ENABLED"
1940 }
2041 }
2142 }
@@ -26,41 +47,43 @@ spec:
2647apiVersion : apps/v1
2748kind : Deployment
2849metadata :
29- name : openfeature-nest-example -deployment
50+ name : open-feature-demo -deployment
3051 labels :
31- app : openfeature-nest-example
52+ app : open-feature-demo
3253spec :
3354 replicas : 3
3455 selector :
3556 matchLabels :
36- app : openfeature-nest-example
57+ app : open-feature-demo
3758 template :
3859 metadata :
3960 labels :
40- app : openfeature-nest-example
61+ app : open-feature-demo
4162 annotations :
4263 openfeature.dev : " enabled"
4364 openfeature.dev/featureflagconfiguration : " end-to-end"
4465 spec :
4566 containers :
46- - name : openfeature-nest-example
47- image : ghcr.io/open-feature/open-feature-nest-example:latest
67+ - name : open-feature-demo
68+ image : ghcr.io/open-feature/open-feature-demo:latest
69+ args :
70+ - flagd
4871 ports :
49- - containerPort : 3000
72+ - containerPort : 30000
5073
5174---
5275# Service exposed using NodePort
5376
5477apiVersion : v1
5578kind : Service
5679metadata :
57- name : openfeature-nest-example -service
80+ name : open-feature-demo -service
5881spec :
5982 type : NodePort
6083 selector :
61- app : openfeature-nest-example
84+ app : open-feature-demo
6285 ports :
6386 # By default and for convenience, the `targetPort` is set to the same value as the `port` field.
6487 - port : 30000
65- targetPort : 3000
88+ targetPort : 30000
6689 nodePort : 30000
0 commit comments