Skip to content

Commit

Permalink
chore: expire webhook cert generation Jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jun 18, 2024
1 parent 642c5f7 commit 598ed2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
[#259](https://github.com/Kong/gateway-operator/pull/259)
- Default version of `ControlPlane` is bumped to 3.2.0
[#327](https://github.com/Kong/gateway-operator/pull/327)
- Webhook certificate Jobs now set `TTLSecondsAfterFinished=60` to clean up after they have finished.
[#346](https://github.com/Kong/gateway-operator/pull/346)

### Fixes

Expand Down
1 change: 1 addition & 0 deletions pkg/utils/kubernetes/resources/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func newWebhookCertificateConfigJobCommon(namespace, serviceAccountName string,
Namespace: namespace,
},
Spec: batchv1.JobSpec{
TTLSecondsAfterFinished: lo.ToPtr(int32(60)),
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
RestartPolicy: corev1.RestartPolicyOnFailure,
Expand Down

0 comments on commit 598ed2d

Please sign in to comment.