Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-35570

[sources] Convert cloud-connector availability checks to use v2 interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Sources

      The cloud-connector availability checks are currently using cloud-connector's v1 interface.  This means that the availability checks for anemic tenants will most likely fail.

      This function needs to be modified:

      https://github.com/RedHatInsights/sources-api-go/blob/main/service/availability_check.go#L218 

      The url that is used will need to be changed.  The http method needs to be changed from GET to POST.

      The "CLOUD_CONNECTOR_AVAILABILITY_CHECK_URL" env var will need to be modified.

       

      While making this change, please modify these lines to avoid printing out the request body:

      https://github.com/RedHatInsights/sources-api-go/blob/main/service/availability_check.go#L251

      https://github.com/RedHatInsights/sources-api-go/blob/main/service/availability_check.go#L252

       

              Unassigned Unassigned
              rhn-support-dehort Derek Horton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: