Files
MilanandClaude Opus 5.5 144fc99a67 feat(cli): show NicoIdentity credential health in get providers (#1602)
* feat(cli): read and classify NicoIdentity credential health

Add a credentials package that lists a provider's Identity objects through
the Kubernetes dynamic client and classifies the one naming the provider's
credentials Secret as HEALTHY, FAILING, UNKNOWN, STALE, PENDING, NO-IDENTITY,
UNSUPPORTED or UNREADABLE. It reads only the status the provider's manager
publishes, never triggers a check or reads the Secret, and treats a result
older than ten minutes as stale. The provider registry now records NICo's
NicoIdentity kind and the manager flags that limit what the manager watches.
util gains FormatDuration so ages can be formatted against an injected clock.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

* feat(cli): show credential health in get providers

nvkectl get providers now adds CREDENTIALS and LAST CHECK columns that
report the provider's own last credential check and how long ago it ran,
so operators can tell working credentials from a Secret that merely
exists. STATE, every existing JSON field and the exit code are unchanged;
-o json and -o yaml gain an additive credentials object for providers that
publish an Identity. The Identity client is built only when the Identity
CRD is established, and DETAIL keeps explaining STATE problems before
credential health. The help text lists each value and marks the command
alpha.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

* docs: document the credential health columns in get providers

Explain the CREDENTIALS and LAST CHECK columns of nvkectl get providers:
what each value means, the 10-minute staleness rule, and that nvkectl reads
the provider's own check instead of running one. The CLI README lists the
new permission, list on nicoidentities, and shows the NicoIdentity that
turns NO-IDENTITY into a reported result. The FAQ no longer calls CONFIGURED
a healthy NICo site, names the CAPNICo Deployment the shipped manifest uses,
and gains an entry for credential health that is not HEALTHY.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

* docs: name UNREADABLE and PENDING where credential values are summarized

The site-bootstrap summary of the CREDENTIALS column named only NO-IDENTITY
and UNSUPPORTED as the alternatives to HEALTHY, but a kubeconfig that cannot
list NicoIdentity objects reads UNREADABLE. Name all three, with the
condition behind each, in the order nvkectl checks them.

The operations FAQ's list for a CREDENTIALS value other than HEALTHY now
covers PENDING and UNREADABLE too.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

* docs: describe the credentials column in the operator guide

The operator guide said nothing checks the NICo token before the first
workload cluster, and its troubleshooting page had no entry for the new
CREDENTIALS column of nvkectl get providers.

Say that CREDENTIALS reports CAPNICo's own credential check when CAPNICo
serves NicoIdentity and a NicoIdentity names nico-credentials, and that it
reads UNSUPPORTED with the CAPNICo release the install deploys, which does
not serve NicoIdentity. Add a troubleshooting entry for a CREDENTIALS value
other than HEALTHY.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

* docs: say when CAPNICo checks the NICo token before credential health

The operator guide said nothing checks the NICo token until the first
workload cluster. CAPNICo checks it whenever it reconciles a NicoCluster
that belongs to a Cluster API Cluster, which can happen before any machine
exists. Say that, and that a workload cluster is what normally triggers it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>

---------

Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:48:08 -07:00
..