Skip to content

Commit

Permalink
Add user error code for cluster cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
timuthy committed Mar 24, 2020
1 parent 9e4badb commit 3f85d4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frontend/src/components/ShootStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const errorCodes = {
shortDescription: 'Infrastructure Dependencies',
description: 'Infrastructure operation failed as unmanaged resources exist in your cloud provider account. Please delete all manually created resources related to this Shoot.'
}
'ERR_CLEANUP_CLUSTER_RESOURCES': {
shortDescription: 'Cleanup Cluster',
description: 'Cleaning up the cluster failed as some resource are stuck in deletion. Please remove these resources properly or a forceful deletion will happen if this error persists.'
}
}
export default {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ export function isUserError (errorCodes) {
'ERR_INFRA_UNAUTHORIZED',
'ERR_INFRA_INSUFFICIENT_PRIVILEGES',
'ERR_INFRA_QUOTA_EXCEEDED',
'ERR_INFRA_DEPENDENCIES'
'ERR_INFRA_DEPENDENCIES',
'ERR_CLEANUP_CLUSTER_RESOURCES'
]
return every(errorCodes, errorCode => includes(userErrorCodes, errorCode))
}
Expand Down

0 comments on commit 3f85d4e

Please sign in to comment.