Skip to content

Update k8s resolver to work with cluster-client v2

What does this MR do and why?

As the new major version of the @gitlab/cluster-client library uses fetch instead of axios, we'll need to update the related logic for the changes in request and response data.

Screenshots or screen recordings

No visual changes, screenshots are for the context.

Screenshot_2023-10-10_at_15.36.53

Screenshot_2023-10-10_at_15.37.11

How to set up and validate locally

The updated version is not yet available. To verify this MR, check out the related MR - feat!: Update generator from axios to fetch (gitlab-org/cluster-integration/javascript-client!9 - merged). Build the javascript client and link it to the main GitLab project via yarn link.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422945 (closed), #427865 (closed)

Edited by Anna Vovchenko

Merge request reports