Skip to content
Snippets Groups Projects
Commit b574b3b5 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3078605 by Xiaohua Guan, yas: Refactor the Pods list view

parent b31120a6
No related branches found
No related tags found
No related merge requests found
......@@ -71,14 +71,15 @@ display:
row_class: ''
default_row_class: true
override: true
sticky: false
sticky: true
caption: ''
summary: ''
description: ''
columns:
pod_bulk_form: pod_bulk_form
name: name
namespace: namespace
name: name
node_name: node_name
status: status
restarts: restarts
created: created
......@@ -89,6 +90,13 @@ display:
separator: ''
empty_column: false
responsive: ''
namespace:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
name:
sortable: true
default_sort_order: asc
......@@ -96,7 +104,7 @@ display:
separator: ''
empty_column: false
responsive: ''
namespace:
node_name:
sortable: true
default_sort_order: asc
align: ''
......@@ -105,7 +113,7 @@ display:
responsive: ''
status:
sortable: true
default_sort_order: asc
default_sort_order: desc
align: ''
separator: ''
empty_column: false
......@@ -129,7 +137,7 @@ display:
separator: ''
empty_column: false
responsive: ''
default: name
default: namespace
empty_table: false
row:
type: fields
......@@ -150,6 +158,74 @@ display:
hide_alter_empty: true
plugin_id: pod_bulk_form
entity_type: k8s_pod
namespace:
id: namespace
table: k8s_pod
field: namespace
relationship: none
group_type: group
admin_label: ''
label: Namespace
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: entity_link
settings:
target_type: k8s_namespace
field_name: name
comma_separated: false
html_generator_class: ''
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: k8s_pod
entity_field: namespace
plugin_id: field
name:
id: name
table: k8s_pod
......@@ -215,14 +291,14 @@ display:
entity_type: k8s_pod
entity_field: name
plugin_id: field
namespace:
id: namespace
node_name:
id: node_name
table: k8s_pod
field: namespace
field: node_name
relationship: none
group_type: group
admin_label: ''
label: Namespace
label: Node
exclude: false
alter:
alter_text: false
......@@ -264,9 +340,12 @@ display:
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
type: entity_link
settings:
link_to_entity: false
target_type: k8s_node
field_name: name
comma_separated: false
html_generator_class: ''
group_column: value
group_columns: { }
group_rows: true
......@@ -278,7 +357,7 @@ display:
separator: ', '
field_api_classes: false
entity_type: k8s_pod
entity_field: namespace
entity_field: node_name
plugin_id: field
status:
id: status
......
field.formatter.settings.entity_link:
type: mapping
label: 'Entity link'
mapping:
target_type:
type: string
label: 'Target type'
field_name:
type: string
label: 'Field name'
comma_separated:
type: boolean
label: 'Separated with comma'
html_generator_class:
type: string
label: 'Html generator class'
......@@ -129,7 +129,7 @@ function k8s_update_8206() {
/**
* Add entity type k8s_service and view k8s_service.
*/
function k8s_update_8248() {
function k8s_update_8207() {
// Add entity type k8s_service.
$definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$entity_type = \Drupal::entityTypeManager()->getDefinition('k8s_service');
......@@ -143,3 +143,14 @@ function k8s_update_8248() {
];
cloud_update_yml_definitions($files, 'k8s');
}
/**
* Update view k8s_pod.
*/
function k8s_update_8208() {
// Update view k8s_pod.
$files = [
'views.view.k8s_pod.yml',
];
cloud_update_yml_definitions($files, 'k8s');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment