Commit Graph

78 Commits

Author SHA1 Message Date
Tim Ramlot
29e834dedd
downgrade pebble
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-24 19:54:29 +02:00
Tim Ramlot
3fc1f8a580
upgrade all dependencies
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-24 19:54:25 +02:00
Cody W. Eilar
daf5b8f763 Honor KIND_CLUSTER_NAME for e2e-setup & clean
- Prior to this commit, regardless what was put for KIND_CLUSTER_NAME,
  the name of the cluster was always "kind". Furthermore, when running
  make clean, only clusters named "kind" were cleaned up. With a few
  minor fixes, this commit solves the problem so that kind clusters with
  different names can be used when running tests.

Co-authored-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Cody Eilar <cody@codyeilar.com>
2023-06-27 09:35:07 -06:00
irbekrm
acf07419f5 Fix a bug in helm chart where webhook had controller feature gates passed
This will break anyone who relied on featureGates field to pass feature gates to webhook- they will need to use the new webhook.featureGates field

Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-23 12:44:31 +01:00
Tim Ramlot
927cef3c22
switch to SSA for cainjector
Co-authored-by: joshvanl <vleeuwenjoshua@gmail.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-26 17:04:11 +02:00
Tim Ramlot
3ed79f9129
upgrade vault
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-25 09:22:19 +02:00
jetstack-bot
659530cf40
Merge pull request #5980 from inteon/dont_cache_local_images
Don't place locally built unversioned images in the cached downloads folder
2023-04-24 16:30:14 +01:00
Tim Ramlot
af60cb4b70
don't place locally built unversioned images in the cached downloads folder
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-24 11:07:23 +02:00
irbekrm
6315b7bf15 Adds kube 1.27 kind image, makes it default
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-04-24 08:50:39 +01:00
Richard Wall
1d200d04d3 Upgrade to sample-external-issuer v0.3.0
Includes a linux/arm64 Docker image

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-04-18 12:38:41 +01:00
Tim Ramlot
d602087446
remove Helm burst limit
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-11 14:51:18 +02:00
Tim Ramlot
7c037f2912
optimise QPS, Burst and concurrent-workers values for faster e2e tests
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-11 14:51:18 +02:00
jetstack-bot
54b7c232f5
Merge pull request #5924 from maelvls/gowork
Add a workspace file
2023-04-07 09:18:35 +01:00
Maël Valais
81b007fd91 make: uncompress pebble outside of the Go Workspace zone of influence
When building Pebble, Go was mistakenly thinking that the go.work is the
Go Workspace in which the Pebble module resides:

  main module (github.com/cert-manager/cert-manager) does not contain package github.com/cert-manager/cert-manager/_bin/downloaded/containers/amd64/pebble/pebble-ba5f81dd80fa870cbc19326f2d5a46f45f0b5ee3/cmd/pebble

At first, I thought that directories prefixed with _ would be ignored
(like what "go build" does), but it doesn't seem to work that way since
the go.work file is looked up recursively "upwards", not downwards.

The only workaround I could think of is to build Pebble outside of the
tree in which go.work resides.

Signed-off-by: Maël Valais <mael@vls.dev>
2023-04-06 16:50:17 +02:00
irbekrm
53918b5d6c Adds SecretsFilteredCaching alpha feature
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-03-22 09:03:16 +00:00
Ashley Davis
f3a051d94f
add license preludes for a variety of files
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-03-14 15:46:10 +00:00
jetstack-bot
6ba1dcaf43
Merge pull request #5768 from yulng/gatewayversion
Bump gateway-api version to 0.6.0
2023-03-10 12:10:05 +00:00
Maël Valais
138b75cd24 make: force the use of registry.k8s.io by ingressnginx
Signed-off-by: Maël Valais <mael@vls.dev>
2023-03-03 12:50:34 +01:00
Maël Valais
716bd2a59d e2e: update Contour to 1.24.1 and chart to 11.0.0
Signed-off-by: Maël Valais <mael@vls.dev>
2023-02-20 18:31:13 +01:00
Rayan Das
11071f59bb update k8s.gcr.io to registry.k8s.io
Signed-off-by: Rayan Das <rayandas91@gmail.com>
2023-02-18 22:50:16 +05:30
Richard Wall
b29404b094 Stop the internal variable E2E_SETUP_DEPENDENCIES being shown in the make help output
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-02-15 13:01:24 +00:00
Richard Wall
17ae96cf80 Make the best-practice configuration optional in E2E tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-01-31 14:09:37 +00:00
Richard Wall
a0683195f9 Add a secure-defaults Helm chart values file and use it in E2E tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-01-26 17:22:42 +00:00
Jan-Otto Kröpke
b952058775
[helm] expose enable-certificate-owner-ref and -dns01-recursive-nameservers as helm value
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2023-01-14 15:16:16 +01:00
jetstack-bot
2a7fabd5ca
Merge pull request #5554 from camptocamp/helm-add-acme-http01-solver-image-override-option
helm: add option to override ACME HTTP-01 solver image
2022-12-22 10:10:13 +00:00
Yann Soubeyrand
ea0bea9db0 helm: add option to override ACME HTTP-01 solver image
Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
2022-12-21 19:48:11 +01:00
Ashley Davis
31a3edf031
Bump version of contour helm chart + images
Also adds a note about how to update the helm chart version, in the
future

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-20 16:05:40 +00:00
Ashley Davis
1e419a468f
Enable + use k8s 1.26 for e2e tests by default
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-16 17:06:18 +00:00
jetstack-bot
a1391d6995
Merge pull request #5604 from maelvls/upgrade-vault-in-e2e
End-to-end tests: use Vault 1.12.1 instead of the outdated Vault 1.2.3
2022-12-13 14:50:30 +00:00
irbekrm
608c3a1df0 Bumps Contour Helm chart version
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-12-05 15:04:18 +00:00
irbekrm
bc70233256 Tests download Gateway installation bundle
Rather than whole gateway git repo

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-12-05 15:04:18 +00:00
Maël Valais
f4f72c16e6 e2e: use Vault 1.12.1 instead of the outdated 1.2.3
The main reason for bumping Vault's version is because 1.2.3 is not
compatible with the config parameter `disable_iss_validation`, which is
needed for accommodating the future tests [1] that rely on bound tokens
and static tokens.

For context, Vault 1.2.3 was released on Sep 9, 2019 [2] but
`disable_iss_validation` was only added on July 21st, 2020 in Vault
1.5.0.

Due to a breaking change that happened in Vault 1.5.0 [3] in which Vault
started loading the pod's token instead of using the same token (to be
reviewed) for authenticating. An alternative solution could have been to
prevent the service account from being mounted to the pod, but I figured
that having the two service accounts separated is a better practice.

[1]: https://github.com/cert-manager/cert-manager/pull/5502
[2]: https://github.com/hashicorp/vault/commit/c14bd9a2
[3]: https://github.com/hashicorp/vault/blob/main/CHANGELOG.md#150

Signed-off-by: Maël Valais <mael@vls.dev>
2022-12-02 16:36:16 +01:00
Ashley Davis
d2aab5f0d3
enable basicConstraints feature in e2e environments by default
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-11-10 13:47:30 +00:00
Ashley Davis
13c3507d1a
remove devel folder
In #5473 we saw a user being confused by devel's continued existance.
No bazel stuff will work any more and there's value in having just one
place where our e2e setup scripts are located, and that's now in `make`.

It was considered that we might keep some of these scripts but
converting them to call make commands, but that might be a lot of work
for minimal reward.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-10-22 18:47:33 -04:00
Martin Schimandl
e24ff641c6 Deploy contour from HELM chart instead of plain yaml
Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com>
2022-10-01 11:22:31 +01:00
Tim Ramlot
5802b3a963 use variables for binaries
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-26 07:43:17 +00:00
Tim Ramlot
0e8eb38d5c generate build targets dynamically
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-26 07:23:44 +00:00
Tim Ramlot
836793e7e3 upgrade gateway api to v0.5.0
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-08 08:52:59 +00:00
Ashley Davis
d7e57c9918
use order-only prerequisites where possible for tools
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-19 16:16:18 +01:00
Joe Bowbeer
1dc252e27e update kyverno version and policy
Signed-off-by: Joe Bowbeer <joe.bowbeer@gmail.com>
2022-07-06 10:11:37 -07:00
Ashley Davis
e18908fb56
Use variable for curl, add retries
This adds multiple retries on every attempt we make to use curl, which
should help to reduce flakes. Uses a $(CURL) variable where possible so
that we have the same invocation everywhere.

Also switches to using the more verbose curl arguments, in an attempt to
make it easier to reason about how curl is configured.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-06 12:38:14 +01:00
Ashley Davis
cdfcc63951
check gatewayapi SHA256SUM
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-04 15:02:36 +01:00
Ashley Davis
80bbe953bb
fix name of command in example comment
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-28 16:24:28 +01:00
Ashley Davis
35f2206404
change name of bin dir to _bin by default and make it a variable
This is needed because go and other tools will ignore directories
starting with "_" or "." but would treat a dir called "bin" as a regular
directory.

This in turn meant that when we vendored Go in bin, these tools would by
default scan the whole stdlib included with the bundled vendored go.

See https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns for details

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-21 16:34:26 +01:00
jetstack-bot
bbf2b58a5e
Merge pull request #5187 from irbekrm/cleanup_kind_config
Clean up kind config
2022-06-21 16:22:48 +01:00
irbekrm
ce55ddde2a Code review feedback
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-21 12:37:13 +01:00
jetstack-bot
448a0832bf
Merge pull request #5190 from irbekrm/kind_1_24
Bump kind, use upstream 1.24 image
2022-06-09 19:34:33 +01:00
irbekrm
accb40b4f9 Default kube version for test kind cluster to 1.24
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-09 16:54:14 +01:00
Alessandro Vermeulen
1da01211ee Feature gated support for using literal subjects in Certificates
Signed-off-by: Alessandro Vermeulen <alessandro.vermeulen@ing.com>
2022-06-08 20:50:00 +02:00
irbekrm
a76d85eab3 Allows kind to choose API version for kubeadm Cluster config
To be able to use single kind config for different Kubernetes versions

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-08 18:29:40 +01:00