Skip to content

Send kubectl connection errors to frontend

Emily Ring requested to merge 222951-send-connection-status into master

What does this MR do?

The current Cluster Index View has a feature flag clusters_list_redesign which is being built to display nodes and memory on the cluster table

These nodes are being queried from an external Kubernetes cluster. The query can fail for various reasons, resulting in the table displaying unknown in the node columns image

We have 2 follow-up issues

  1. Send errors messages to the Frontend: #222951 (closed)
  2. Use those error messages to display failure information to the user: #220182 (closed)

This MR will address issue 1. The MR will:

  • Add a new field connection_error (This was changed to 3 error messages during the MR review) to the cluster serializer, which will send error statuses to the Frontend.
  • Attempt to capture error messages in cluster model and the node module
  • Update associated tests

Screenshots

ConnectionError

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #222951 (closed)

Edited by Mayra Cabrera

Merge request reports