Commit graph

6601 commits

Author SHA1 Message Date
Jintao Zhang
3aee7416e5 feat: using LeaseLock for election (#8921)
We removed the use of configmap as an election lock, so we will use the
Lease API to complete the election.

Before this, we used `MultiLock` to facilitate smooth migration of
existing users of ingress-nginx from configmap to LeaseLock.

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2022-08-22 15:38:16 -07:00
Christian
d13f32d67c Don't error log when no OCSP responder URL exists (#8881) 2022-08-22 15:38:09 -07:00
dependabot[bot]
57e0cf4efe Bump github/codeql-action from 2.1.19 to 2.1.20 (#8957)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.19 to 2.1.20.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f5d217be74...7fee4ca032)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:32:09 -07:00
dependabot[bot]
cab54aad40 Bump azure/setup-helm from 2.1 to 3.3 (#8956)
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 2.1 to 3.3.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Commits](217bf70cbd...b5b231a831)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:30:09 -07:00
dependabot[bot]
0c5fefba77 Bump actions/dependency-review-action from 2.0.4 to 2.1.0 (#8954)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2.0.4 to 2.1.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](94145f3150...23d1ffffb6)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:28:08 -07:00
dependabot[bot]
60716a7f89 Bump aquasecurity/trivy-action from 0.5.1 to 0.7.1 (#8953)
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.5.1 to 0.7.1.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](0105373003...d63413b0a4)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:26:09 -07:00
dependabot[bot]
c6342b223b Bump securego/gosec (#8952)
Bumps [securego/gosec](https://github.com/securego/gosec) from b99b5f7838e43a4104354ad92a6a1774302ee1f9 to 2.13.1. This release includes the previously tagged commit.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](b99b5f7838...19fa856bad)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:24:09 -07:00
dependabot[bot]
b645ce44d3 Bump geekyeggo/delete-artifact (#8951)
Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from a6ab43859c960a8b74cbc6291f362c7fb51829ba to 1. This release includes the previously tagged commit.
- [Release notes](https://github.com/geekyeggo/delete-artifact/releases)
- [Commits](a6ab43859c...b73cb98674)

---
updated-dependencies:
- dependency-name: geekyeggo/delete-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:22:09 -07:00
dependabot[bot]
8ea8c40f11 Bump github/codeql-action from 2.1.18 to 2.1.19 (#8950)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.18 to 2.1.19.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2.1.18...f5d217be74900c6ac8fbbe53f3c10376ba4e64da)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:20:10 -07:00
Long Wu Yuan
37dd8a8ed2 updated testrunner and testecho images (#8948) 2022-08-22 11:24:29 -07:00
Ricardo Katz
fbe3ada31b Clean old code and move helper functions (#8946) 2022-08-21 14:21:51 -07:00
Long Wu Yuan
59fea1d134 bump baseimage alpine to v3.16.2 for zlib CVE fix (#8939) 2022-08-18 19:30:09 -07:00
Long Wu Yuan
fe77c4f19c bump alpine to v3.16.2 (#8934) 2022-08-18 05:54:36 -07:00
Ismayil Mirzali
96814ec392 Reimplement kubectl plugin release workflow (#8812)
* Feat: reimplement kubectl plugin release system

This commit does the following changes:
- Add GitHub Actions pipeline for releasing the plugin
- Removes the build/build-plugin.sh and replaces this with GoReleaser
- Adds the use of krew-release-bot for automatically updating the krew
  release
- Removes the make target for build/build-plugin.sh

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>

* Fix: pin github actions stages with commit sha

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
2022-08-11 21:22:43 -07:00
Ismayil Mirzali
34a6ac59b7 Improve hack/generate-deploy-scripts.sh to no longer generate versioned manifests (#8877)
* feat: no longer generate versioned manifests

Updates the script to no longer generate multiple versioned deploy manifests.
The script will only generate the manifests for one given version of
Kubernetes.

See: https://github.com/kubernetes/ingress-nginx/issues/8824

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>

* fix: delete unnecessary versioned deploy manifests

See: https://github.com/kubernetes/ingress-nginx/issues/8824

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
2022-08-09 10:30:37 -07:00
James Strong
b47562b77c Merge pull request #8776 from strongjz/ci-unit-test
Trivy Image Scanning
2022-08-08 17:52:23 -07:00
James Strong
1746338147 remove on pushes
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 17:14:13 -07:00
James Strong
3a16c8fd44 stesting pathing 2022-08-08 17:08:21 -07:00
James Strong
2cc8c88c95 sarif upload issues
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 17:04:59 -07:00
James Strong
2f60f9567e testing output of sarif file
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 16:40:30 -07:00
James Strong
3e7a5739a8 fix permissions
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 16:39:32 -07:00
James Strong
835d41f860 it seems sarif upload needs git information
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 16:17:24 -07:00
James Strong
8e1758bdb5 need short tags
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 16:01:27 -07:00
James Strong
589101274e remove var
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 15:40:06 -07:00
James Strong
e9799b5118 add scanning to CI
Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-08-08 15:36:49 -07:00
Long Wu Yuan
4cfb8348ad updated to new images built today (#8896) 2022-08-08 11:40:19 -07:00
dependabot[bot]
bc4fb3e791 Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#8913)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 07:06:19 -07:00
dependabot[bot]
305bd3533b Bump github/codeql-action from 2.1.17 to 2.1.18 (#8914)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.17 to 2.1.18.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0c670bbf04...2ca79b6fa8)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 06:58:20 -07:00
dependabot[bot]
4317fc496b Bump github/codeql-action from 2.1.16 to 2.1.17 (#8894)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.16 to 2.1.17.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](3e7e3b32d0...0c670bbf04)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-01 05:52:29 -07:00
Long Wu Yuan
fc83b5b896 update to baseiamge built after CI changes (#8892) 2022-08-01 00:58:29 -07:00
Lien Li
322e31421e migrate ginkgo to v2 (#8826)
* Migrate ginkgo to v2

* Update test/e2e/annotations/ipwhitelist.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* Update test/e2e/annotations/modsecurity/modsecurity.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* Update test/e2e/settings/access_log.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* remove unnecessary blank line

* re-order packages

* less change

Co-authored-by: Jintao Zhang <tao12345666333@163.com>
2022-07-31 09:16:28 -07:00
Markus Engel
e72e1e872a add X-Forwarded-For in custom error template (#7892) 2022-07-28 03:23:10 -07:00
Jintao Zhang
aed95867d1 fix: change all cloudbuild jobs configuration (#8870)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2022-07-26 14:43:11 -07:00
James Strong
8ad1f7c2bd Update gce docs (#8866)
* update GCE doc with proxy protocol and some fixes

Signed-off-by: James Strong <strong.james.e@gmail.com>

* update gke docs

Signed-off-by: James Strong <strong.james.e@gmail.com>
2022-07-26 13:13:10 -07:00
Jintao Zhang
7b78bd5446 fix: change cloudbuild configuration (#8869)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2022-07-26 13:01:10 -07:00
Adrián Tóth
2e7a83ef9f version (commit sha) bump for dependency github.com/moul/pb due to dependency licence (#8841) 2022-07-26 12:57:10 -07:00
Jintao Zhang
10e1496803 Revert "fix: test-runner prow build" (#8865)
This reverts commit 3d3a572a54.
2022-07-24 18:40:58 -07:00
Jintao Zhang
8759ffee6b fix: test-runner prow build (#8864)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2022-07-24 09:22:57 -07:00
Ismayil Mirzali
d91ef27863 fix: make use of sed portable for BSD and GNU (#8859)
Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
2022-07-24 09:10:56 -07:00
Jintao Zhang
3d3a572a54 fix: test-runner prow build
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2022-07-25 00:08:53 +08:00
Long Wu Yuan
69e38f4ca6 update baseimage after bump of opentracing-cpp (#8861) 2022-07-24 09:00:57 -07:00
Long Wu Yuan
842f306273 changed baseimage sha & bumped ginkgo to 2.1.4 in test (#8860) 2022-07-23 18:54:57 -07:00
David Goffredo
c1e0c11c9a update dd-opentracing-cpp version in nginx build script (#8848)
* update dd-opentracing-cpp version in nginx build script

* idiomatic placement of "v" prefix in Datadog plugin version tag
2022-07-23 11:02:57 -07:00
Long Wu Yuan
201c14ae99 bump to alpine-3.16.1 (#8858) 2022-07-23 07:24:57 -07:00
qilong.qiu
2e55ab3b19 Add docs on Election ID to Multiple Ingress Controller guide (#8855) 2022-07-22 04:21:38 -07:00
Ricardo Katz
634ef5322a Move APIs to be used by both controller and configurer (#8854) 2022-07-21 17:32:48 -07:00
James Strong
8d88c8c18a Merge pull request #8853 from rikatz/move-more-utils
Move utils to better locations to help in decoupling
2022-07-21 18:24:42 -04:00
Ricardo Pchevuzinske Katz
12f767268f Move TCPProxy to pkg 2022-07-21 18:08:28 -03:00
Ricardo Pchevuzinske Katz
b210a1eb0b Move util to specific package location 2022-07-21 18:06:55 -03:00
Long Wu Yuan
3f13781f4b added fixes for make dev-env (#8804) 2022-07-20 17:57:44 -07:00