Skip to content

Commit abda48b

Browse files
authored
Merge pull request #34 from toddbaert/new-demo
Use full demo
2 parents dc9554b + db87314 commit abda48b

File tree

3 files changed

+41
-18
lines changed

3 files changed

+41
-18
lines changed

config/samples/end-to-end.yaml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,36 @@ metadata:
77
spec:
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:
2647
apiVersion: apps/v1
2748
kind: Deployment
2849
metadata:
29-
name: openfeature-nest-example-deployment
50+
name: open-feature-demo-deployment
3051
labels:
31-
app: openfeature-nest-example
52+
app: open-feature-demo
3253
spec:
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

5477
apiVersion: v1
5578
kind: Service
5679
metadata:
57-
name: openfeature-nest-example-service
80+
name: open-feature-demo-service
5881
spec:
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

pkg/utils/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ var schema string
77

88
func GetSchema() string {
99
return schema
10-
}
10+
}

schemas

0 commit comments

Comments
 (0)