Skip to content

[FEATURE] make cert-manager Certificate duration configurable #65

Description

@cbarbian-sap

Is your feature request related to a problem? Please describe.
Right now the duration of cert-manager issued certificates seems to be hard-coded (to 100 years).

Describe the solution you'd like
A way to configure the duration (something like spec.tls.duration).

Activity

  1. cbarbian-sap commented on Aug 19, 2026

    @cbarbian-sap
    ContributorAuthor

    In addition: if the rotation happens, does valkey pick up the new certificate? If not, some automatic pod restart would maybe be necessary.

  2. added a commit that references this issue on Nov 12, 2026
    a835176
  3. martin-briatka commented on Nov 12, 2026

    @martin-briatka
    Contributor

    Both points raised in this issue are addressed in #92:

    • Configurable duration: a new spec.tls.duration field is passed through to the generated cert-manager Certificate. When unset, the previous default of 876000h (~100 years) is preserved, so existing Valkey resources are unaffected.
    • Certificate pickup after rotation: a new spec.annotations field is merged onto the generated StatefulSet metadata. Attaching a pod-reloader annotation that points at the TLS secret triggers an automatic rolling restart, so the pods pick up the rotated certificate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions