Commit Graph

528 Commits

Author SHA1 Message Date
Ashley Davis
cdcfd552ff
add make target for updating base images
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-11-04 16:31:20 +00:00
Ashley Davis
3c3afa6afa
don't write to devel folder when updating kind images
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-10-21 13:10:37 +01:00
irbekrm
aa886e78d6 Adds a script to quickly generate latest SHAs
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-10-06 14:29:24 +01:00
Tim Ramlot
519e2d1337 add kind 1.25
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-09-22 15:29:10 +02:00
jetstack-bot
88bda66693
Merge pull request #5345 from inteon/ginkgo_v2
Upgrade to Ginkgo v2
2022-08-04 21:06:15 +01:00
jetstack-bot
b52d116fa4
Merge pull request #5363 from inteon/gotestsum_junit
Output junit xml using gotestsum
2022-08-04 12:46:14 +01:00
Tim Ramlot
ba9a6bd5b3 add pruning logic for gotestsum junit xml output
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-04 11:15:18 +00:00
Tim Ramlot
9897f2355c upgrade ginkgo to v2
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-04 10:16:29 +00:00
Tim Ramlot
aabe2fc5d1 simplify static manifest generation
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-04 06:54:11 +00:00
Ashley Davis
fb231ab641
Remove bazel 🎉
This removes all .bazel and .bzl files, and a bunch of scripts relating
to bazel, now that it's been entirely replaced.

There are still a few places where traces could be removed, but this
removes the brunt of the bazel stuff that remains.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-26 11:38:50 +01:00
irbekrm
7820c37c7d updates bazel deps
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-07-06 11:49:53 +01:00
joshvanl
328ea2b632 Change all scripts #!/bin/bash -> #!/usr/bin/env bash. Also changes same
for Makefile SHELL

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2022-07-04 14:49:34 +01:00
jetstack-bot
5a4e7654d4
Merge pull request #5097 from lucacome/bump-k8s-deps
Bump k8s.io dependencies
2022-07-04 14:44:45 +01:00
Luca Comellini
aaa513de00
Bump k8s.io dependencies
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-06-30 15:16:14 -07:00
Ashley Davis
ca35696244
add make-based upgrade test
This uses cmctl instead of kubectl_cert-manager, uses make instead of
bazel and fixes an incorrect container name in
test/fixtures/upgrade/overlay/cainjector-ops.yaml

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-30 22:35:39 +01:00
Ashley Davis
642161a963
make update-all & ensure bazel-only targets are runnable
this allows us to maintain the bazel build files until they're removed,
but tries to avoid accidentally encouraging their use

`make update-all` implementes a non-bazel version of
`hack/update-all.sh`, with `hack/update-all.sh` now calling make but
also doing the bazel stuff it used to.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-30 12:47:30 +01:00
Ashley Davis
358785fb3d
remove now-replaced tests from hack/BUILD.bazel
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-28 09:28:01 +01:00
Ashley Davis
f8c1ebe2d8
add make verifier / updater for LICENSES
Uses go-licenses to create a CSV file which replaces LICENSES.

The replacement is much smaller and easier to parse for both humans
and for machines.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-28 09:27:54 +01:00
Ashley Davis
3c33140c11
remove bazel tests which are run in make
There's no need to run these twice in our presubmit tests

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-27 13:25:25 +01:00
Ashley Davis
eccde015ac
add CRD generation to makefile, replacing bazel
- includes a run of make update-crds which causes some trivial changes
- updates version of YQ to latest
- makes hack/update-crds.sh just call make
- makes hack/verify-crds.sh just call make
- moves functionality of hack/verify-crds.sh to hack/check-crds.sh,
  using the makefile for generating alternative CRDs for comparison
- removes the bazel test associated with CRDs

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-27 13:25:18 +01:00
Ashley Davis
22c0f45e22
add a make variant for codegen tools
- runs "make update-codegen"
- adds codegen verification to make tests
- changes hack/(update|verify)-codegen.sh to just call make
- removes bazel codegen test so it's not automatically run in CI

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-24 09:58:01 +01:00
Ashley Davis
c97914a40c
Don't include new bindir when generating bazel files
This could pick up files from vendored go and include them in bazel

