diff options
Diffstat (limited to 'app/assets/javascripts/kubernetes_dashboard/constants.js')
-rw-r--r-- | app/assets/javascripts/kubernetes_dashboard/constants.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/assets/javascripts/kubernetes_dashboard/constants.js b/app/assets/javascripts/kubernetes_dashboard/constants.js index 2aeb2a4c113..cbb89dff1cf 100644 --- a/app/assets/javascripts/kubernetes_dashboard/constants.js +++ b/app/assets/javascripts/kubernetes_dashboard/constants.js @@ -11,3 +11,33 @@ export const STATUS_LABELS = { [PHASE_SUCCEEDED]: s__('KubernetesDashboard|Succeeded'), [PHASE_FAILED]: s__('KubernetesDashboard|Failed'), }; + +export const WORKLOAD_STATUS_BADGE_VARIANTS = { + [PHASE_RUNNING]: 'info', + [PHASE_PENDING]: 'warning', + [PHASE_SUCCEEDED]: 'success', + [PHASE_FAILED]: 'danger', +}; + +export const PAGE_SIZE = 20; + +export const TABLE_HEADING_CLASSES = 'gl-bg-gray-50! gl-font-weight-bold gl-white-space-nowrap'; + +export const DEFAULT_WORKLOAD_TABLE_FIELDS = [ + { + key: 'name', + label: s__('KubernetesDashboard|Name'), + }, + { + key: 'status', + label: s__('KubernetesDashboard|Status'), + }, + { + key: 'namespace', + label: s__('KubernetesDashboard|Namespace'), + }, + { + key: 'age', + label: s__('KubernetesDashboard|Age'), + }, +]; |