I was in the process of setting up a ipWhiteList middleware and followed the documentation here: Overview - Traefik
The documentation for the KubernetesIngressRoute provides this example:
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: foo-ip-whitelist
spec:
ipWhiteList:
sourcerange:
- 127.0.0.1/32
- 192.168.1.7
However, when applying the example it returns:
error: error validating "ip-white-list.yaml": error validating data: ValidationError(Middleware.spec.ipWhiteList): unknown field "sourcerange" in us.containo.traefik.v1alpha1.Middleware.spec.ipWhiteList; if you choose to ignore these errors, turn validation off with --validate=false
This is due to sourcerange
not being sourceRange
- could the docs be updated?