Commit Graph

142 Commits

Author SHA1 Message Date
James Munnelly
793f9677ae Use default Golang ciphersuites if none are specified
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-31 09:32:21 +01:00
James Munnelly
e0db0296d2 Run webhook on random port during integration tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 14:26:05 +01:00
James Munnelly
5036693fcf Add support for dynamic secret source to webhook binary
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 14:25:54 +01:00
James Munnelly
577e53b9bb webhook: create 'tls' package containing certificates sources + tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 14:25:54 +01:00
jetstack-bot
e328cfd5aa
Merge pull request #2708 from munnerz/fix-image-uid
Fix issue causing docker images to use UID 0 (root)
2020-03-17 09:51:25 +00:00
James Munnelly
0935277f3d Remove old 'image' targets and update to consistently use //build targets
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-17 09:47:01 +00:00
James Munnelly
053e3fc74c Refactor webhook cmd to be reused
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-13 15:30:57 +01:00
jetstack-bot
f9c23dcb8f
Merge pull request #2556 from munnerz/release-tars
Add release-tars targets to construct cert-manager release artifacts
2020-02-10 16:10:13 +00:00
Will Thames
e1bf54d0e3 Add cipher suites configuration and defaults
Add a --tls-cipher-suites command line flag and set to sensible
defaults.

Signed-off-by: Will Thames <will@thames.id.au>
2020-02-03 22:57:59 +10:00
James Munnelly
22f4f1e1f2 Add release-tars targets to construct cert-manager release artifacts
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-01-30 21:02:58 +00:00
James Munnelly
c27ccd78d7 Update webhook validation handler for validation registry
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-01-20 10:05:54 +00:00
James Munnelly
f3a58ed991 webhook: register pprof http handlers
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-12-10 16:54:15 +00:00
jetstack-bot
1793e7b573
Merge pull request #2236 from munnerz/covered-images
Add Bazel image targets with coverage enabled
2019-11-14 10:54:09 +00:00
James Munnelly
dbd92f88ef Add conversion webhook handler
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-10-24 19:41:55 +01:00
James Munnelly
ed284084b3 Refactor validation handler to support updates
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-10-17 13:27:08 +01:00
James Munnelly
ca9e8f33b2 Clean up webhook handler interface
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-10-17 12:56:13 +01:00
James Munnelly
da8bf264fd Use standard golang http server for webhook
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-10-17 12:29:34 +01:00
James Munnelly
5057da1b89 Add Bazel image targets with coverage enabled
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-10-16 08:59:24 +01:00
James Munnelly
f466aeea88 Fix govet warnings
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-27 12:07:08 +01:00
James Munnelly
fad13bfce1 Move image macro into hack/build
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-27 12:07:08 +01:00
James Munnelly
973f4aa424 Update codebase for external dependencies
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-26 12:52:43 +01:00
James Munnelly
58754abf37 Refactor codebase for v1alpha2
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-20 16:22:43 +01:00
James Munnelly
00410e3831 Switch to use new webhook handlers
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-21 13:10:31 +01:00
James Munnelly
d56b6be948 Move API webhook validation package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-13 20:41:53 +01:00
James Munnelly
5a096b0b07 Fix lint failures and remove image target manual tag
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-02 18:26:12 +01:00
James Munnelly
de34f0410d Use binary image targets to avoid building multiple architectures all the time
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-02 17:29:32 +01:00
James Munnelly
fd2dd16f75 Change bazel build to only build for current --platform
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-02 16:10:05 +01:00
James Munnelly
500d8fbeb7 Create image bundles in multiarch_image target
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-05-03 11:16:25 +01:00
James Munnelly
2f30258f0e Switch to klog
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-22 12:34:02 +00:00
Daniel Morsing
af019ad1e8 add log line when restarting
Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-18 16:41:22 +00:00
Daniel Morsing
175f13e136 watch TLS cert file
The admissions server middleware we use doesn't want to do
hot-reloading, so instead, watch the file and if it changes, have
the k8s server restart the webhook

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-18 15:56:48 +00:00
James Munnelly
149cbb30a7 Add arm32 and arm64 bazel image targets
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-08 15:10:45 +00:00
James Munnelly
0fcc0c666c Update copyright header year
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 15:07:55 +00:00
James Munnelly
17c5a2e21c Update BUILD.bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-07 16:22:25 +00:00
James Munnelly
719dd915d1 Re-enable webhook during e2e tests and fix panic on start
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-07 16:06:49 +00:00
jetstack-bot
ac80ed82f1
Merge pull request #1046 from munnerz/logs-pkg
Revert "Remove pkg/logs package"
2018-11-07 09:48:55 +00:00
James Munnelly
175e90c158 Revert "Remove pkg/logs package"
This reverts commit b6f854f849.

Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 20:05:32 +00:00
James Munnelly
2541b10e52 Stamp docker images with current timestamp using Bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 19:18:15 +00:00
Benjamin Staffin
e7e2f28584 webhook: Fix "logging before flag.Parse" errors
Fixes #932

Signed-off-by: Benjamin Staffin <benley@gmail.com>
2018-10-22 20:46:44 -04:00
James Munnelly
64f02f6004 Add docker image building rules
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:52 +01:00
James Munnelly
db65d6a170 run //hack:update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:48 +01:00
James Munnelly
91bec0909c Add validation webhook
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2018-08-20 12:34:05 +01:00