Skip to content

Commit 9f4ec16

Browse files
committed
frontend: default node debugger to busybox in default ns
Signed-off-by: Dor Serero <dor.serero@gmail.com>
1 parent e085df5 commit 9f4ec16

28 files changed

+45
-45
lines changed

frontend/src/components/App/Settings/NodeShellSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default function NodeShellSettings(props: SettingsProps) {
238238
error={!isValidNamespace}
239239
helperText={
240240
isValidNamespace
241-
? t('translation|The default namespace is kube-system.')
241+
? t('translation|The default namespace is default.')
242242
: invalidNamespaceMessage
243243
}
244244
variant="outlined"

frontend/src/components/App/Settings/__snapshots__/NodeShellSettings.Default.stories.storyshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
aria-invalid="false"
8686
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedEnd css-19qh8xo-MuiInputBase-input-MuiOutlinedInput-input"
8787
id=":mock-test-id:"
88-
placeholder="docker.io/library/alpine:latest"
88+
placeholder="docker.io/library/busybox:latest"
8989
type="text"
9090
value=""
9191
/>
@@ -131,7 +131,7 @@
131131
aria-invalid="false"
132132
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedEnd css-19qh8xo-MuiInputBase-input-MuiOutlinedInput-input"
133133
id=":mock-test-id:"
134-
placeholder="kube-system"
134+
placeholder="default"
135135
type="text"
136136
value=""
137137
/>
@@ -154,7 +154,7 @@
154154
class="MuiFormHelperText-root MuiFormHelperText-sizeSmall MuiFormHelperText-contained css-153yz37-MuiFormHelperText-root"
155155
id=":mock-test-id:"
156156
>
157-
The default namespace is kube-system.
157+
The default namespace is default.
158158
</p>
159159
</div>
160160
</dd>

frontend/src/components/node/NodeShellAction.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ export function NodeShellAction(props: NodeShellTerminalProps) {
6767
<ActionButton
6868
description={
6969
isLinux(item)
70-
? t('Node Shell')
71-
: t('Node shell is not supported in this OS: {{ nodeOS }}', {
70+
? t('Debug Node')
71+
: t('Debug node is not supported in this OS: {{ nodeOS }}', {
7272
nodeOS: item?.status?.nodeInfo?.operatingSystem,
7373
})
7474
}
75-
icon="mdi:console"
75+
icon="mdi:bug"
7676
onClick={() => {
7777
Activity.launch({
7878
id: activityId,

frontend/src/helpers/clusterSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export interface ClusterSettings {
3131
};
3232
}
3333

34-
export const DEFAULT_NODE_SHELL_LINUX_IMAGE = 'docker.io/library/alpine:latest';
35-
export const DEFAULT_NODE_SHELL_NAMESPACE = 'kube-system';
34+
export const DEFAULT_NODE_SHELL_LINUX_IMAGE = 'docker.io/library/busybox:latest';
35+
export const DEFAULT_NODE_SHELL_NAMESPACE = 'default';
3636

3737
/**
3838
* Stores the cluster settings in local storage.

frontend/src/i18n/locales/de/glossary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
"OS image": "OS-Bild",
148148
"Kernel version": "Kernel-Version",
149149
"Container Runtime": "Container-Laufzeit",
150-
"Node Shell": "",
151-
"Node shell is not supported in this OS: {{ nodeOS }}": "",
150+
"Debug Node": "",
151+
"Debug node is not supported in this OS: {{ nodeOS }}": "",
152152
"Shell: {{ itemName }}": "",
153153
"Logs: {{ itemName }}": "Ereignisprotokolle: {{ itemName }}",
154154
"Seconds": "Sekunden",

frontend/src/i18n/locales/de/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"Namespaces must contain only lowercase alphanumeric characters or '-', and must start and end with an alphanumeric character.": "Namespaces dürfen nur alphanumerische Kleinbuchstaben oder \"-\" enthalten und müssen mit einem alphanumerischen Zeichen beginnen und enden.",
129129
"Node Shell Settings": "",
130130
"The default image is used for dropping a shell into a node (when not specified directly).": "",
131-
"The default namespace is kube-system.": "",
131+
"The default namespace is default.": "",
132132
"Enter a value between {{ minRows }} and {{ maxRows }}.": "Geben Sie einen Wert zwischen {{ minRows }} und {{ maxRows }} ein.",
133133
"Custom row value": "Benutzerdefinierter Zeilenwert",
134134
"Custom value": "Benutzerdefinierter Wert",

frontend/src/i18n/locales/en/glossary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
"OS image": "OS image",
148148
"Kernel version": "Kernel version",
149149
"Container Runtime": "Container Runtime",
150-
"Node Shell": "Node Shell",
151-
"Node shell is not supported in this OS: {{ nodeOS }}": "Node shell is not supported in this OS: {{ nodeOS }}",
150+
"Debug Node": "Debug Node",
151+
"Debug node is not supported in this OS: {{ nodeOS }}": "Debug node is not supported in this OS: {{ nodeOS }}",
152152
"Shell: {{ itemName }}": "Shell: {{ itemName }}",
153153
"Logs: {{ itemName }}": "Logs: {{ itemName }}",
154154
"Seconds": "Seconds",

frontend/src/i18n/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"Namespaces must contain only lowercase alphanumeric characters or '-', and must start and end with an alphanumeric character.": "Namespaces must contain only lowercase alphanumeric characters or '-', and must start and end with an alphanumeric character.",
129129
"Node Shell Settings": "Node Shell Settings",
130130
"The default image is used for dropping a shell into a node (when not specified directly).": "The default image is used for dropping a shell into a node (when not specified directly).",
131-
"The default namespace is kube-system.": "The default namespace is kube-system.",
131+
"The default namespace is default.": "The default namespace is default.",
132132
"Enter a value between {{ minRows }} and {{ maxRows }}.": "Enter a value between {{ minRows }} and {{ maxRows }}.",
133133
"Custom row value": "Custom row value",
134134
"Custom value": "Custom value",

frontend/src/i18n/locales/es/glossary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
"OS image": "Imagen del SO",
148148
"Kernel version": "Versión del Kernel",
149149
"Container Runtime": "Container Runtime",
150-
"Node Shell": "",
151-
"Node shell is not supported in this OS: {{ nodeOS }}": "",
150+
"Debug Node": "",
151+
"Debug node is not supported in this OS: {{ nodeOS }}": "",
152152
"Shell: {{ itemName }}": "",
153153
"Logs: {{ itemName }}": "Registros: {{ itemName }}",
154154
"Seconds": "Segundos",

frontend/src/i18n/locales/es/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"Namespaces must contain only lowercase alphanumeric characters or '-', and must start and end with an alphanumeric character.": "Los espacios de nombre deben contener solo caracteres alfanuméricos en minúsculas o '-', y deben comenzar y terminar con un carácter alfanumérico.",
129129
"Node Shell Settings": "",
130130
"The default image is used for dropping a shell into a node (when not specified directly).": "",
131-
"The default namespace is kube-system.": "",
131+
"The default namespace is default.": "",
132132
"Enter a value between {{ minRows }} and {{ maxRows }}.": "Introduzca un valor entre {{ minRows }} y {{ maxRows }}.",
133133
"Custom row value": "Núm. de líneas personalizado",
134134
"Custom value": "Valor personalizado",

0 commit comments

Comments
 (0)