Skip to content

Commit efef114

Browse files
committed
refactor: migrate DRAIN_NODE_MODAL_MESSAGING from dashboard
1 parent 9c0c5d9 commit efef114

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/Pages/ResourceBrowser/constants.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,35 @@ export const ALL_NAMESPACE_OPTION: Readonly<Pick<SelectPickerOptionType<string>,
44
value: 'all',
55
label: 'All namespaces',
66
}
7+
8+
export const DRAIN_NODE_MODAL_MESSAGING = {
9+
GracePeriod: {
10+
heading: 'Grace period',
11+
infoText:
12+
'Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.',
13+
},
14+
DeleteEmptyDirectoryData: {
15+
heading: 'Delete empty directory data',
16+
infoText: 'Enabling this field will delete the pods using empty directory data when the node is drained.',
17+
},
18+
DisableEviction: {
19+
heading: 'Disable eviction (use with caution)',
20+
infoText: `Enabling this field will force drain to use delete, even if eviction is supported. This will bypass checking PodDisruptionBudgets.
21+
Note: Make sure to use with caution.`,
22+
},
23+
ForceDrain: {
24+
heading: 'Force drain',
25+
infoText:
26+
'Enabling this field will force drain a node even if there are pods that do not declare a controller.',
27+
},
28+
IgnoreDaemonSets: {
29+
heading: 'Ignore DaemonSets',
30+
infoText: 'Enabling this field will ignore DaemonSet-managed pods.',
31+
},
32+
Actions: {
33+
infoText: 'Drain will cordon off the node and evict all pods of the node.',
34+
drain: 'Drain node',
35+
draining: 'Draining node',
36+
cancel: 'Cancel',
37+
},
38+
}

0 commit comments

Comments
 (0)