Skip to content

Commit 2b905a9

Browse files
authored
fix: OFO demo workaround for nginx change(bug) (#1240)
The OFO client-side demo is broken due to a breaking change (bug?) in the NGINX controller. This provides a workaround. See: kubernetes/ingress-nginx#11176 Signed-off-by: Todd Baert <[email protected]>
1 parent 2051dcc commit 2b905a9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/tutorials/open-feature-operator/advanced-topics.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,17 @@ kubectl wait --timeout=60s --for condition=Available=True deploy --all -n 'cert-
9393

9494
For our NGINX ingress to work with `kind`, we need to install some additional components:
9595

96+
Download our NGINX controller configuration customization:
97+
98+
```shell
99+
curl -sfL curl -sfL https://raw.githubusercontent.com/open-feature/openfeature.dev/main/static/samples/nginx-config.yaml > nginx-config.yaml
100+
```
101+
102+
Install the NGINX controller:
103+
96104
```shell
97105
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
106+
kubectl apply -f nginx-config.yaml
98107
kubectl wait --timeout=60s --for condition=Available=True deploy --all -n 'ingress-nginx'
99108
```
100109

static/samples/nginx-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# This is a patch which disables the strict validation of path type in Ingress resources
3+
# Otherwise the dots (.) in our gRPC service names will cause the Ingress to fail validation
4+
# See: https://github.com/kubernetes/ingress-nginx/issues/11176
5+
apiVersion: v1
6+
data:
7+
strict-validate-path-type: "false"
8+
kind: ConfigMap
9+
metadata:
10+
labels:
11+
app.kubernetes.io/component: controller
12+
app.kubernetes.io/instance: ingress-nginx
13+
app.kubernetes.io/name: ingress-nginx
14+
app.kubernetes.io/part-of: ingress-nginx
15+
app.kubernetes.io/version: 1.12.3
16+
name: ingress-nginx-controller
17+
namespace: ingress-nginx

0 commit comments

Comments
 (0)