Skip to content

Commit 1557f70

Browse files
Merge pull request #1706 from wallrj/revision-history-1
Recategorize the new revisionHistoryLimit as a Potentially breaking change
2 parents 934e304 + 3911090 commit 1557f70

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

content/docs/devops-tips/scaling-cert-manager.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ might accidentally or maliciously cause a denial of service for other users on t
7676

7777
## Set `revisionHistoryLimit: 1` on all Certificate resources
7878

79+
> ℹ️ Not needed with cert-manager `>= v1.18.0`, because the default value was changed to `1`.
80+
7981
By default, cert-manager will keep all the `CertificateRequest` resources that **it** creates
8082
([`revisionHistoryLimit`](../reference/api-docs.md#cert-manager.io/v1.CertificateSpec)):
8183

content/docs/releases/release-notes/release-notes-1.18.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ config:
6767

6868
### The default value of `Certificate.Spec.RevisionHistoryLimit` is now `1`
6969

70-
> ⚠️ Breaking change
70+
> ⚠️ Potentially breaking change
7171

7272
The default value for the `Certificate` resource's `revisionHistoryLimit` field is now set to 1.
7373
This ensures that old `CertificateRequest` revisions are automatically garbage collected, improving resource management and reducing clutter in clusters.
7474
Previously, if not specified, no limit was applied, potentially leading to an accumulation of stale `CertificateRequest` resources.
7575
With this update, users no longer need to manually configure the revision history limit to benefit from automated cleanup.
7676

77+
When you upgrade to cert-manager 1.18, all stale `CertificateRequest` resources will be garbage collected, unless you explicitly set the `revisionHistoryLimit` value on your `Certificate` resources.
78+
7779
### Copy annotations from Ingress or Gateway to the Certificate
7880

7981
We've added a new configuration option to the cert-manager controller: `--extra-certificate-annotations`, which allows you to specify annotation keys to be copied from an Ingress or Gateway resource to the resulting Certificate object.

content/docs/tutorials/certificate-defaults/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ By setting custom defaults across our cluster, we enable platform teams to tackl
2525

2626
Use a `ClusterPolicy` to set a custom default value for the `Certificate.Spec.RevisionHistoryLimit` field.
2727

28+
> ℹ️ Not needed with cert-manager `>= v1.18.0`, because the default value was changed to `1`.
29+
2830
- **To help your users choose secure default key settings for their `Certificate` resources.**
2931

3032
Use a `ClusterPolicy` to set custom default values for the `Certificate.Spec.PrivateKey` fields.
@@ -158,6 +160,7 @@ None of the three fields here are required fields, but they might need to be set
158160
These rules will:
159161
160162
- Set a default value of: `revisionHistoryLimit: 2`.
163+
> ℹ️ This is not necessary if you use cert-manager `>= v1.18.0`, because the default value was changed to `1`.
161164
- Set a [default value of `Always` under `spec.privateKey.rotationPolicy`](../../usage/certificate.md#the-rotationpolicy-setting).
162165
> ℹ️ This is not necessary if you use cert-manager `>=v1.18.0`, because the default value was changed from `Never` to `Always`.
163166
- Set defaults for all `spec.privateKey` fields.

public/docs/tutorials/getting-started-aws-letsencrypt/certificate.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: www
66
spec:
77
secretName: www-tls
8-
revisionHistoryLimit: 1
98
privateKey:
109
rotationPolicy: Always
1110
commonName: www.$DOMAIN_NAME

0 commit comments

Comments
 (0)