Wong Hoi Sing Edison
6d3e9ea7d0
Fixup #2970 : Add Missing Label app.kubernetes.io/part-of: ingress-nginx
...
- Add missing label `app.kubernetes.io/part-of: ingress-nginx` for deploy example
- Update new labels for docs/deploy and docs/examples
- Update new labels for test/e2e and test/manifests
- Update new labels for images/nginx
Also close #3001
2018-09-05 11:48:29 +08:00
Fernando Diaz
2a990d2d2c
Add e2e tests for CORS and more
...
Adds the missing e2e tests for Cross-Origin Resource Sharing(CORS).
This will include all the CORS annotations. Also adds more unit tests.
2018-09-01 16:14:52 -05:00
Elvin Efendi
c073bfc8b3
cleanup dynamic cert e2e tests
2018-08-24 20:26:17 -04:00
k8s-ci-robot
b0b575db33
Merge pull request #2965 from Shopify/dynamic-certificates-nginx
...
Add Lua module to serve SSL Certificates dynamically
2018-08-23 20:27:55 -07:00
Elvin Efendi
71f6d00b66
clear dynamic configuration e2e tests
2018-08-23 22:28:54 -04:00
Henry Tran
cbf041fc3e
Add Lua module to serve SSL Certificates dynamically
2018-08-23 22:15:54 -04:00
Elvin Efendi
702fb9bf81
adjust tls settings test
2018-08-22 21:28:03 -04:00
Elvin Efendi
aa3e06b189
fix flaky luarestywaf test
2018-08-22 21:27:24 -04:00
Elvin Efendi
dc952dc462
consistently fallback to default certificate when TLS is configured
2018-08-22 20:53:25 -04:00
k8s-ci-robot
c083599a4b
Merge pull request #2899 from jeroenvand/jvd-fix-rewrite
...
fixed rewrites for paths not ending in /
2018-08-19 02:49:22 -07:00
Dario Nieuwenhuis
b5bcb93a4b
Merge branch 'master' into xff
2018-08-16 18:15:14 +02:00
Jeroen van Dongen
e428095e3c
fixed rewrites for paths not ending in /
2018-08-15 21:15:40 +02:00
Manuel Alejandro de Brito Fontes
77b922aa00
Remove echoheaders image from the repository ( #2921 )
2018-08-10 07:08:46 -04:00
Manuel de Brito Fontes
7af93e03c7
Add annotation backend-protocol
2018-08-07 08:59:38 -04:00
k8s-ci-robot
7f7f59df79
Merge pull request #2894 from aledbf/authbind
...
Use authbind to bind privileged ports
2018-08-05 08:43:43 -07:00
Manuel de Brito Fontes
b148f113ae
Use authbind to bind privileged ports
2018-08-05 11:18:50 -04:00
Tom Reznik
b7bcf92480
support configuring multi_accept directive via configmap
2018-08-04 19:20:01 +03:00
Tom Reznik
1bacf1655e
support custom configuration to main context of nginx config
2018-08-04 00:53:06 +03:00
k8s-ci-robot
23ce9b5db1
Merge pull request #2808 from dongqi1990/bugfix-2799
...
fix the bug #2799 , add prefix (?i) in rewrite statement.
2018-08-02 20:58:06 -07:00
Manuel de Brito Fontes
d8b3c2e759
Remove dashboard an improve sync-frequency
2018-07-30 11:52:17 -04:00
dongqi1990
72a2aa171a
fix the bug #2799 , add prefix (?i) in rewrite statement and add new e2e
...
test.
2018-07-30 17:34:28 +08:00
k8s-ci-robot
5e4137c6e7
Merge pull request #2834 from Stono/master
...
Added permanent-redirect-code
2018-07-29 14:33:57 -07:00
Antoine Cotten
39966f48cd
Add e2e test for redirect annotations
...
Minor refactoring of parser and unit tests
2018-07-29 22:53:03 +02:00
Elvin Efendi
fa74877256
fix bug with lua e2e test suite
2018-07-28 13:56:41 -04:00
Manuel de Brito Fontes
7032fb7d68
Replace minikube for e2e tests
2018-07-28 11:05:35 -04:00
k8s-ci-robot
18cc2be826
Merge pull request #2794 from ElvinEfendi/enable-dynamic-confoguration
...
enable dynamic backend configuration by default
2018-07-27 00:46:56 -07:00
Elvin Efendi
576baa8d90
improve annotations/default_backend e2e test
2018-07-26 23:04:31 -04:00
Elvin Efendi
6641aa58e2
use static mode for affinity e2e test
2018-07-26 22:34:49 -04:00
Elvin Efendi
925be40943
no need to redundantly enable dynamic mode
2018-07-26 16:42:13 -04:00
Elvin Efendi
7d927a3f41
test to assert nameservers are passed to lua
2018-07-25 09:33:21 -04:00
Manuel de Brito Fontes
7210518f80
Remove setcap and use authbind instead
2018-07-21 18:56:28 -04:00
k8s-ci-robot
237dcd7aa7
Merge pull request #2811 from takonomura/escape-request-uri
...
Escape $request_uri for external auth
2018-07-21 02:23:38 -07:00
takonomura
3ce0ad988f
Add e2e test for external auth
2018-07-21 16:22:48 +09:00
Antoine Cotten
0c7b948317
Multiple optimizations to build targets
...
* Clean up e2e test on interruption
* Leverage GOCACHE for faster builds
* Forward container STDIN in make targets
2018-07-20 20:08:32 +02:00
Manuel de Brito Fontes
2f70c351cb
Catch errors waiting for controller deployment
2018-07-19 21:06:35 -04:00
Manuel de Brito Fontes
1542a12764
Refactor controller metrics interface
2018-07-12 12:46:34 -04:00
Manuel de Brito Fontes
479a519630
Use docker to build go binaries
2018-07-06 23:48:40 -04:00
Fernando Diaz
6b5e383123
Add e2e tests for Client-Body-Buffer-Size
...
Adds test cases for the client-body-buffer-size annotation.
2018-07-01 17:48:37 -05:00
Antoine Cotten
130866b51c
Proofreading
2018-06-25 00:04:43 +02:00
AdamDang
616b94e584
Correct grammar mistakes
2018-06-24 23:44:42 +02:00
Brian Findlay
d59e3ee9dd
Update server-tokens tests
2018-06-23 10:08:39 -04:00
Manuel de Brito Fontes
1d6e2dfd5c
Add e2e test for configmap change and reload
2018-06-21 10:52:56 -04:00
k8s-ci-robot
3cbd2d66bf
Merge pull request #2643 from aledbf/remove-vts
...
Remove VTS from the ingress controller
2018-06-14 23:59:29 -07:00
k8s-ci-robot
dfca2a0d8d
Merge pull request #2451 from nusx/set-sticky-path-for-backend
...
fix for #1930 , make sessions sticky, for ingress with multiple rules …
2018-06-14 20:47:28 -07:00
chenqz1987
0e424bf5a4
add service backend e2e test
2018-06-15 08:10:03 +08:00
Manuel de Brito Fontes
63b38e1c21
Remove VTS from the ingress controller
2018-06-14 11:11:29 -04:00
Manuel Alejandro de Brito Fontes
764bcd5a1b
Wait the result of the controller deployment before running any test ( #2638 )
2018-06-13 16:27:17 -04:00
Antoine Cotten
47bea35492
Clarify log messages in controller pkg
2018-06-13 21:27:43 +02:00
Dario Nieuwenhuis
04d24e1ff7
Switch forwarded-headers e2e to use gorequest.
2018-06-13 21:10:33 +02:00
Dario Nieuwenhuis
fa626a605f
Add use-forwarded-headers e2e test.
2018-06-12 21:33:53 +02:00
Manuel de Brito Fontes
79199dd84c
Run as user dropping privileges
2018-06-12 10:18:36 -04:00
Stefan Schwärzler
1a320ae289
fix for #1930 , make sessions sticky, for ingress with multiple rules and backends
...
* for an ingress with session affinity cookie, set the location as path on the cookie when unique
* the previous behaviour ( cookie path=/ ) is preserved for ingresses with multiple rules for the same backend (locations not unique)
added e2e tests for session affinity, setting path on sticky config
added tests:
* it should set the path to /something on the generated cookie
* it should set the path to / on the generated cookie if there's more than one rule referring to the same backend
2018-06-11 10:43:13 +02:00
Elvin Efendi
d4e6c0dfd8
access_log should be off for internal /configuration endpoint
2018-05-31 16:01:54 -04:00
Elvin Efendi
2c4e41c905
make sure ingress-nginx instances are watching their namespace only during test runs
2018-05-28 17:00:36 -04:00
k8s-ci-robot
1b5db4b3b0
Merge pull request #2574 from aledbf/default-backend
...
Fix default-backend annotation
2018-05-27 23:16:30 -07:00
Manuel de Brito Fontes
2023e56115
Fix default-backend annotation
2018-05-26 19:09:24 -04:00
Manuel de Brito Fontes
2c226ef0fb
Fix influxdb test flake
2018-05-26 17:11:15 -04:00
Manuel de Brito Fontes
564f2a9fe4
Add retries to auth test checks
2018-05-26 16:27:45 -04:00
Manuel de Brito Fontes
5dd1b1319c
Fix ClusterRoleBinding for e2e tests
2018-05-26 16:27:45 -04:00
Manuel Alejandro de Brito Fontes
15ffb51394
Enable core dumps during tests ( #2570 )
2018-05-26 11:08:38 -04:00
Lorenzo Fontana
c3b896dfbc
InfluxDB annotations e2e tests
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-05-19 19:07:16 +02:00
k8s-ci-robot
aa256ac887
Merge pull request #2423 from diazjf/fix-2074
...
Resolves issue with proxy-redirect nginx configuration
2018-05-18 12:42:51 -07:00
Manuel Alejandro de Brito Fontes
f92f5f80e4
Simplify installation and e2e manifests ( #2515 )
2018-05-17 17:50:21 -04:00
Fernando Diaz
e224259e38
Resolves issue with proxy-redirect nginx configuration
...
Resolves an issue where the proxy-redirect annotations were not generating the
correct configuration possibly because of user error. This is done by only
setting the proxy_redirect if both proxy-redirect-from and proxy-redirect-to
have valid values. Also adds the e2e tests.
Fixes #2074
2018-05-17 11:22:31 -05:00
Manuel de Brito Fontes
ff3e182350
Add support for grpc_set_header
2018-05-17 08:35:11 -04:00
Elvin Efendi
7ac4e1db30
fix bug with lua sticky session implementation and refactor balancer
2018-05-16 21:00:39 -04:00
k8s-ci-robot
94198fce83
Merge pull request #2526 from ElvinEfendi/fix-upstreah-hash-lua-test
...
Fix upstream hash lua test
2018-05-16 17:57:52 -07:00
Elvin Efendi
c7de5a5bf6
do not assert on random behaviour
2018-05-16 19:19:38 -04:00
Elvin Efendi
2eb0286c8a
fix flaky test
2018-05-16 19:05:49 -04:00
Manuel de Brito Fontes
a085808d2d
Add tests for bind-address
2018-05-16 14:53:29 -04:00
Manuel de Brito Fontes
d4f2b5d060
Fix and simplify local dev workflow and execution of e2e tests
2018-05-15 12:13:41 -04:00
Mark Janssen
cbb0f96f74
Add basic security context to deployment YAMLs
2018-04-28 23:32:37 +02:00
Antoine Cotten
ca423e1567
Add tests for global TLS settings
2018-04-27 23:24:23 +02:00
Antoine Cotten
553df8a0cc
Refactor e2e framework for TLS tests
2018-04-27 23:24:22 +02:00
Antoine Cotten
c93f39f019
Bump echoserver version used in e2e test (1.10)
2018-04-27 23:24:22 +02:00
Antoine Cotten
7c246ec313
Use local image name for e2e tests
2018-04-27 23:24:22 +02:00
Manuel de Brito Fontes
acaf3d8c04
Release nginx ingress controller 0.14.0
2018-04-27 16:09:28 -03:00
Elvin Efendi
2ce9196ecf
upstream-hash-by annotation support for dynamic configuraton mode
2018-04-27 14:28:43 -04:00
JordanP
c995031ffd
Add annotation to enable rewrite logs in a location
2018-04-27 17:50:14 +02:00
Manuel de Brito Fontes
c6728aa8fa
Clean JSON before post request to update configuration
2018-04-26 15:27:27 -03:00
Manuel de Brito Fontes
9bf553559c
Apply gometalinter suggestions
2018-04-25 18:53:49 -03:00
Andrew Louis
d3d383d1cc
Endpoint Awareness: Read backends data from tmp file as well
...
Actually read from the file
Logs probably shouldn't assume knowledge of implementation detail
Typos
Added integration test, and dynamic update config refactor
Don't force the 8k default
Minimal test case to make the configuration/backends request body write to temp file
Leverage new safe config updating methods, and use 2 replicas instead of 4
Small refactor
Better integration test, addresses other feedback
Update bindata
2018-04-24 15:07:59 -04:00
Elvin Efendi
0837e81c7f
cleanup redundant code
2018-04-20 23:41:21 -04:00
Elvin Efendi
84385a01bb
shave off some more seconds
2018-04-20 22:58:41 -04:00
Elvin Efendi
b2084c057d
fix flaky dynamic configuration test
2018-04-20 22:32:38 -04:00
Manuel de Brito Fontes
42e0c0abf7
Improve speed of e2e tests
2018-04-20 00:04:34 -03:00
Manuel de Brito Fontes
62a80a39ad
Remove most of the time.Sleep from the e2e tests
2018-04-19 17:48:50 -03:00
Andrew Louis
882a99c1ec
Fix leaky test
2018-04-18 11:48:24 -04:00
Andrew Louis
444914b764
Move the resetting logic into framework
...
Stylistic fixes based on feedback
2018-04-18 11:48:22 -04:00
Andrew Louis
19337f05fb
Introduce ConfigMap updating helpers into e2e/framework and retain default nginx-configuration state between tests
...
Group sublogic
2018-04-17 15:08:26 -04:00
AdamDang
e519edc76f
Correct some returned messages in server_tokens.go
...
should not exists->should not exist
should exists->should exist
2018-04-15 23:42:38 +08:00
Zenara Daley
32ea682629
Fixed tests
2018-04-12 19:44:09 -04:00
Zenara Daley
6ed256dde6
Add session affinity to custom load balancing
2018-04-12 14:21:42 -04:00
Manuel Alejandro de Brito Fontes
156bc7a177
Update nginx image ( #2328 )
...
* Update nginx image
* Update minikube start script
2018-04-10 19:52:58 -03:00
Elvin Efendi
d6eb44376d
run lua-resty-waf in different modes ( #2317 )
...
* run lua-resty-waf in different modes
* update docs
2018-04-09 09:19:13 -03:00
Elvin Efendi
bad8295a42
extra waf rules per ingress ( #2315 )
...
* extra waf rules per ingress
* document annotation nginx.ingress.kubernetes.io/lua-resty-waf-extra-rules
* regenerate internal/file/bindata.go
2018-04-09 07:14:30 -03:00
Elvin Efendi
16faf309ca
annotation to ignore given list of WAF rulesets ( #2314 )
2018-04-08 22:55:23 -03:00
Elvin Efendi
a6fe800a47
lua-resty-waf controller ( #2304 )
2018-04-08 17:37:13 -03:00
Alvaro Aleman
e7aa74b5d4
Add NoAuthLocations and default it to "/.well-known/acme-challenge" ( #2243 )
...
* Add NoAuthLocations and default it to "/.well-known/acme-challenge"
* Add e2e tests for no-auth-location
* Improve wording of no-auth-location tests
2018-04-01 21:02:34 -03:00
Alvaro Aleman
9b4d7f28d0
Fix flaky e2e tests by always waiting after redeploying the ingress controller ( #2283 )
2018-04-01 20:37:27 -03:00
Elvin Efendi
ee46f486c7
e2e tests for dynamic configuration and Lua features and a bug fix ( #2254 )
...
* e2e tests for dynamic configuration and Lua features
* do not rely on force reload to dynamically configure when reload is needed
* fix misspelling
* skip dynamic configuration in the first template rendering
* dont error on first sync
2018-04-01 17:09:27 -03:00
Sylvain Rabot
385368990c
Managing a whitelist for _/nginx_status ( #2187 )
...
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
2018-03-28 09:27:34 -03:00
Antoine Cotten
86a3a63488
Include tests in golint checks, fix warnings ( #2180 )
2018-03-07 08:37:30 -08:00
Manuel de Brito Fontes
62622f6516
Clenup tests
2018-01-23 21:11:56 -03:00
Manuel de Brito Fontes
12ec0475c0
Fix SSL passthrough
2018-01-23 19:34:33 -03:00
Manuel de Brito Fontes
1ec0a60746
Add container flag where is required to run the command
2018-01-23 19:34:33 -03:00
Manuel Alejandro de Brito Fontes
2853ba564d
Adjust sysctl values to improve nginx performance ( #1960 )
...
* Adjust sysctl values to improve nginx performance
* Increase wait timeout for nginx controller pod
2018-01-23 19:19:32 -03:00
Manuel de Brito Fontes
c5df325c98
Add missing test framework helper
2018-01-18 16:32:09 -03:00
Manuel Alejandro de Brito Fontes
807932259e
If server_tokens is disabled remove the Server header ( #1903 )
...
* If server_tokens is disabled remove the Server header
* Add server-tokens tests
* Fix tests
2018-01-17 10:26:53 -02:00
Manuel Alejandro de Brito Fontes
f732b4ea2f
Improve speed of tests execution ( #1861 )
2017-12-27 08:16:59 -03:00
Manuel Alejandro de Brito Fontes
49238d0e67
Merge pull request #1786 from oilbeater/fix/type
...
fix: some typo.
2017-12-04 10:09:50 -03:00
Manuel de Brito Fontes
a4f67c0853
Fix verification of boilerplate, style and file headers
2017-12-03 13:58:23 -03:00
Mengxin Liu
9cf0b11fc7
fix: some typo.
2017-12-02 13:47:04 +08:00
Manuel Alejandro de Brito Fontes
82b4d2a0af
Merge pull request #1231 from canhnt/sticky-path-rewriter
...
Add tests to cover sticky cookie and rewrite-target annotations
2017-11-23 20:08:04 -03:00
Canh Ngo
d37722b0c7
Added e2e test for sticky cookie and redirection
2017-11-23 22:30:46 +01:00
Manuel de Brito Fontes
12f118992f
Cleanup of e2e helpers
2017-11-23 16:53:00 -03:00
Manuel de Brito Fontes
f055022e58
Simplify annotations
2017-11-23 14:11:31 -03:00
Manuel de Brito Fontes
18d6573981
Add fake filesystem for test to avoid temporal files on the local filesystem
2017-11-22 19:52:30 -03:00
Manuel de Brito Fontes
b6dfe3d54d
Improve e2e checks
2017-11-22 14:19:15 -03:00
Manuel de Brito Fontes
c768be622c
Enable all e2e tests
2017-11-18 07:22:42 -03:00
Manuel de Brito Fontes
a36cd10041
Do not update a secret not referenced by ingress rules
2017-11-14 17:50:08 -03:00
Manuel de Brito Fontes
57f43989fd
Add e2e tests to verify the correct source IP address
2017-11-13 17:26:13 -03:00
Mengxin Liu
b3cec74e79
fix: Core() is deprecated use CoreV1() instead.
2017-11-13 23:45:01 +08:00
Manuel de Brito Fontes
a858c549d9
Add e2e tests for auth annotation
2017-11-12 20:08:32 -03:00
Manuel de Brito Fontes
4c1c707e9c
Add tests for alias annotation
2017-11-11 14:53:44 -03:00
Manuel de Brito Fontes
311d286a34
Fix license in header of files
2017-11-05 18:35:46 -03:00
Manuel de Brito Fontes
46375d5854
Dump ingress controller logs in case of errors [ci skip]
2017-11-01 20:22:59 -03:00
Manuel de Brito Fontes
febd7cf3e2
Report information about errors deployments
2017-10-25 19:43:01 -03:00
Manuel de Brito Fontes
601fb7dacf
Add e2e tests
2017-10-20 20:33:48 -03:00