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
|
||||||
|
|||||||
@@ -2,58 +2,58 @@ package valuesYaml
|
|||||||
|
|
||||||
// MiddlewareEntry represents the schema for a middleware entry.
|
// MiddlewareEntry represents the schema for a middleware entry.
|
||||||
type MiddlewareEntry struct {
|
type MiddlewareEntry struct {
|
||||||
Name string `yaml:"name" schema:"type:string,default:'',required:true"`
|
Name string `yaml:"name" schema:"type:string,default:'',required:true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integration represents the schema for integrations.
|
// Integration represents the schema for integrations.
|
||||||
type Integration struct {
|
type Integration struct {
|
||||||
Homepage IntegrationHomepage `yaml:"homepage" schema:"additional_attrs:true,type:dict"`
|
Homepage IntegrationHomepage `yaml:"homepage" schema:"additional_attrs:true,type:dict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IntegrationHomepage represents the schema for the Homepage integration.
|
// IntegrationHomepage represents the schema for the Homepage integration.
|
||||||
type IntegrationHomepage struct {
|
type IntegrationHomepage struct {
|
||||||
Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"`
|
Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"`
|
||||||
Name string `yaml:"name" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
|
Name string `yaml:"name" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
|
||||||
Description string `yaml:"description" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
|
Description string `yaml:"description" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
|
||||||
Group string `yaml:"group" schema:"type:string,default:default,show_if:[[enabled,=,true]]"`
|
Group string `yaml:"group" schema:"type:string,default:default,show_if:[[enabled,=,true]]"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TLSEntry represents the schema for a TLS entry.
|
// TLSEntry represents the schema for a TLS entry.
|
||||||
type TLSEntry struct {
|
type TLSEntry struct {
|
||||||
Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"`
|
Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"`
|
||||||
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
|
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
|
||||||
ClusterCertificate string `yaml:"clusterCertificate" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
|
ClusterCertificate string `yaml:"clusterCertificate" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
|
||||||
SecretName string `yaml:"secretName" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
|
SecretName string `yaml:"secretName" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
|
||||||
ScaleCert int `yaml:"scaleCert" schema:"type:int,show_if:[[certificateIssuer,=,]]"`
|
ScaleCert int `yaml:"scaleCert" schema:"type:int,show_if:[[certificateIssuer,=,]]"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IngressConfiguration represents the schema for Ingress settings with variable name.
|
// IngressConfiguration represents the schema for Ingress settings with variable name.
|
||||||
type IngressConfiguration struct {
|
type IngressConfiguration struct {
|
||||||
Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"`
|
Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"`
|
||||||
Name string `yaml:"name" schema:"type:string,default:''"`
|
Name string `yaml:"name" schema:"type:string,default:''"`
|
||||||
IngressClassName string `yaml:"ingressClassName" schema:"type:string,default:''"`
|
IngressClassName string `yaml:"ingressClassName" schema:"type:string,default:''"`
|
||||||
AllowCors bool `yaml:"allowCors" schema:"type:boolean,show_if:[[advanced,=,true]],default:false"`
|
AllowCors bool `yaml:"allowCors" schema:"type:boolean,show_if:[[advanced,=,true]],default:false"`
|
||||||
Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"`
|
Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"`
|
||||||
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
|
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
|
||||||
TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"`
|
TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"`
|
||||||
Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"`
|
Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"`
|
||||||
Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"`
|
Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"`
|
||||||
Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"`
|
Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HostEntry represents the schema for a host entry.
|
// HostEntry represents the schema for a host entry.
|
||||||
type HostEntry struct {
|
type HostEntry struct {
|
||||||
Host string `yaml:"host" schema:"type:string,default:'',required:true"`
|
Host string `yaml:"host" schema:"type:string,default:'',required:true"`
|
||||||
Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"`
|
Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PathEntry represents the schema for a path entry.
|
// PathEntry represents the schema for a path entry.
|
||||||
type PathEntry struct {
|
type PathEntry struct {
|
||||||
Path string `yaml:"path" schema:"type:string,required:true,default:/"`
|
Path string `yaml:"path" schema:"type:string,required:true,default:/"`
|
||||||
PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"`
|
PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RootReference represents the root-level reference for Ingress settings.
|
// RootReference represents the root-level reference for Ingress settings.
|
||||||
type RootReference struct {
|
type RootReference struct {
|
||||||
Ingress map[string]IngressConfiguration `yaml:"ingress" schema:"additional_attrs:true,type:dict" description:"Ingress Settings"`
|
Ingress map[string]IngressConfiguration `yaml:"ingress" schema:"additional_attrs:true,type:dict" description:"Ingress Settings"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: ""
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -42,13 +36,13 @@ 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 | ❌ |
|
||||||
| Helm `tpl` | ✅ (On value only) |
|
| Helm `tpl` | ✅ (On value only) |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
|
|
||||||
@@ -68,8 +62,8 @@ Additional Annotations that apply to all objects
|
|||||||
| ---------- | -------------------- |
|
| ---------- | -------------------- |
|
||||||
| Key | `global.annotations` |
|
| Key | `global.annotations` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ (On value only) |
|
| Helm `tpl` | ✅ (On value only) |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -90,8 +84,8 @@ Namespace to apply to all objects, also applies to chart deps
|
|||||||
| ---------- | ------------------ |
|
| ---------- | ------------------ |
|
||||||
| Key | `global.namespace` |
|
| Key | `global.namespace` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -111,8 +105,8 @@ Minimum Node Port Allowed
|
|||||||
| ---------- | -------------------- |
|
| ---------- | -------------------- |
|
||||||
| Key | `global.minNodePort` |
|
| Key | `global.minNodePort` |
|
||||||
| Type | `int` |
|
| Type | `int` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `9000` |
|
| Default | `9000` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -132,8 +126,8 @@ Applies different techniques to stop all objects in the chart and its dependenci
|
|||||||
| ---------- | ---------------- |
|
| ---------- | ---------------- |
|
||||||
| Key | `global.stopAll` |
|
| Key | `global.stopAll` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `false` |
|
| Default | `false` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -151,8 +145,8 @@ Settings for metallb integration
|
|||||||
| ---------- | ---------------- |
|
| ---------- | ---------------- |
|
||||||
| Key | `global.metallb` |
|
| Key | `global.metallb` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
|
|
||||||
Default
|
Default
|
||||||
|
|
||||||
@@ -180,8 +174,8 @@ Settings for traefik integration
|
|||||||
| ---------- | ---------------- |
|
| ---------- | ---------------- |
|
||||||
| Key | `global.traefik` |
|
| Key | `global.traefik` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
|
|
||||||
Default
|
Default
|
||||||
|
|
||||||
@@ -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: []
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -217,8 +203,8 @@ Add annotations to services for traefik
|
|||||||
| ---------- | -------------------------------------- |
|
| ---------- | -------------------------------------- |
|
||||||
| Key | `global.traefik.addServiceAnnotations` |
|
| Key | `global.traefik.addServiceAnnotations` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `true` |
|
| Default | `true` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -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: ""
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ Create Ingress objects
|
|||||||
| ---------- | --------- |
|
| ---------- | --------- |
|
||||||
| Key | `ingress` |
|
| Key | `ingress` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -61,8 +61,8 @@ Define Ingress
|
|||||||
| ---------- | --------------- |
|
| ---------- | --------------- |
|
||||||
| Key | `ingress.$name` |
|
| Key | `ingress.$name` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -82,8 +82,8 @@ Enables or Disables the Ingress
|
|||||||
| ---------- | ----------------------- |
|
| ---------- | ----------------------- |
|
||||||
| Key | `ingress.$name.enabled` |
|
| Key | `ingress.$name.enabled` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `false` |
|
| Default | `false` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -104,8 +104,8 @@ Define the primary ingress
|
|||||||
| ---------- | ----------------------- |
|
| ---------- | ----------------------- |
|
||||||
| Key | `ingress.$name.primary` |
|
| Key | `ingress.$name.primary` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `false` |
|
| Default | `false` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -126,8 +126,8 @@ Define if the object name should be expanded
|
|||||||
| ---------- | -------------------------------- |
|
| ---------- | -------------------------------- |
|
||||||
| Key | `ingress.$name.expandObjectName` |
|
| Key | `ingress.$name.expandObjectName` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `false` |
|
| Default | `false` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -148,8 +148,8 @@ Define if the ingress is required
|
|||||||
| ---------- | ------------------------ |
|
| ---------- | ------------------------ |
|
||||||
| Key | `ingress.$name.required` |
|
| Key | `ingress.$name.required` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `false` |
|
| Default | `false` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -170,8 +170,8 @@ Define the namespace for this object
|
|||||||
| ---------- | ------------------------- |
|
| ---------- | ------------------------- |
|
||||||
| Key | `ingress.$name.namespace` |
|
| Key | `ingress.$name.namespace` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -192,8 +192,8 @@ Additional labels for ingress
|
|||||||
| ---------- | ---------------------- |
|
| ---------- | ---------------------- |
|
||||||
| Key | `ingress.$name.labels` |
|
| Key | `ingress.$name.labels` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ (On value only) |
|
| Helm `tpl` | ✅ (On value only) |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -215,8 +215,8 @@ Additional annotations for ingress
|
|||||||
| ---------- | --------------------------- |
|
| ---------- | --------------------------- |
|
||||||
| Key | `ingress.$name.annotations` |
|
| Key | `ingress.$name.annotations` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ (On value only) |
|
| Helm `tpl` | ✅ (On value only) |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -238,8 +238,8 @@ Define the ingress class name for this object
|
|||||||
| ---------- | -------------------------------- |
|
| ---------- | -------------------------------- |
|
||||||
| Key | `ingress.$name.ingressClassName` |
|
| Key | `ingress.$name.ingressClassName` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `nil` |
|
| Default | `nil` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -260,8 +260,8 @@ Define the `service: port` to assign the ingress
|
|||||||
| ---------- | ------------------------------ |
|
| ---------- | ------------------------------ |
|
||||||
| Key | `ingress.$name.targetSelector` |
|
| Key | `ingress.$name.targetSelector` |
|
||||||
| Type | `dict` |
|
| Type | `dict` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -283,8 +283,8 @@ Define the hosts for this ingress
|
|||||||
| ---------- | --------------------- |
|
| ---------- | --------------------- |
|
||||||
| Key | `ingress.$name.hosts` |
|
| Key | `ingress.$name.hosts` |
|
||||||
| Type | `list` of `map` |
|
| Type | `list` of `map` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `[]` |
|
| Default | `[]` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -305,8 +305,8 @@ Define the host for this ingress
|
|||||||
| ---------- | ---------------------------- |
|
| ---------- | ---------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].host` |
|
| Key | `ingress.$name.hosts[].host` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -328,8 +328,8 @@ Define the paths for this ingress
|
|||||||
| ---------- | ----------------------------- |
|
| ---------- | ----------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths` |
|
| Key | `ingress.$name.hosts[].paths` |
|
||||||
| Type | `list` of `map` |
|
| Type | `list` of `map` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `[]` |
|
| Default | `[]` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -352,8 +352,8 @@ Define the path for this ingress
|
|||||||
| ---------- | ------------------------------------ |
|
| ---------- | ------------------------------------ |
|
||||||
| Key | `ingress.$name.hosts[].paths[].path` |
|
| Key | `ingress.$name.hosts[].paths[].path` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -377,8 +377,8 @@ Define the path type for this ingress
|
|||||||
| ---------- | ---------------------------------------- |
|
| ---------- | ---------------------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths[].pathType` |
|
| Key | `ingress.$name.hosts[].paths[].pathType` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `Prefix` |
|
| Default | `Prefix` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -403,8 +403,8 @@ Overrides the "selected" service for this path
|
|||||||
| ---------- | ----------------------------------------------- |
|
| ---------- | ----------------------------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths[].overrideService` |
|
| Key | `ingress.$name.hosts[].paths[].overrideService` |
|
||||||
| Type | `dict` |
|
| Type | `dict` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -430,8 +430,8 @@ Define the service name for this path
|
|||||||
| ---------- | ---------------------------------------------------- |
|
| ---------- | ---------------------------------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths[].overrideService.name` |
|
| Key | `ingress.$name.hosts[].paths[].overrideService.name` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -458,8 +458,8 @@ Define if the override service object name should be expanded
|
|||||||
| ---------- | ---------------------------------------------------------------- |
|
| ---------- | ---------------------------------------------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths[].overrideService.expandObjectName` |
|
| Key | `ingress.$name.hosts[].paths[].overrideService.expandObjectName` |
|
||||||
| Type | `bool` |
|
| Type | `bool` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `true` |
|
| Default | `true` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -487,8 +487,8 @@ Define the service port for this path
|
|||||||
| ---------- | ---------------------------------------------------- |
|
| ---------- | ---------------------------------------------------- |
|
||||||
| Key | `ingress.$name.hosts[].paths[].overrideService.port` |
|
| Key | `ingress.$name.hosts[].paths[].overrideService.port` |
|
||||||
| Type | `int` |
|
| Type | `int` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | unset |
|
| Default | unset |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -515,8 +515,8 @@ Define the TLS for this ingress
|
|||||||
| ---------- | ------------------- |
|
| ---------- | ------------------- |
|
||||||
| Key | `ingress.$name.tls` |
|
| Key | `ingress.$name.tls` |
|
||||||
| Type | `list` of `map` |
|
| Type | `list` of `map` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `[]` |
|
| Default | `[]` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -537,8 +537,8 @@ Define the hosts for this TLS
|
|||||||
| ---------- | -------------------------- |
|
| ---------- | -------------------------- |
|
||||||
| Key | `ingress.$name.tls[].host` |
|
| Key | `ingress.$name.tls[].host` |
|
||||||
| Type | `list` of `string` |
|
| Type | `list` of `string` |
|
||||||
| Required | ✅ |
|
| Required | ✅ |
|
||||||
| Helm `tpl` | ✅ (On each entry) |
|
| Helm `tpl` | ✅ (On each entry) |
|
||||||
| Default | `[]` |
|
| Default | `[]` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -561,8 +561,8 @@ Define the secret name for this TLS
|
|||||||
| ---------- | -------------------------------- |
|
| ---------- | -------------------------------- |
|
||||||
| Key | `ingress.$name.tls[].secretName` |
|
| Key | `ingress.$name.tls[].secretName` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -586,8 +586,8 @@ Define the certificate issuer for this TLS
|
|||||||
| ---------- | --------------------------------------- |
|
| ---------- | --------------------------------------- |
|
||||||
| Key | `ingress.$name.tls[].certificateIssuer` |
|
| Key | `ingress.$name.tls[].certificateIssuer` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -611,8 +611,8 @@ Define the cluster issuer for this TLS
|
|||||||
| ---------- | ----------------------------------- |
|
| ---------- | ----------------------------------- |
|
||||||
| Key | `ingress.$name.tls[].clusterIssuer` |
|
| Key | `ingress.$name.tls[].clusterIssuer` |
|
||||||
| Type | `string` |
|
| Type | `string` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ✅ |
|
| Helm `tpl` | ✅ |
|
||||||
| Default | `""` |
|
| Default | `""` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -636,8 +636,8 @@ Define the integrations for this ingress
|
|||||||
| ---------- | ---------------------------- |
|
| ---------- | ---------------------------- |
|
||||||
| Key | `ingress.$name.integrations` |
|
| Key | `ingress.$name.integrations` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -660,8 +660,8 @@ See more details in [Cert Manager Integration](/common/ingress/certmanager)
|
|||||||
| ---------- | ---------------------------------------- |
|
| ---------- | ---------------------------------------- |
|
||||||
| Key | `ingress.$name.integrations.certManager` |
|
| Key | `ingress.$name.integrations.certManager` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -685,8 +685,8 @@ See more details in [Traefik Integration](/common/ingress/traefik)
|
|||||||
| ---------- | ------------------------------------ |
|
| ---------- | ------------------------------------ |
|
||||||
| Key | `ingress.$name.integrations.traefik` |
|
| Key | `ingress.$name.integrations.traefik` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -710,8 +710,8 @@ See more details in [Homepage Integration](/common/ingress/homepage)
|
|||||||
| ---------- | ------------------------------------- |
|
| ---------- | ------------------------------------- |
|
||||||
| Key | `ingress.$name.integrations.homepage` |
|
| Key | `ingress.$name.integrations.homepage` |
|
||||||
| Type | `map` |
|
| Type | `map` |
|
||||||
| Required | ❌ |
|
| Required | ❌ |
|
||||||
| Helm `tpl` | ❌ |
|
| Helm `tpl` | ❌ |
|
||||||
| Default | `{}` |
|
| Default | `{}` |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
@@ -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