mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
Count every tenant kubeconfig the controller refuses to load in nvke_controller_tenant_kubeconfig_rejected_total, by source: node_agent for a control-plane node's admin.conf, secret for a published kubeconfig Secret. Each rejection also logs the cluster, and the node or Secret. Content rejections wrap kube.ErrInvalidKubeconfig, so other failures are not counted. Add NVKETenantKubeconfigRejected to the credential PrometheusRule. It fires on any rejection in the last ten minutes. Signed-off-by: dbudris <dbudris@nvidia.com>