Tim Ramlot
9db044b232
fix gci linter
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-04-29 13:47:25 +02:00
Richard Wall
19ade4b79e
Replace all calls to RandStringBytes and RandStringRunes
...
With k8s.io/apimachinery/pkg/util/rand#String instead
Signed-off-by: Richard Wall <richard.wall@venafi.com>
2024-01-02 15:41:07 +00:00
Tim Ramlot
2dc22bc8e7
add extra comment
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-25 15:58:51 +02:00
Tim Ramlot
eac230f93e
add more test cases and fix typo
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-22 12:44:52 +02:00
Tim Ramlot
860df2294b
fix feedback: make hash secure
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-21 13:24:07 +02:00
Tim Ramlot
6006182435
add uniqueness check for names util
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-20 20:28:00 +02:00
Tim Ramlot
fa2d9333e3
BUGFIX: CertificateRequest short names must be unique.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-20 14:51:24 +02:00
Tim Ramlot
3938c75850
improve (Extended)KeyUsage parsing to be more consistent
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-06-26 10:06:55 +02:00
Tim Ramlot
93caba980e
apply go fmt for go1.19
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-08-04 09:51:57 +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
Ashley Davis
3a055cc2f5
rename all uses of github.com/jetstack/cert-manager
...
This was done by running the following command twice:
```bash
grep -Ri "github.com/jetstack/cert-manager" . | \
cut -d":" -f1 | \
sort | \
uniq | \
xargs sed -i
"s/github.com\/jetstack\/cert-manager/github.com\/cert-manager\/cert-manager/"
```
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-02 09:08:31 +00:00
DiptoChakrabarty
b0e2264b60
add go linters
...
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
2022-01-13 00:12:15 +05:30
Krzysztof Ostrowski
e35cb361c8
add comments to satisfy linter
...
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Co-authored-by: Irbe Krumina <irbekrm@gmail.com>
2021-11-04 18:15:46 +01:00
Inteon
fd20a0584a
Add explicit WithObservedGeneration versions of the Wait and Condition functions
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-06-29 15:48:13 +02:00
Inteon
879108d9e4
deduplicate logic in CertificateHasCondition, WaitForCertificateReady & add WaitForCertificateReadyUpdate for testing Certificate update operations
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-06-29 14:16:30 +02:00
joshvanl
ee8130f159
Adds utilities for converting kubernetes certificates v1 usages to x509
...
usages
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-06-15 15:18:07 +01:00
joshvanl
c5c206cace
Adds base CertificateSigningRequest cert-manager controller
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-05-27 00:23:50 +01:00
joshvanl
b38519fe66
Adds kube certificates v1 API utils
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-05-27 00:18:29 +01:00
Josh Soref
64fb1ebc91
Deprecate UsageContentCommittment
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-05-19 12:40:10 -04:00
irbekrm
a42771b7e4
Adds a bunch of comments for exported types
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-05-19 10:19:43 +01:00
Jake Sanders
79d8d9cb7b
Revert "Merge pull request #3724 from inteon/istio-virtualservice-for-http01"
...
This reverts commit 80f27739b5 , reversing
changes made to 96604d02a3 .
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2021-05-11 14:50:25 +01:00
Jake Sanders
f194d9b732
Add godoc comments
...
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2021-05-05 15:59:02 +01:00
Inteon
30634f154c
improve Certificate is Ready test
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-04-28 09:20:47 +02:00
joshvanl
1d75fc480e
Adds Denied to certificaterequests reporter
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-04-09 15:26:15 +01:00
joshvanl
5df29e41e7
Updates api/util CertificateRequest approved helpers to use new
...
condition type
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-17 13:10:39 +00:00
joshvanl
0ef25daeb3
Adds helper CertificateRequest api/util funcs for checking approval
...
condition
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-17 13:10:39 +00:00
joshvanl
99138733ad
Adds observedGeneration to issuer condition update function
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-15 15:04:00 +00:00
joshvanl
ca60357df3
Adds ObservedGeneration to SetCertificateCondition func
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-04 17:03:26 +00:00
Maartje Eyskens
a5732221f4
Fix tests
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:09:39 +01:00
Maartje Eyskens
ab0cd57dc5
Use The cert-manager Authors.
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-11 19:04:13 +01:00
Maartje Eyskens
1788a9d758
Update copyright to cert-manager project
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-08 19:04:49 +01:00
Maartje Eyskens
302772013d
Add note on why we shorten names
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-09-01 15:03:25 +02:00
Maartje Eyskens
f1c6c93df5
Fix CR and make a general function
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-28 15:06:54 +02:00
Maartje Eyskens
69186afbdd
Move logic to utils
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-28 09:59:48 +02:00
Richard Wall
81eb53f597
./hack/update-all.sh
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
a70298180a
Run a script to update v1alpha2 usage to v1
...
Script is available at https://github.com/jetstack/cert-manager/pull/3201
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:26:51 +01:00
Maartje Eyskens
5d4869b20e
Fix formatted logs
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens
fecd0b3518
Set all log levels for info
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens
9dd00905e9
Update klog
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
klog v2
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
JoshVanL
ffb5201d95
Adds extensible issuing controller
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
James Munnelly
85cc080d79
Add trigger controller integration test
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:53 +01:00
Josh Soref
37886f0d3d
spelling: [API] netscape
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:44:22 -05:00
jetstack-bot
b7e83b5382
Merge pull request #2508 from JoshVanL/cr-invalid-request
...
CertificateRequest InvalidRequest
2020-01-20 14:17:31 +00:00
JoshVanL
2f3fe4c3d7
Reduce comments by removing invalid data in CR implementations doing
...
better InvalidRequest checking
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-01-17 14:11:25 +00:00
Maartje Eyskens
98ca10b5ba
Update bazel
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-01-16 12:28:15 +01:00
Maartje Eyskens
0e1f64a337
Do not change crt.Name
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-01-16 12:07:45 +01:00
Maartje Eyskens
dbac7cf1fb
Use correct regexp package
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-01-16 12:03:58 +01:00
Maartje Eyskens
3212e446e5
Fix issue in ComputeCertificateRequestName when 52nd is a dot
...
This strips any symbols at the end of a shortened domain name in ComputeCertificateRequestName.
It also adds tests for the specific util function
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-01-16 11:49:28 +01:00
JoshVanL
0c50cc166a
Adds InvalidRequest condition to CertificateRequest
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-01-09 15:12:55 +00:00
JoshVanL
192566d789
Adds conversion for key usage int to string
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-11-05 14:22:25 +00:00