From 48780e51642b32eda5a9fc48eba8ed31714f8c27 Mon Sep 17 00:00:00 2001 From: Andreas Dinauer Date: Sat, 20 Dec 2025 12:05:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20per=20container=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/Pod.ts | 7 +- .../{ => configmap}/ConfigMapComponent.vue | 6 +- .../configmap/view/ConfigmapViewComponent.vue | 23 +++++ .../DeploymentComponent.vue | 0 .../deployment/view/DeploymentViewPopup.vue | 13 +++ .../inspect/resources/ConfigMapList.vue | 1 + .../inspect/resources/DeploymentList.vue | 4 +- .../inspect/resources/StatefulSetList.vue | 2 +- components/pod/env/EnvVar.ts | 7 +- components/pod/view/EnvironmentViewer.vue | 86 +++++++++++++++++++ components/pod/view/PodViewPopup.vue | 68 ++------------- .../StatefulSetComponent.vue | 0 components/ui/ContainerPicker.vue | 54 ++++++++++++ components/ui/Prompt.ts | 3 +- components/ui/UiPompt.vue | 9 +- pages/account.vue | 2 +- .../inspect/[resource]/[namespace].vue | 2 +- 17 files changed, 212 insertions(+), 75 deletions(-) rename components/{ => configmap}/ConfigMapComponent.vue (66%) create mode 100644 components/configmap/view/ConfigmapViewComponent.vue rename components/{deployments => deployment}/DeploymentComponent.vue (100%) create mode 100644 components/deployment/view/DeploymentViewPopup.vue create mode 100644 components/pod/view/EnvironmentViewer.vue rename components/{deployments => statefulset}/StatefulSetComponent.vue (100%) create mode 100644 components/ui/ContainerPicker.vue diff --git a/classes/Pod.ts b/classes/Pod.ts index 40d9334..8fa249e 100644 --- a/classes/Pod.ts +++ b/classes/Pod.ts @@ -26,9 +26,12 @@ class Status phase?: PodStatus } -class Container +export class Container { - + constructor ( + public name: string, + public image: string + ) {} } enum PodStatus diff --git a/components/ConfigMapComponent.vue b/components/configmap/ConfigMapComponent.vue similarity index 66% rename from components/ConfigMapComponent.vue rename to components/configmap/ConfigMapComponent.vue index db0ee63..e8e7ac3 100644 --- a/components/ConfigMapComponent.vue +++ b/components/configmap/ConfigMapComponent.vue @@ -1,18 +1,22 @@ \ No newline at end of file diff --git a/components/deployments/DeploymentComponent.vue b/components/deployment/DeploymentComponent.vue similarity index 100% rename from components/deployments/DeploymentComponent.vue rename to components/deployment/DeploymentComponent.vue diff --git a/components/deployment/view/DeploymentViewPopup.vue b/components/deployment/view/DeploymentViewPopup.vue new file mode 100644 index 0000000..e1978d1 --- /dev/null +++ b/components/deployment/view/DeploymentViewPopup.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/components/inspect/resources/ConfigMapList.vue b/components/inspect/resources/ConfigMapList.vue index 14d2a9c..7cabb8d 100644 --- a/components/inspect/resources/ConfigMapList.vue +++ b/components/inspect/resources/ConfigMapList.vue @@ -16,6 +16,7 @@ + + diff --git a/components/pod/view/PodViewPopup.vue b/components/pod/view/PodViewPopup.vue index 8702ce6..65d51ef 100644 --- a/components/pod/view/PodViewPopup.vue +++ b/components/pod/view/PodViewPopup.vue @@ -38,21 +38,13 @@

{{ key }}: {{ value }}

+
+

Containers

+

{{ container.name }}: {{ container.image }}

+
-
-

Env

- - - - -
-
- -
-
-
-
+ @@ -60,9 +52,8 @@ - - + \ No newline at end of file diff --git a/components/deployments/StatefulSetComponent.vue b/components/statefulset/StatefulSetComponent.vue similarity index 100% rename from components/deployments/StatefulSetComponent.vue rename to components/statefulset/StatefulSetComponent.vue diff --git a/components/ui/ContainerPicker.vue b/components/ui/ContainerPicker.vue new file mode 100644 index 0000000..e279a97 --- /dev/null +++ b/components/ui/ContainerPicker.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/components/ui/Prompt.ts b/components/ui/Prompt.ts index 955ad1a..22fc943 100644 --- a/components/ui/Prompt.ts +++ b/components/ui/Prompt.ts @@ -9,5 +9,6 @@ export class Prompt export enum PromptType { ERROR = "error", - SUCCESS = "success" + SUCCESS = "success", + INFO = "info" } \ No newline at end of file diff --git a/components/ui/UiPompt.vue b/components/ui/UiPompt.vue index 29fe1ab..57ea074 100644 --- a/components/ui/UiPompt.vue +++ b/components/ui/UiPompt.vue @@ -20,15 +20,18 @@ const emit = defineEmits<{ \ No newline at end of file diff --git a/pages/account.vue b/pages/account.vue index be287c7..78a93a2 100644 --- a/pages/account.vue +++ b/pages/account.vue @@ -6,7 +6,7 @@

Kubooboo

Inspect - Monitorings + Monitorings Settings

Logout

diff --git a/pages/account/inspect/[resource]/[namespace].vue b/pages/account/inspect/[resource]/[namespace].vue index 0316e92..efec7b9 100644 --- a/pages/account/inspect/[resource]/[namespace].vue +++ b/pages/account/inspect/[resource]/[namespace].vue @@ -3,7 +3,7 @@ - +