Skip to content

Commit 4585a4e

Browse files
cleanup
Signed-off-by: James Milligan <[email protected]>
1 parent ee2ffbf commit 4585a4e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

docs/annotations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following annotations are used by the operator to control the injection and
55
### `openfeature.dev/enabled`
66
When a value of `"true"` is provided, the operator will inject a flagd sidecar into the annotated pods.
77
Example:
8-
```
8+
```yaml
99
metadata:
1010
annotations:
1111
openfeature.dev/enabled: "true"
@@ -16,7 +16,7 @@ This annotation specifies the names of the FeatureFlagConfigurations used to con
1616
The annotation value a comma separated list of values following one of 2 patterns: {NAME} or {NAMESPACE}/{NAME}.
1717
If no namespace is provided it is assumed that the CR is within the same namespace as the deployed pod.
1818
Example:
19-
```
19+
```yaml
2020
metadata:
2121
annotations:
2222
openfeature.dev/enabled: "true"
@@ -28,7 +28,7 @@ Example:
2828

2929
When a value of `"enabled"` is provided, the operator will inject a flagd sidecar into the annotated pods.
3030
Example:
31-
```
31+
```yaml
3232
metadata:
3333
annotations:
3434
openfeature.dev: "enabled"

docs/development_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Running the operator locally
44

55
The project `Makefile` defines a useful method for locally deploying the operator, allowing for the operator image to be defined:
6-
```
6+
```sh
77
IMG=ghcr.io/open-feature/open-feature-operator:main make deploy-operator
88
```
99

docs/getting_started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ spec:
5858
### Confirm that operator has injected the `flagd` sidecar
5959

6060
Once the `deployment.yaml` has been applied, our `Pod` should be created grouping 2 containers.
61-
```
61+
```sh
6262
kubectl get pods -n default
6363
```
6464
Should give a similar output to the following
65-
```
65+
```sh
6666
NAME READY STATUS RESTARTS AGE
6767
busybox-curl-7bd5767999-spf7v 0/2 ContainerCreating 0 2s
6868
```
6969
When the `Pod` is described, the injected sidecar has the following configuration:
70-
```
70+
```sh
7171
kubectl describe pod busybox-curl-7bd5767999-spf7v
7272
```
7373
```yaml
@@ -87,11 +87,11 @@ Now that we have confirmed that the `flagd` sidecar has been injected and the co
8787

8888
> This is not the usual suggested best practice for evaluating flags in applications, typically a language specific `flagd` provider would be used in conjunction with the OpenFeature SDK, documentation can be found [here](https://github.com/open-feature/flagd/blob/main/docs/usage/flagd_providers.md).
8989

90-
```
90+
```sh
9191
kubectl exec -it busybox-curl-7bd5767999-spf7v sh
9292
curl -X POST "localhost:8013/schema.v1.Service/ResolveString" -d '{"flagKey":"foo","context":{}}' -H "Content-Type: application/json"
9393
```
9494
output:
95-
```
95+
```sh
9696
{"value":"BAR","reason":"DEFAULT","variant":"bar"}
9797
```

docs/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ The OpenFeature Operator is a server that communicates with Kubernetes component
77
The installation docs for cert manager can be found [here](https://cert-manager.io/docs/installation/kubernetes/).
88
Alternatively, running the commands below will install cert manager into the `cert-manager` namespace.
99

10-
```
10+
```sh
1111
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.1/cert-manager.yaml
1212
kubectl wait --for=condition=Available=True deploy --all -n 'cert-manager'
1313
```
1414

1515
## Helm
1616

1717
Add the chart repository to helm:
18-
```
18+
```sh
1919
helm repo add openfeature https://open-feature.github.io/open-feature-operator/
2020
```
2121
Install the OFO helm charts:
22-
```
22+
```sh
2323
helm install ofo openfeature/ofo
2424
```
2525
### Uninstall
26-
```
26+
```sh
2727
helm uninstall ofo
2828
```
2929

3030
## kubectl
3131
Apply the release yaml directly via kubectl
3232
<!---x-release-please-start-version-->
33-
```
33+
```sh
3434
kubectl create namespace open-feature-operator-system
3535
kubectl apply -f https://github.com/open-feature/open-feature-operator/releases/download/v0.2.20/release.yaml
3636
```
3737
<!---x-release-please-end-->
3838
### Uninstall
3939
<!---x-release-please-start-version-->
40-
```
40+
```sh
4141
kubectl delete -f https://github.com/open-feature/open-feature-operator/releases/download/v0.2.20/release.yaml
4242
kubectl delete namespace open-feature-operator-system
4343
```

0 commit comments

Comments
 (0)