Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user error code for cluster cleanup #643

Merged
merged 1 commit into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/src/components/ShootStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ const errorCodes = {
'ERR_INFRA_DEPENDENCIES': {
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.'
}
}

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