Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(charts/injector): cert expiration detection and automatic re…
…creation Related to #124 Add expiration check for self-signed certificates in `charts/dsv-injector/templates/webhook.yaml`. * Add a new variable `recreateSelfSignedCertThreshold` with a default of 90 days. * Add a check for the expiration of the existing cert in the next n days. * Update the logic to generate a new self-signed cert if the existing cert is expiring within `recreateSelfSignedCertThreshold` days. * Update the secret cert value mapping to use the `$tlsCert` value based on it meeting the expiration check requirement. Expose `webhookCertExpireDays` and `recreateSelfSignedCertThreshold` in `charts/dsv-injector/values.yaml`. * Expose `webhookCertExpireDays` with a default of 365 days. * Add `recreateSelfSignedCertThreshold` with a default of 90 days. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DelineaXPM/dsv-k8s/issues/124?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information