Skip to content

Commit 7d09b29

Browse files
committed
updated end-to-end.yaml and README.md to use v1beta1 of featureflagconfiguration CRD
Signed-off-by: Skye Gill <[email protected]>
1 parent 18684fa commit 7d09b29

File tree

2 files changed

+43
-57
lines changed

2 files changed

+43
-57
lines changed

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,25 +107,20 @@ When wishing to leverage feature flagging within the local pod, the following st
107107
_See [here](config/samples/crds/custom_provider.yaml) for additional custom resource parameters_
108108

109109
```
110-
apiVersion: core.openfeature.dev/v1alpha1
110+
apiVersion: core.openfeature.dev/v1beta1
111111
kind: FeatureFlagConfiguration
112112
metadata:
113113
name: featureflagconfiguration-sample
114114
spec:
115-
featureFlagSpec: |
116-
{
117-
"flags": {
118-
"foo": {
119-
"state": "ENABLED",
120-
"variants": {
121-
"bar": "BAR",
122-
"baz": "BAZ"
123-
},
124-
"defaultVariant": "bar",
125-
"targeting": {}
126-
}
127-
}
128-
}
115+
featureFlagSpec:
116+
flags:
117+
foo:
118+
state: "ENABLED"
119+
variants:
120+
"bar": "BAR"
121+
"baz": "BAZ"
122+
defaultVariant: "bar",
123+
targeting: {}
129124
```
130125

131126
1. Reference the CR within the pod spec annotations

config/samples/end-to-end.yaml

Lines changed: 33 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,39 @@ metadata:
1010
name: end-to-end
1111
namespace: open-feature-demo
1212
spec:
13-
featureFlagSpec: |
14-
{
15-
"flags": {
16-
"new-welcome-message": {
17-
"state": "ENABLED",
18-
"variants": {
19-
"on": true,
20-
"off": false
21-
},
22-
"defaultVariant": "on"
23-
},
24-
"hex-color": {
25-
"variants": {
26-
"red": "CC0000",
27-
"green": "00CC00",
28-
"blue": "0000CC",
29-
"yellow": "yellow"
30-
},
31-
"defaultVariant": "red",
32-
"state": "ENABLED"
33-
},
34-
"fib-algo": {
35-
"variants": {
36-
"recursive": "recursive",
37-
"memo": "memo",
38-
"loop": "loop",
39-
"binet": "binet"
40-
},
41-
"defaultVariant": "recursive",
42-
"state": "ENABLED",
43-
"targeting": {
44-
"if": [
45-
{
46-
"in": ["@faas.com", {
47-
"var": ["email"]
48-
}]
49-
}, "binet", null
50-
]
51-
}
13+
featureFlagSpec:
14+
flags:
15+
new-welcome-message:
16+
state: "ENABLED"
17+
variants:
18+
"on": true
19+
"off": false
20+
defaultVariant: "on"
21+
hex-color:
22+
state: "ENABLED"
23+
variants:
24+
"red": "CC0000"
25+
"green": "00CC00"
26+
"blue": "0000CC"
27+
"yellow": "yellow"
28+
defaultVariant: "red"
29+
fib-algo:
30+
state: "ENABLED"
31+
variants:
32+
"recursive": "recursive"
33+
"memo": "memo"
34+
"loop": "loop"
35+
"binet": "binet"
36+
defaultVariant: "recursive"
37+
"targeting": {
38+
"if": [
39+
{
40+
"in": [ "@faas.com", {
41+
"var": [ "email" ]
42+
} ]
43+
}, "binet", null
44+
]
5245
}
53-
}
54-
}
5546
---
5647
# Deployment of a demo-app using our custom resource
5748
apiVersion: apps/v1
@@ -77,7 +68,7 @@ spec:
7768
serviceAccountName: open-feature-demo-sa
7869
containers:
7970
- name: open-feature-demo
80-
image: ghcr.io/open-feature/playground-app:v0.1.1
71+
image: ghcr.io/open-feature/playground-app:v0.4.0
8172
args:
8273
- flagd
8374
ports:

0 commit comments

Comments
 (0)