Skip to content

feat: Add ui & api for exposing controlplane cert expiry - #652

Open
jihyun-huh wants to merge 1 commit into
masterfrom
feat/add-controlplane-cert-expiry-ui
Open

feat: Add ui & api for exposing controlplane cert expiry#652
jihyun-huh wants to merge 1 commit into
masterfrom
feat/add-controlplane-cert-expiry-ui

Conversation

@jihyun-huh

@jihyun-huh jihyun-huh commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Quick Summary

add Exposing controlplane's certificate expiry information on Azimuth UI & API
The Azimuth API now reads the certificate status published by azimuth-capi-operator, and the UI displays:

  • the earliest known controlplane certificate expiry date
  • control_plane_certificate_expiry_date: expected date of machine's cert expiration
  • control_plane_certificate_rotation_days: number of spec.rollout.before.certificatesExpiryDays on KCP
  • control_plane_certificate_rotation_date: calculated auto replacement date with control_plane_certificate_expiry_date and control_plane_certificate_rotation_days

the fields would be hidden when certificate information is unavailable, and this is visibility-only implementation for exposing the information only. no manual renewal action button is included.

Testing

  • added API conversion tests for present and missing certificate status
  • testing api & ui on ha management cluster of leafcloud

AS-IS vs TO-BE

AS-IS (current)

image

TO-BE-0

(if KCP.spec.rollout.before.certificatesExpiryDays is none)

  • only expose certificate expiry day
image

TO-BE-1

(if KCP.spec.rollout.before.certificatesExpiryDays is set)

  • expose certificate expiry day, expected auto replacement day, and auto-replacement notification message below
image

@jihyun-huh
jihyun-huh requested a review from a team as a code owner July 31, 2026 13:24
@jihyun-huh
jihyun-huh force-pushed the feat/add-controlplane-cert-expiry-ui branch 5 times, most recently from 06f4f75 to 8fbd08a Compare August 4, 2026 12:41
@jihyun-huh jihyun-huh changed the title [WIP] feat: Add ui & api for exposing controlplane cert expiry feat: Add ui & api for exposing controlplane cert expiry Aug 4, 2026
@jihyun-huh
jihyun-huh force-pushed the feat/add-controlplane-cert-expiry-ui branch 2 times, most recently from dadb474 to 13851d5 Compare August 5, 2026 09:02

@amanning9 amanning9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed some suggestions to make the UI a little more intuitive

<th>Node Count</th>
<td>{kubernetesCluster.nodes.filter(n => n.role === "control-plane").length}</td>
</tr>
{kubernetesCluster.control_plane_certificate_expiry_date && (

@amanning9 amanning9 Aug 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something like this makes it a little more intuitive:

<tr><th class="align-top">Kubernetes API Certificate</th><td>
  Expires 4 October 2026
  <br>
  <span class="small">
    will renew automatically on 13 Sept 2026
  </span>
  <br>
</td>
  <td>
    <button type="button" class="me-2 btn btn-warning">Renew Now</button>
  </td>
</tr>

@jihyun-huh
jihyun-huh force-pushed the feat/add-controlplane-cert-expiry-ui branch from 13851d5 to d877f73 Compare August 7, 2026 13:39
@jihyun-huh
jihyun-huh force-pushed the feat/add-controlplane-cert-expiry-ui branch from d877f73 to f9d9349 Compare August 7, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants