Teleport Chart 업데이트
This commit is contained in:
@@ -163,9 +163,9 @@ tests:
|
||||
- failedTemplate:
|
||||
errorMessage: "clusterName must not contain a colon, you can override the cluster's public address with publicAddr"
|
||||
|
||||
- it: generates a config with proxy_service.trust_x_forwarded_for=true when version >=13.2.0 and ingress.enabled=true
|
||||
- it: generates a config with proxy_service.trust_x_forwarded_for=true when version >=14.0.0 and ingress.enabled=true
|
||||
chart:
|
||||
version: 13.2.0
|
||||
version: 14.0.0
|
||||
values:
|
||||
- ../.lint/ingress.yaml
|
||||
set:
|
||||
@@ -193,9 +193,9 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version >=13.2.0 and ingress.enabled is not set
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version >=14.0.0 and ingress.enabled is not set
|
||||
chart:
|
||||
version: 13.2.0
|
||||
version: 14.0.0
|
||||
set:
|
||||
clusterName: "helm-test.example.com"
|
||||
asserts:
|
||||
@@ -206,7 +206,7 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version < 13.2.0 and ingress.enabled=true
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version < 14.0.0 and ingress.enabled=true
|
||||
chart:
|
||||
version: 13.1.5
|
||||
values:
|
||||
@@ -221,9 +221,9 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version < 13.2.0 and ingress.enabled is not set
|
||||
- it: generates a config WITHOUT proxy_service.trust_x_forwarded_for=true when version < 14.0.0 and ingress.enabled is not set
|
||||
chart:
|
||||
version: 13.1.5
|
||||
version: 14.0.0
|
||||
set:
|
||||
clusterName: "helm-test.example.com"
|
||||
asserts:
|
||||
@@ -233,3 +233,26 @@ tests:
|
||||
of: ConfigMap
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
- it: sets "proxy_protocol" to "on"
|
||||
set:
|
||||
proxyProtocol: "on"
|
||||
clusterName: teleport.example.com
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'proxy_protocol: "on"'
|
||||
- it: sets "proxy_protocol" to "off"
|
||||
set:
|
||||
proxyProtocol: "off"
|
||||
clusterName: teleport.example.com
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'proxy_protocol: "off"'
|
||||
- it: does not set "proxy_protocol"
|
||||
set:
|
||||
clusterName: teleport.example.com
|
||||
asserts:
|
||||
- notMatchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'proxy_protocol:'
|
||||
|
||||
Reference in New Issue
Block a user