Commit Graph

465 Commits

Author SHA1 Message Date
irbekrm
e58ca97245 Uses upstream kind image with kube 1.23
Also bumps kind image for kube 1.22

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-12-22 15:38:45 +00:00
James Munnelly
8f1fb874ed Run update-codegen in module mode
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-17 18:13:44 +00:00
James Munnelly
81f22fd49c Upgrade k8s.io dependencies to v0.23.1
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-17 16:27:47 +00:00
jetstack-bot
3b3e661d7f
Merge pull request #4669 from munnerz/update-runc
Update runc dependency to 1.0.3
2021-12-17 11:20:13 +00:00
jetstack-bot
0b8eba629c
Merge pull request #4554 from SgtCoDFish/maker
Makefile flow
2021-12-17 10:37:13 +00:00
James Munnelly
2041994b12 Update runc dependency to 1.0.3
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-16 15:45:25 +00:00
Richard Wall
36c4de9881 Update import paths
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-12-16 11:11:04 +00:00
Richard Wall
50f376130f Don't generate client code for deprecated API versions
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-12-15 16:29:51 +00:00
Ashley Davis
32d716654a
Add a makefile flow for building artifacts
Includes targets for:

- all "server" binaries, for all arches
- all containers for all server binaries for all arches
- all client binaries (kubectl plugin / cmctl) for all arches
- the cert-manager helm chart + signature
- the cert-manager static manifests + CRDs
- tools which bazel would download, with checksum verification
- (commented out) a signed SHA256SUM file for client binaries

Upgrades from the bazel flow include that:

- we use OS-specific base images rather than just using amd64 everywhere
- we easily add support for signing artifacts at build time
- we add ".exe" to the end of windows executables
- we add a zip file for windows executables, for easier consumption
- we concatenate YAML files more robustly
- staging a full release should be much faster
- hopefully, it's easier to change things!
- licenses are trimmed down to reduce bloat in images (the license
  bundle was 1.4MB in size alone)

Changes from the bazel flow include:

- containers no longer have a symlink to the binary at an unusual
  path, but instead just have the binary at a more predictable path
  (e.g. /app/cmd/webhook/webhook instead of
  /app/cmd/webhook/webhook.runfiles/com_github_jetstack_cert_manager/cmd/webhook/webhook_/webhook)

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-12-15 09:54:15 +00:00
Ashley Davis
6734e9b746
add scripts for sha256 sum calculations
hash.sh returns just the sha256sum of its input file

checkhash.sh uses ha.sh to get the sha256sum of its first argument and
then validates that the checksum matches the value provided in its
second argument

hash.sh isn't currently fully portable since sha256sum isn't present
by default on macOS, but it provides a single point around which we can
do hashing to validate checksums

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-12-15 09:54:15 +00:00
Ashley Davis
7a99e7c834
add script for writing make variables for base images
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-12-15 09:54:12 +00:00
Richard Wall
4eedf4fcfd Test conversion code using sample CRDs and remove conversion configuration from cert-manager CRDs
* Generate CRDs for the sample API types
* Allow alternative CRDs to be loaded into the envtest API server
* Override the conversion configuration of the CRDs
* Show webhook server logs in tests
* Simplify the loading of the test API CRDs
* Allow the ConversionHandler to be overridden in tests

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-12-14 17:33:22 +00:00
James Munnelly
1a96d9f32d config.cert-manager.io -> webhook.config.cert-manager.io
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-01 12:57:08 +00:00
James Munnelly
fb81666e56 Add config.cert-manager.io API group
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-11-26 14:12:54 +00:00
Jake Sanders
43583e13b3
Update bazel repos
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2021-11-23 16:58:59 +00:00
Ashley Davis
6f8ef26c07
add a script + flow for getting latest kind images
the script will need to be manually updated if we want to add a new
k8s version, but it should be trivial to do that

the actual kind image SHAsums aren't updated, so that the addition of
the script can be separate from the act of updating the images

also adds a make target for creating a kind cluster with CI deps

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-11-08 16:58:16 +00:00
irbekrm
edd7304c6c Bumps timeout to wait for cm api in upgrade test
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-11-02 11:19:05 +02:00
Ashley Davis
bfecde8116
update keystore-go library version
Following the release of cert-manager v1.6.0, it was observed that an
update to the keystore-go library was backwards-incompatible; it
introduced a 6-character minimum length on passwords which wasn't
previously in force.

This led to https://github.com/pavel-v-chernykh/keystore-go/issues/30
which in turn led to https://github.com/pavel-v-chernykh/keystore-go/pull/31

This commit bumps to use the new version, which by default doesn't have
a min password length

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-10-28 10:10:45 +01:00
James Munnelly
b2353bee4b Update codegen script to remove workarounds
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-10-21 15:43:50 +01:00
James Munnelly
e7dea9f2a2 Replace all references to pkg/internal with internal
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-10-21 12:27:04 +01:00
irbekrm
264c45c276 Identifies the version to upgrade to by commit
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-10-18 13:54:22 +03:00
irbekrm
c9f1a5dbdf Fix the script that finds last published release
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-10-18 08:55:57 +03:00
irbekrm
598ed35e4a Uses go/crypto ListCertAlternates function to fetch alternative certificate chains
This allows us to use upstream go/crypto again instead of our own fork

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-10-07 15:21:26 +01:00
Richard Wall
cf3092f8c5 ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-10-07 09:16:16 +01:00
jetstack-bot
f41310a82d
Merge pull request #4485 from munnerz/m1-support
Add support for building all Bazel targets on M1 macs
2021-10-01 14:03:35 +01:00
Richard Wall
38fbd6cf4f ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-10-01 12:41:15 +01:00
James Munnelly
093313390b Add support for building all Bazel targets on M1 macs
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-10-01 11:48:22 +01:00
Richard Wall
00e0090ce7 ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-10-01 10:22:35 +01:00
irbekrm
81bdabf67a Code review feedback
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 17:23:42 +01:00
irbekrm
7319d3392a Load kyverno image with Bazel
So that we don't pull the same image for each test run.

Also run helm install with --debug so that it outputs more information.

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 10:14:26 +01:00
irbekrm
577757f282 Adds the new format of Go build tags to verify_boilerplate
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 10:08:30 +01:00
irbekrm
cb6a746726 Runs ./hack/update-all.sh
New format of Go build tags gets added

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 10:08:19 +01:00
irbekrm
0889570722 Ensures conversion code temp workaround works for Go 1.17
Also refactor

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 10:08:09 +01:00
irbekrm
0679c33c3f Update kube libraries, regenerate go.mod/go.sum
Updates go.mod for Go 1.17

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-09-30 10:07:59 +01:00
jetstack-bot
fcf379d6e9
Merge pull request #4428 from mol-george/issue-4189-keystore-upgrade
Issue 4189 keystore upgrade
2021-09-13 10:45:56 +01:00
jetstack-bot
cd1f5a3d94
Merge pull request #4400 from irbekrm/arm
Update and verify scripts can be run from darwin-arm64
2021-09-03 19:14:22 +01:00
George Moldoveanu
0463681244
updates go deps and bazel files
Signed-off-by: George Moldoveanu <mol.george@gmail.com>
2021-09-02 23:45:11 +01:00
Nicolas Degory
d2209df85a Apply suggestions from code review
Co-authored-by: Richard Wall <wallrj@users.noreply.github.com>
Signed-off-by: Nicolas Degory <nicolas.degory@gmail.com>
2021-08-29 09:24:59 -07:00
Nicolas Degory
37b03ab5db bump chart testing version
Signed-off-by: Nicolas Degory <nicolas.degory@gmail.com>
2021-08-29 09:21:47 -07:00
irbekrm
7a7d853d9f Add a comment about staticcheck script
Also shift the correct number of params
and remove and unused def.

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-23 08:58:20 +01:00
irbekrm
25303b79c9 Use yq instead of jq
Because yq releases builds for darwin/arm

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-23 07:08:51 +01:00
irbekrm
ba3864e3c9 Removes the unused buildozer tool
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-22 08:58:35 +01:00
irbekrm
f7ee62e701 Pull dependencies for darwin/arm
Also bumps a few dependency versions

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-21 09:21:06 +01:00
jetstack-bot
c24c0889bf
Merge pull request #4390 from irbekrm/verify_crd_status
Verify crd status
2021-08-19 10:22:08 +01:00
Irbe Krumina
e43db8a426 Code review feedback.
Co-authored-by: Ashley Davis <SgtCoDFish@users.noreply.github.com>
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-19 09:43:45 +01:00
irbekrm
04b584e698 verify-crds script now verifies that the CRDs don't contain status field
This is necessary because some CD tools don't accept resource configs with predefined status fields, but controllergen currently adds this field when a CRD yaml is generated

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-19 06:19:37 +01:00
irbekrm
b8e2846901 Adds a Bazel rule to install yq
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-18 18:36:01 +01:00
Jake Sanders
682b3f108e
Fix sed command on Darwin
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2021-08-18 16:09:14 +01:00
Inteon
b13eb0483b
upgrade deps to latest version (kube v0.22.0)
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-08-13 23:38:59 +02:00
irbekrm
97a730f7fd Ensure the upgrade tests always install vanilla cert-manager
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-08-11 08:02:57 +01:00