Skip to content

Commit

Permalink
fix: Don't throw an error when there is no checlusters crd (#789)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <[email protected]>
  • Loading branch information
tolusha authored Jul 14, 2020
1 parent 22d296c commit de59229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/api/kube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,10 @@ export class KubeHelper {
await customObjectsApi.deleteNamespacedCustomObject('org.eclipse.che', 'v1', namespace, 'checlusters', cr.metadata.name, options)
}
} catch (e) {
if (e.response.statusCode === 404) {
// There is no CRD 'checlusters`
return
}
throw this.wrapK8sClientError(e)
}
}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1544,11 +1544,11 @@ ecc-jsbn@~0.1.1:

"eclipse-che-operator@git://github.com/eclipse/che-operator#master":
version "0.0.0"
resolved "git://github.com/eclipse/che-operator#110149a5c7b158ec14659ca61f5c3153a9e8b80a"
resolved "git://github.com/eclipse/che-operator#fdb32622d63fba3895e173d1624dc66512375d57"

"eclipse-che@git://github.com/eclipse/che#master":
version "0.0.0"
resolved "git://github.com/eclipse/che#3ceb16245fa72722ddf9004747c092c693ee4b28"
resolved "git://github.com/eclipse/che#7cf97838a4492f4b20327adf0cba5f4c8033fbd7"

editorconfig@^0.15.0:
version "0.15.3"
Expand Down

0 comments on commit de59229

Please sign in to comment.