chore(docs,tests): remove references to fixedMiddlewares and allowCors(middlewares)
This commit is contained in:
@@ -77,8 +77,6 @@ ingress:
|
|||||||
|
|
||||||
label:
|
label:
|
||||||
enabled: true
|
enabled: true
|
||||||
fixedMiddlewares:
|
|
||||||
- chain-basic
|
|
||||||
labels:
|
labels:
|
||||||
labelexample1: labelvalue2
|
labelexample1: labelvalue2
|
||||||
hosts:
|
hosts:
|
||||||
@@ -93,8 +91,6 @@ ingress:
|
|||||||
|
|
||||||
autolink:
|
autolink:
|
||||||
enabled: true
|
enabled: true
|
||||||
fixedMiddlewares:
|
|
||||||
- chain-basic
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: label.chart-example.local
|
- host: label.chart-example.local
|
||||||
paths:
|
paths:
|
||||||
@@ -108,8 +104,6 @@ ingress:
|
|||||||
|
|
||||||
notls:
|
notls:
|
||||||
enabled: true
|
enabled: true
|
||||||
fixedMiddlewares:
|
|
||||||
- chain-basic
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: notls.chart-example.local
|
- host: notls.chart-example.local
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -182,7 +181,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -233,7 +231,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -287,7 +284,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -139,7 +139,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -186,7 +185,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -237,7 +235,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -291,7 +288,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -345,7 +341,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -406,7 +401,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -477,7 +471,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: example.com
|
- host: example.com
|
||||||
paths:
|
paths:
|
||||||
@@ -492,7 +485,6 @@ tests:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web
|
- web
|
||||||
enableFixedMiddlewares: false
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: some.other.example.com
|
- host: some.other.example.com
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -645,13 +645,6 @@ ingress:
|
|||||||
- websecure
|
- websecure
|
||||||
# Ensures tls annotation is set
|
# Ensures tls annotation is set
|
||||||
forceTLS: true
|
forceTLS: true
|
||||||
# Drops both global and local fixedMiddlewares when enabled
|
|
||||||
allowCors: false
|
|
||||||
# fixedMiddlewares:
|
|
||||||
# - name: chain-basic
|
|
||||||
# # Optional, by default will try to
|
|
||||||
# # "lookup" the namespace based on the name
|
|
||||||
# namespace: ""
|
|
||||||
middlewares: []
|
middlewares: []
|
||||||
# - name: my-middleware
|
# - name: my-middleware
|
||||||
# # Optional, by default will try to
|
# # Optional, by default will try to
|
||||||
|
|||||||
@@ -28,12 +28,6 @@ global:
|
|||||||
addServiceAnnotations: true
|
addServiceAnnotations: true
|
||||||
traefik:
|
traefik:
|
||||||
addServiceAnnotations: true
|
addServiceAnnotations: true
|
||||||
fixedMiddlewares:
|
|
||||||
- name: chain-basic
|
|
||||||
namespace: ""
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: tc-opencors-chain
|
|
||||||
namespace: ""
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -43,7 +37,7 @@ global:
|
|||||||
Additional Labels that apply to all objects
|
Additional Labels that apply to all objects
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
| ---------- | ------------------ |
|
| ---------- | ----------------- |
|
||||||
| Key | `global.labels` |
|
| Key | `global.labels` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
@@ -189,12 +183,6 @@ Default
|
|||||||
global:
|
global:
|
||||||
traefik:
|
traefik:
|
||||||
addServiceAnnotations: true
|
addServiceAnnotations: true
|
||||||
fixedMiddlewares:
|
|
||||||
- name: chain-basic
|
|
||||||
namespace: ""
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: tc-opencors-chain
|
|
||||||
namespace: ""
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -203,8 +191,6 @@ Example
|
|||||||
global:
|
global:
|
||||||
traefik:
|
traefik:
|
||||||
addServiceAnnotations: false
|
addServiceAnnotations: false
|
||||||
fixedMiddlewares: []
|
|
||||||
allowCorsMiddlewares: []
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -231,140 +217,6 @@ global:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### `traefik.fixedMiddlewares`
|
|
||||||
|
|
||||||
See documentation [here](/common/ingress/traefik#fixedmiddlewares)
|
|
||||||
|
|
||||||
Default
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
fixedMiddlewares:
|
|
||||||
- name: chain-basic
|
|
||||||
namespace: ""
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `traefik.fixedMiddlewares[].name`
|
|
||||||
|
|
||||||
See documentation [here](/common/ingress/traefik#fixedmiddlewaresname)
|
|
||||||
|
|
||||||
Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
fixedMiddlewares:
|
|
||||||
- name: my-custom-middleware
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `traefik.fixedMiddlewares[].namespace`
|
|
||||||
|
|
||||||
See documentation [here](/common/ingress/traefik#fixedmiddlewaresnamespace)
|
|
||||||
|
|
||||||
Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
fixedMiddlewares:
|
|
||||||
- name: my-custom-middleware
|
|
||||||
namespace: my-namespace
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### `traefik.allowCorsMiddlewares`
|
|
||||||
|
|
||||||
Middlewares for traefik to apply when allowCors is enabled in the ingress
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| ---------- | ------------------------------------- |
|
|
||||||
| Key | `global.traefik.allowCorsMiddlewares` |
|
|
||||||
| Type | `list` of `map` |
|
|
||||||
| Required | ❌ |
|
|
||||||
| Helm `tpl` | ❌ |
|
|
||||||
|
|
||||||
Default
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: tc-opencors-chain
|
|
||||||
namespace: ""
|
|
||||||
```
|
|
||||||
|
|
||||||
Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: my-custom-middleware
|
|
||||||
namespace: my-namespace
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `traefik.allowCorsMiddlewares[].name`
|
|
||||||
|
|
||||||
Name of the middleware
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| ---------- | -------------------------------------------- |
|
|
||||||
| Key | `global.traefik.allowCorsMiddlewares[].name` |
|
|
||||||
| Type | `string` |
|
|
||||||
| Required | ❌ |
|
|
||||||
| Helm `tpl` | ❌ |
|
|
||||||
| Default | `""` |
|
|
||||||
|
|
||||||
Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: my-custom-middleware
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `traefik.allowCorsMiddlewares[].namespace`
|
|
||||||
|
|
||||||
Namespace of the middleware
|
|
||||||
|
|
||||||
:::tip
|
|
||||||
|
|
||||||
If not defined, helm will do a lookup and try to find the namespace of the middleware.
|
|
||||||
If more than one namespaces are found, it will throw an error.
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
| | |
|
|
||||||
| ---------- | ------------------------------------------------- |
|
|
||||||
| Key | `global.traefik.allowCorsMiddlewares[].namespace` |
|
|
||||||
| Type | `string` |
|
|
||||||
| Required | ❌ |
|
|
||||||
| Helm `tpl` | ❌ |
|
|
||||||
| Default | `""` |
|
|
||||||
|
|
||||||
Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
global:
|
|
||||||
traefik:
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: my-custom-middleware
|
|
||||||
namespace: my-namespace
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Full Examples
|
## Full Examples
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -380,10 +232,4 @@ global:
|
|||||||
addServiceAnnotations: true
|
addServiceAnnotations: true
|
||||||
traefik:
|
traefik:
|
||||||
addServiceAnnotations: true
|
addServiceAnnotations: true
|
||||||
fixedMiddlewares:
|
|
||||||
- name: chain-basic
|
|
||||||
namespace: ""
|
|
||||||
allowCorsMiddlewares:
|
|
||||||
- name: tc-opencors-chain
|
|
||||||
namespace: ""
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -763,12 +763,7 @@ ingress:
|
|||||||
enabled: true
|
enabled: true
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- websecure
|
- websecure
|
||||||
enableFixedMiddlewares: true
|
|
||||||
forceTLS: true
|
forceTLS: true
|
||||||
allowCors: false
|
|
||||||
fixedMiddlewares:
|
|
||||||
- name: chain-basic
|
|
||||||
namespace: ""
|
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: my-middleware
|
- name: my-middleware
|
||||||
namespace: ""
|
namespace: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user