kubebb / core

A declarative component lifecycle management platform
https://kubebb.github.io/website
Apache License 2.0
8 stars 9 forks source link

fix: When the repository service is unavailable, the repo status is n… #325

Closed 0xff-dev closed 1 year ago

0xff-dev commented 1 year ago

…ot updated

What type of PR is this?

/kind bug

What this PR does / why we need it

When the repository service is unavailable, the repo status is not updated.

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

  conditions:
  - lastTransitionTime: "2023-09-05T06:13:45Z"
    message: 'failed to add repo looks like "http://10.0.2.15:8899/def" is not a valid
      chart repository or cannot be reached: Get "http://10.0.2.15:8899/def/index.yaml":
      dial tcp 10.0.2.15:8899: connect: connection refused'
    reason: Unavailable
    status: "False"
    type: Ready
  - lastTransitionTime: "2023-09-05T06:13:45Z"
    message: 'failed to add repo looks like "http://10.0.2.15:8899/def" is not a valid
      chart repository or cannot be reached: Get "http://10.0.2.15:8899/def/index.yaml":
      dial tcp 10.0.2.15:8899: connect: connection refused'
    reason: Unavailable
    status: "False"
    type: Synced
  urlHistory:
  - http://10.0.2.15:8899/def

  conditions:
  - lastTransitionTime: "2023-09-05T06:14:15Z"
    reason: ""
    status: "True"
    type: Ready
  - lastSuccessfulTime: "2023-09-05T06:14:15Z"
    lastTransitionTime: "2023-09-05T06:14:15Z"
    message: index yaml synced successfully, creating components
    reason: ""
    status: "True"
    type: Synced
  urlHistory:
  - http://10.0.2.15:8899/def

  conditions:
  - lastTransitionTime: "2023-09-05T06:16:16Z"
    message: 'failed to update repo Get "http://10.0.2.15:8899/def/index.yaml": dial
      tcp 10.0.2.15:8899: connect: connection refused'
    reason: Unavailable
    status: "False"
    type: Ready
  - lastSuccessfulTime: "2023-09-05T06:14:15Z"
    lastTransitionTime: "2023-09-05T06:16:16Z"
    message: 'failed to update repo Get "http://10.0.2.15:8899/def/index.yaml": dial
      tcp 10.0.2.15:8899: connect: connection refused'
    reason: Unavailable
    status: "False"
    type: Synced
  urlHistory:
  - http://10.0.2.15:8899/def

  conditions:
  - lastTransitionTime: "2023-09-05T06:18:16Z"
    reason: ""
    status: "True"
    type: Ready
  - lastSuccessfulTime: "2023-09-05T06:18:16Z"
    lastTransitionTime: "2023-09-05T06:18:16Z"
    message: index yaml synced successfully, creating components
    reason: ""
    status: "True"
    type: Synced
  urlHistory:
  - http://10.0.2.15:8899/def
codecov[bot] commented 1 year ago

Codecov Report

Merging #325 (97e73e0) into main (67b36b1) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #325   +/-   ##
=======================================
  Coverage   25.31%   25.31%           
=======================================
  Files          35       35           
  Lines        3216     3216           
=======================================
  Hits          814      814           
  Misses       2350     2350           
  Partials       52       52           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more