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

successful call to k8sDeleteResource results in error

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      We recently updated to `@openshift/dynamic-plugin-sdk-utils: 3.0.0` and a successful resource deletion using the `k8sDeleteResource` API now results in an error.
       
      A change made in RHCLOUD-21652 has it so that `commonFetchJSON` returns an error if the result of the k8s call is any status object. However deletion returns a status object. An error should not be thrown if the status object with a `Success` status.
       
      eg response on delete:
      `{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Success"}`

              bflorkie@redhat.com Bryan Florkiewicz
              christianvogt Christian Vogt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: