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 61bc151 commit 3657575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
[#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.

### 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 3657575

Please sign in to comment.