Commit Graph

6628 Commits

Author SHA1 Message Date
Jake Sanders
6e58dc1f4e
Add contour to e2e addons
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2022-03-01 15:05:19 +00:00
Jake Sanders
c08f46711a
Add contour, weed out some more references to v1alpha1
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2022-03-01 15:05:19 +00:00
Joakim Ahrlin
eb64e6494c
update deps and BUILD files
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-03-01 15:05:18 +00:00
Jake Sanders
c96d91d586
Update the sig-network Gateway API support to v1alpha2
Co-authored-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2022-03-01 15:05:17 +00:00
jetstack-bot
6e875d885f
Merge pull request #4905 from jakexks/fix-hardcoded-ctl-cert-inspect
Remove hardcoded cert from cmctl inspect secret unit tests
2022-03-01 14:13:35 +00:00
Jake Sanders
03748831a9
Remove hardcoded cert from cmctl inspect secret unit tests
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2022-03-01 13:11:31 +00:00
jetstack-bot
46a2ab5e4d
Merge pull request #4882 from maelvls/faster-build-containers
Make: faster "make all-containers" and rebuild on commit change
2022-02-25 17:06:00 +00:00
Maël Valais
b150828a5b make: bin/release-version needs to be rebuilt every time
We use FORCE instead of .PHONY because this is a real file that can be
used as a prerequisite. If we were to use .PHONY, then the file's
timestamp would not be used to check whether targets should be rebuilt,
and they would get constantly rebuilt.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 17:30:48 +01:00
Maël Valais
a85b1abd37 make: work around the multiple copies of each binaries with hard links
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 17:07:44 +01:00
Maël Valais
6e6667acac make: make sure bin/scratch/build-context/* are intermediate
That should make so 'make' removes these intermediate files.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 17:06:55 +01:00
Maël Valais
2b252b30ad make: explain why we have the "build-context" dir
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
Maël Valais
b33c50342c make: fix "release-version" description
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
Maël Valais
6e5bf073c2 make: explain why the target "bin/release-version" exists
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
Maël Valais
ac16285f2e make: asthetic, fix the spacing between targets
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
Maël Valais
c09dbb07e4 make: speed up 'docker build' with separate dir contexts
Previously, we had one .dockerignore that would do its best to only have
the binaries and licenses copied into the Docker (or nerdctl, or
buildah). Unfortunately, that meant it had to copy all of bin/server and
bin/cmctl, which could become quite large (I measured 1.6 GB).

Instead of relying on a single .dockerignore file, we copy the licenses
and binaries into a "scratch context" directory. The downside is that
all the binaries are in two different places (bin/server and
bin/scratch/containers). Note that we can't use symlinks because Docker
won't dereference them.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
Maël Valais
3f7bac6ad3 make: rebuild images when a different commit is checked out
When switching branches, the Go files may not change. But since the
images contain the commit hash, e.g.:

  cert-manager-controller-amd64:v1.7.0-beta.0-142-gfc0819af6

It is surprising when trying to deploy to Kind: the git commit that is
checked out does not match the commit hash of the image.

To avoid confusion, I added bin/release-version that gets updated only
when the currently checked out commit changes.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-25 16:38:53 +01:00
jetstack-bot
4f96242c28
Merge pull request #4887 from JoshVanL/controllers-context-test-ratelimit
Change controller context rate limiter test to ensure they are the same pointer
2022-02-24 14:54:43 +00:00
joshvanl
944f9d4103 Change controller context rate limiter test to ensure they are the same
pointer

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2022-02-22 09:15:10 +00:00
jetstack-bot
d998e37a44
Merge pull request #4873 from SgtCoDFish/importsfixes
Fix imports in a few files
2022-02-21 11:41:48 +00:00
jetstack-bot
546818d602
Merge pull request #4865 from SgtCoDFish/testtargets
make: Add unit + integration tests
2022-02-18 18:01:47 +00:00
Ashley Davis
6420aa4bfa
fix imports in a few files
this is according to our policy on organizing imports, see:
https://cert-manager.io/docs/contributing/coding-conventions/#organizing-imports

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-18 17:42:45 +00:00
Ashley Davis
dadb2aa8a2
log latest known tag when prepping integration tests
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-18 16:43:37 +00:00
Ashley Davis
a57110c6bb
Add targets for unit and integration tests in make
These lean heavily on `go test` for everything possible.

Also adds setup for versionchecker test in make, and a script for
extracting CRDs from templated rendered YAML files

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-17 14:48:57 +00:00
Ashley Davis
5972243f3e
add gotestsum, a tool for prettier log output
can also do junit xml output if we care about that

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-17 14:48:56 +00:00
Ashley Davis
9cf53f7e8e
accept files starting with ./ in versionchecker
also small no-op refactors

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-17 14:48:56 +00:00
Ashley Davis
eb6c29756d
Refactor CRD provisioning for integration tests
Falls back to looking in bin/crds if nothing has been provisioned in
bazel.

Removes "bazel.go" and consolidates in "paths.go", since the bazel name
will become obsolete and the functionality has changed

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-17 14:48:56 +00:00
Ashley Davis
75cabf5d42
add more Makefile "prelude" entries
inspired by https://clarkgrubb.com/makefile-style-guide

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-17 14:48:44 +00:00
jetstack-bot
eccd682533
Merge pull request #4864 from DiptoChakrabarty/newlint
fix comments to reduce golint issues
2022-02-16 17:44:37 +00:00
DiptoChakrabarty
ee069f2c45 fix comments to reduce golint issues
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
2022-02-16 17:28:08 +05:30
jetstack-bot
10c5d72279
Merge pull request #4792 from JoshVanL/controllers-server-side-apply-certificaterequests
Server Side Apply: Adds support for CertificateRequests controller to use SSA with Feature Gate
2022-02-16 10:57:37 +00:00
jetstack-bot
56d9423744
Merge pull request #4798 from JoshVanL/controllers-server-side-apply-certificatesigningrequests
Server Side Apply: Adds support for CertificateSigningRequest controllers to use SSA with Feature Gate
2022-02-16 10:20:37 +00:00
jetstack-bot
9887baac33
Merge pull request #4844 from batazor/chart-servicemonitor
Add additional check for servicemonitor
2022-02-15 20:43:36 +00:00
jetstack-bot
d55ca17456
Merge pull request #4854 from maelvls/makefile-changes
make/Makefile: fix message when CMREL_KEY isn't set
2022-02-15 20:05:54 +00:00
jetstack-bot
06bc9bbdef
Merge pull request #4860 from maelvls/make-user-1000
makefile: create images using UID=1000, like what Bazel does
2022-02-15 19:27:54 +00:00
jetstack-bot
50ce68364a
Merge pull request #4861 from maelvls/add-crds
make -f make/Makefile helm chart now includes templates/crds.yaml
2022-02-15 18:47:54 +00:00
Maël Valais
9df26703dd make -f make/Makefile helm chart now includes templates/crds.yaml
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-15 17:52:16 +01:00
Maël Valais
3817f7d023 makefile: create images using UID=1000, like what Bazel does
Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-15 16:29:07 +01:00
jetstack-bot
5f5ba9eff6
Merge pull request #4858 from SgtCoDFish/updatesecurity
Improve language in SECURITY file post-migration
2022-02-15 13:48:53 +00:00
jetstack-bot
4c91c6e8d9
Merge pull request #4857 from SgtCoDFish/updateusers
Rework USERS doc
2022-02-15 12:28:54 +00:00
Ashley Davis
c39de7fac7
improve language in SECURITY file post-migration
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-15 12:18:00 +00:00
Maël Valais
75b49ab641 make: fix message when CMREL_KEY isn't set
Double quotes are not interpreted by make, which meant that the variable
CMREL_KEY was set to '""' and was never empty, which means the $(error
...) block was never interpreted.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-02-15 11:50:36 +01:00
Ashley Davis
6bb43b0519
rework USERS doc
- renames Acoss -> Urssaf Caisse nationale
- uses a commit SHA rather than a branch for jetstack logo
- rewords things

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-15 10:26:30 +00:00
jetstack-bot
58c85db6f1
Merge pull request #4851 from JoshVanL/test-e2e-gateway-require-feature-gate
Require Gateway API feature gate for Gateway API tests. Add a helper func
2022-02-15 09:59:53 +00:00
jetstack-bot
0860a4141b
Merge pull request #4847 from akamac/patch-1
add name to the exposed metrics port
2022-02-14 14:02:52 +00:00
joshvanl
566582956a Adds Gateway API feature gate check to certificate suite conformance test
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2022-02-14 12:41:09 +00:00
joshvanl
d3052a81e4 Require Gateway API feature gate for Gateway API tests. Add a helper
func

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2022-02-14 11:51:15 +00:00
jetstack-bot
ad4264b6ec
Merge pull request #4841 from irbekrm/remove_annotation
Removes cainjector annotations from CRDs
2022-02-14 10:48:52 +00:00
jetstack-bot
2f4f8aea50
Merge pull request #4848 from JoshVanL/test-e2e-certificates-aof-check-feature
Adds check in additionaloutputformat e2e test suite for ServerSideApply feature gate
2022-02-14 10:11:52 +00:00
jetstack-bot
12a2148df3
Merge pull request #4794 from JoshVanL/controllers-server-side-apply-issuers
Server Side Apply: Adds support for [Cluster]Issuer controller to use SSA with Feature Gate
2022-02-11 19:37:01 +00:00
jetstack-bot
e3fd107481
Merge pull request #4849 from JoshVanL/devel-addon-cert-manager-feature-ssa
Adds ServerSideApply as a feature gate for the controller
2022-02-11 18:05:01 +00:00