Commit graph

6167 commits

Author SHA1 Message Date
Ricardo Katz
23b922044b Prepare for v1.0.3 release (#7740) 2021-10-03 15:15:07 -07:00
Alan
3d61b3cbcf fix overlap check when ingress is configured as canary (#7719) 2021-10-03 14:05:07 -07:00
Zackky Muhammad
8de035f227 docs(index): fix typo helm value example (#7734) 2021-10-03 13:59:07 -07:00
Erick
423cc100b2 Add a note to README.md with context on CVE-2021-23017 patch (#7735) 2021-10-03 07:19:06 -07:00
Konstantin Chukhlomin
c0540e8ebb Update docs/example/rewrite (sudden stickyingress) (#7733) 2021-10-01 06:11:23 -07:00
Noah Ispas
13d301dda4 add issue triage information (#7658)
* add issue triage information

* change requests

* change requests from PR
2021-09-30 07:04:09 -07:00
Ricardo Katz
13d2b1a41e Fix selector for shutting down Pods (#7727)
* Fix selector for shutting down Pods

* Add autogenerated labels for daemonset in exception

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

Co-authored-by: Jintao Zhang <tao12345666333@163.com>
2021-09-29 21:10:09 -07:00
Ricardo Katz
a7a73e6e83 Fix ingress without class in kind deployment (#7726) 2021-09-29 15:10:45 -07:00
Long Wu Yuan
6d0f4f4a1e added example to install multiple instances of controller (#7718) 2021-09-28 09:08:43 -07:00
dependabot[bot]
e621cabca5 Bump github.com/opencontainers/runc from 1.0.1 to 1.0.2 (#7715)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Commits](https://github.com/opencontainers/runc/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  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>
2021-09-28 09:06:44 -07:00
dependabot[bot]
8c1fcc4ee3 Bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.1 (#7713)
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.4.9 to 1.5.1.
- [Release notes](https://github.com/fsnotify/fsnotify/releases)
- [Changelog](https://github.com/fsnotify/fsnotify/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.4.9...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
  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>
2021-09-28 09:02:43 -07:00
Claudiu Belu
90541b80a8 Updates E2E test images registry (#7704)
We're moving away from google.com gcp projects. These images are now on community-owned infra.
2021-09-27 09:42:18 -03:00
John Losito
f5a0b53922 Allow dependabot to check go modules (#6873) 2021-09-27 05:19:36 -07:00
Ricardo Katz
c6c2e5ca97 Release v1.0.2 (#7709)
* Release v1.0.2

* Apply suggestions from code review

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

* Fix changelog

Co-authored-by: Jintao Zhang <tao12345666333@163.com>
2021-09-27 00:25:27 -03:00
Ricardo Katz
70e171936f Tag release v1.0.2 (#7707) 2021-09-26 17:50:23 -07:00
Ricardo Katz
cb14e18157 Update base nginx image to the corrected version (#7705) 2021-09-26 16:24:23 -07:00
Fredrik Enestad
cd4105aafa add a metric with build info (#7660) 2021-09-26 11:02:22 -07:00
Léopold Jacquot
a884169513 add canary backend name for requests metrics (#7696) 2021-09-26 10:54:22 -07:00
Austin Wise
3fe2c20f92 Tweak documentation formating about deprecated apiVersion values. (#7663)
* Tweak documentation formating about deprecated `apiVersion` values.

* retweak after rebase
2021-09-26 10:48:22 -07:00
Mateusz Gozdek
a5ee23fef8 images/kube-webhook-certgen/rootfs: add support for patching APIService objects (#7641)
* images/kube-webhook-certgen/rootfs/pkg/k8s: return err from functions

Initially only from some to preserve existing behavior.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: make patching return error

So we don't call log.Fatal in so many places, which makes code testable.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: require context

So initialize top-level contexts in tests and CLI, then pass them around
all the way down, so there is an ability e.g. to add timeouts to patch
operations, if needed and to follow general conventions.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: support patching APIService

APIService object is very similar to MutatingWebhookConfiguration and
ValidatingWebhookConfiguration objects, so support for patching it
shouldn't be too much of a burden.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: use new patch API

So old function PatchWebhookConfigurations can be unexported and CLI can
be extended to also support patching APIService.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: unexport old patch function

PatchObjects should be now used instead.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: add .gitignore

To ignore manually built binaries during development process.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: test patching

By adding a PatchConfig and Patch function, it is now possible to test
logic of flag validation, which was previously tied to CLI options.

This commit adds nice set of tests covering existing logic.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: improve formatting

Those strings will be changed anyway in future commits, so at first we
can properly capitalize used names.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: support patching APIService

As logic for creating a CA certificate and patching an object is almost
the same for both webhook configuration and API services, this commit
adds support to kube-webhook-certgen CLI to also patch APIService
objects, so they can be served over TLS as well.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: pass failure policy by value

k8s.k8s.patchWebhookConfigurations() always dereferences it and we do
not do a nil check, so the code may panic in some conditions, so it's
safer to just pass it by value, as it's just a wrapped string.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
2021-09-26 10:44:22 -07:00
Ricardo Katz
73b9f7fe99 Fix resty balancer checksum and location (#7703) 2021-09-26 10:28:21 -07:00
Jintao Zhang
858280d9c7 fix: upgrade lua-resty-balancer to v0.04 (#7702)
it has two important bugfix:

1. should force convert weight to a number since it may cause dead loop
   when weight is a string type "0".
2. out-of-bounds memory writing may happen in chash_point_sort.

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2021-09-26 08:50:23 -07:00
Noah Ispas
aa9f1136f5 add 0.49.1 to changelog (#7692) 2021-09-24 04:03:23 -07:00
pierre villard
e70f22f427 Correct a mistake (#7690) 2021-09-24 04:01:24 -07:00
Ricardo Katz
ce1765db2b Change legacy branch in GH action 2021-09-22 09:30:44 -03:00
Noah Ispas
8e3c7f482e preparing release v1.0.1 (#7681)
* preparing release v1.0.1

* update shas to newest promoted image

* update changelog of helm chart

* change requests from PR
2021-09-22 05:12:02 -07:00
Ricardo Katz
2807e99f28 Trigger v1.0.1 release (#7679) 2021-09-21 04:58:23 -07:00
Ricardo Katz
65a09509de Change enable-snippet to allow-snippet-annotation (#7670)
Signed-off-by: Ricardo Pchevuzinske Katz <rkatz@vmware.com>
2021-09-20 16:52:23 -07:00
Noah Ispas
85b85cf086 add option for documentiony only to pr template (#7672) 2021-09-20 08:54:11 -07:00
Long Wu Yuan
3b99427fa2 added example multiple controller install to faq (#7668) 2021-09-20 03:28:10 -07:00
Ricardo Katz
ad0fecadbb Add option to force enabling snippet directives (#7665)
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2021-09-19 12:40:08 -07:00
Jennifer Kirsch
9cf681ebc4 Replace kube-lego docs with cert-manager (#7659)
Since kube-lego has not been maintained in quite a while,
I thought it would be best to remove the documentation about it
and replace it with information about cert-manager.
2021-09-19 11:06:08 -07:00
Stephen Augustus
fd4676b5a8 Changelog.md: Update references to sigs.k8s.io/promo-tools (#7656)
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-09-18 04:10:08 -07:00
iugastefan922
19f32edb1f additional info for the custom-headers documentation page (#7603)
* added another documentation example

* added end of file newline

* Revert "added end of file newline"

This reverts commit 2d196ffba3.

* added another documentation example
2021-09-16 14:23:27 -07:00
Mateusz Gozdek
a47b1c83f1 images/kube-webhook-certgen/rootfs: improvements (#7630)
* images/kube-webhook-certgen/rootfs/README.md: remove trailing whitespace

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: improve code formatting

Automatically using gofumpt.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: remove executable bits from files

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: remove unreachable code

log.Fatal(|f) will alread call os.Exit(1), so this code is never
reached.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: fix unit tests

Right now they fail as everything else migrated from using v1beta1 to
v1.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs: create clientset in cmd package

So one can easily mock the client, without touching unexported parts of
the code and to soften the dependency between CLI code (kubeconfig
path).

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/cmd: simplify bool logic

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: improve formatting

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: improve variable names

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: refactor a bit

Move patching logic to separate functions.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>

* images/kube-webhook-certgen/rootfs/pkg/k8s: fix error log messages

In patchMutating() function, log messages were waying still patching
validating webhook.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
2021-09-16 13:59:26 -07:00
bishtsaurabh5
a9b6af0d57 Add github action for building images (#7636)
- Add github action test-image-build
- Filters the images folder
and checks for changes
- If the changes are done then the
make build would be performed
2021-09-16 13:53:27 -07:00
Jintao Zhang
a5f5807d59 Update e2e-test-runner image (#7648)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2021-09-16 10:01:46 -07:00
Jintao Zhang
1ec0592221 Update NGINX base image to v1.19 (#7643)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2021-09-16 05:07:46 -07:00
Ricardo Katz
b5fb2a2c5d Add security contacts (#7642) 2021-09-15 12:24:12 -07:00
agile6v
09756e41d4 fix typos. (#7640) 2021-09-15 11:30:12 -07:00
Jintao Zhang
1d496a52cb Downgrade nginx to v1.19 (#7639)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2021-09-15 11:08:11 -07:00
Renato Britto Araujo
b52ce9bf98 Add e2e tests for secure cookie annotations (#7575) (#7619)
Co-authored-by: Agoretti <andremotta96@gmail.com>

Co-authored-by: Agoretti <andremotta96@gmail.com>
2021-09-12 13:10:07 -07:00
Jennifer Kirsch
c823c7daae Only build nginx-errors for linux/amd64 (#7625)
* Fix wrong image location used in nginx-errors example config

* Only build nginx-errors for linux/amd64
2021-09-12 10:08:06 -07:00
Ricardo Katz
8075d0598d Add new flag to watch ingressclass by name instead of spec (#7609) 2021-09-10 10:14:01 -07:00
Ricardo Katz
60581e396a Change the cloudbuild timeout 2021-09-09 09:17:26 -03:00
Ricardo Katz
e1e66bd143 Rename cloudbuild.yml to cloudbuild.yaml 2021-09-09 09:00:31 -03:00
Jennifer Kirsch
8cf72e3af2 Fix old tag of custom error pages used in example (#7460)
* Fix old tag of custom error pages used in example

* Move nginx-errors to k8s registry

Since the setup for the custom-error-messages was really different from
the other images that are build using cloudbuild, I changed it to "fit
in better"

* Use Go version 1.17 for custom-error-pages

Since Go >= 1.16 required the use of modules, I also initialized the module using the name k8s.io/ingress-nginx/custom-error-pages
2021-09-09 04:38:11 -07:00
Kundan Kumar
68383b8425 Added command to get Nginx versionq! (#7577) 2021-09-09 03:30:11 -07:00
Bhumij Gupta
0df7bc93d8 Helm notes outputs non nil value for ingress.class annotation (#7611)
Signed-off-by: bhumijgupta <bhumijgupta@gmail.com>
2021-09-08 02:17:20 -07:00
Renan Gonçalves
3a03d7c601 Allow the usage of Services as Upstream on a global level (#7469)
It is possible to change this behavior on an ingress level, which works
well when you only have a few of them. When running several dozen
ingress and with a high change rate of running pods it makes it easier
to define this configuration on a global level.

This change is completely backwards compatible, only adding the
possibility of defining a new key in the configmap.
2021-09-07 12:47:15 -07:00