doc: fix middleware names for CRD.

This commit is contained in:
Ludovic Fernandez 2019-06-18 09:50:05 +02:00 committed by Traefiker Bot
parent 6069df6cbd
commit be888b59a6
4 changed files with 14 additions and 4 deletions

View file

@ -15,6 +15,16 @@ labels:
- "traefik.http.middlewares.test-compress.compress=true" - "traefik.http.middlewares.test-compress.compress=true"
``` ```
```yaml tab="Kubernetes"
# Enable gzip compression
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: test-compress
spec:
compress: {}
```
```json tab="Marathon" ```json tab="Marathon"
"labels": { "labels": {
"traefik.http.middlewares.test-compress.compress": "true" "traefik.http.middlewares.test-compress.compress": "true"

View file

@ -22,7 +22,7 @@ kind: Middleware
metadata: metadata:
name: test-stripprefix name: test-stripprefix
spec: spec:
StripPrefix: stripPrefix:
prefixes: prefixes:
- /foobar - /foobar
- /fiibar - /fiibar

View file

@ -22,7 +22,7 @@ kind: Middleware
metadata: metadata:
name: test-stripprefixregex name: test-stripprefixregex
spec: spec:
StripPrefixRegex: stripPrefixRegex:
regex: "^/foo/(.*)" regex: "^/foo/(.*)"
``` ```

View file

@ -19,8 +19,8 @@ type Middleware struct {
Headers *Headers `json:"headers,omitempty"` Headers *Headers `json:"headers,omitempty"`
Errors *ErrorPage `json:"errors,omitempty"` Errors *ErrorPage `json:"errors,omitempty"`
RateLimit *RateLimit `json:"rateLimit,omitempty"` RateLimit *RateLimit `json:"rateLimit,omitempty"`
RedirectRegex *RedirectRegex `json:"redirectregex,omitempty"` RedirectRegex *RedirectRegex `json:"redirectRegex,omitempty"`
RedirectScheme *RedirectScheme `json:"redirectscheme,omitempty"` RedirectScheme *RedirectScheme `json:"redirectScheme,omitempty"`
BasicAuth *BasicAuth `json:"basicAuth,omitempty"` BasicAuth *BasicAuth `json:"basicAuth,omitempty"`
DigestAuth *DigestAuth `json:"digestAuth,omitempty"` DigestAuth *DigestAuth `json:"digestAuth,omitempty"`
ForwardAuth *ForwardAuth `json:"forwardAuth,omitempty"` ForwardAuth *ForwardAuth `json:"forwardAuth,omitempty"`