We can't (easily) ignore "bin" also since we have other dirs called
"bin" which we don't want to ignore.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-21 16:34:31 +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
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
36984671dd Adds a couple comments and TODOs
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-09 16:54:38 +01:00
irbekrm
cdc8c1ce36 Bumps kind to 0.14, use upstream kube 1.24 image
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-09 16:53:20 +01:00
Ashley Davis
9b9e8015b8
prefix failed goimports files to make errors clearer
also uses tabs everywhere in the file rather than a mix

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-09 15:49:10 +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
10e117c59d Removes 1.18 and 1.19 kind images
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-08 13:32:48 +01:00
Luca Comellini
091549620b
Bump Go to 1.18
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-06-02 15:50:13 -07:00
Ashley Davis
a691a0807b
maintain a single source of truth for updating kind images
this removes the update functionality from make/cluster.sh in favour of
the simpler logic in hack/latest-kind-images.sh

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 16:35:25 +01:00
Ashley Davis
e41dc00956
use a version sort for proper version comparisons
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 15:22:27 +01:00
Ashley Davis
a15b662b92
use command -v over which
command is more portable

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 15:22:02 +01:00
Ashley Davis
7a7a3951ed
ignore bin directory in various verification scripts
these scripts would choke in various ways on a vendored copy of go

ignoring `bin` is the correct behaviour anyway, and should speed up
running the scripts

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 12:18:35 +01:00
Ashley Davis
c205b4d74f
make verify-chart-version respect CTR in makefile
this allows podman to be used instead of docker

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 12:10:36 +01:00
irbekrm
689ddcafa2 Cleanup + a couple TODOs
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-10 12:05:02 +01:00
irbekrm
66aef8d582 Bumps kind v0.11.1 -> v0.12.0
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-09 17:45:11 +01:00
Irbe Krumina
1d917ef311 Revert "Use Apply instead of Update to modify resources in tests"
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-03 11:31:47 +01:00
jetstack-bot
eb76f331ad
Merge pull request #5077 from irbekrm/tests_apply
Use Apply instead of Update to modify resources in tests
2022-04-29 13:23:00 +01:00
jetstack-bot
3897556ccc
Merge pull request #4721 from Dean-Coakley/remove-securityContext-enabled
Remove `securityContext.enabled` from helm chart
2022-04-28 17:39:24 +01:00
irbekrm
46233e5012 ./hack/update-all.sh
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-04-28 14:51:44 +01:00
Luca Comellini
931adfb493
Bump golang.org/x/crypto to v0.0.0-20220411220226-7b82a4e95df4
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-04-26 16:47:10 +02:00
Ashley Davis
7ea4496dcb
Gracefully handle 404s when fetching old CRDs
If we're in the middle of a cert-manager release we'll have a git tag
created for that release, but won't have a GitHub release created yet.
That means that an attempt to download old CRDs for our versionchecker
test will fail for that version, with a 404 error.

An alternative approach would be to use the GitHub API to query for
existing non-draft releases - but that introduces a new point of failure
whereby we can easily hit a rate limit, or else introduces the need for
a GitHub API token.

The GitHub API also has the issue that it doesn't present every release
in one API call, which complicates fetching releases using curl and uses
even more rate-limit capacity.

The approach here is simple; we ignore tags for which the release 404s,
download manifests for which the release gives a 200, and bubble up any
other errors.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-03-30 15:16:17 +01:00
jetstack-bot
dc24503939
Merge pull request #4958 from irbekrm/tsig_provider
Use our own implementation of miekg/dns.TsigProvider interface
2022-03-22 12:18:51 +00:00
irbekrm
4c901aefab Code review comments
Adds test conditions to certs via patch API call instead of update to avoid conflicts

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-03-21 07:33:51 +00:00
irbekrm
3a21f961ca Use our own implementation of github.com/miekg/dns.TsigProvider interface
To allow us to both upgrade the upstream library and keep supporting HMACMD5 as RFC2136 TSIG algorithm although it was deprecated in the upstream library

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-03-21 07:09:29 +00:00
irbekrm
587e02cee9 Replaces dns v0.41 -> v0.34
This is so as to avoid dropping support for HMacMD5 value for issuer.spec.acme.solvers.dns01.rfc2136.tsigAlgorithm

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-03-17 20:14:55 +00:00
irbekrm
ad746fae10 Bumps a bunch of deps
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-03-17 20:14:55 +00:00
Ashley Davis
a30540806e
minor verify-goimports tweak + document future improvements
checks args for a better error message, and writes informational
messages to stderr

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-03-05 16:37:26 +00:00
Ashley Davis
89d7742c56
add verify-errexit target to ci presubmits
Also modifies the script to run without bazel, and tweaks it so that
it'll detect errors in itself too.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-03-05 16:37:26 +00:00