diff --git a/app/kubernetes/__module.js b/app/kubernetes/__module.js
index 86fc7dc8a..c80cbf1fb 100644
--- a/app/kubernetes/__module.js
+++ b/app/kubernetes/__module.js
@@ -151,10 +151,10 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
const application = {
name: 'kubernetes.applications.application',
- url: '/:namespace/:name?resource-type',
+ url: '/:namespace/:name?resource-type&tab',
views: {
'content@': {
- component: 'kubernetesApplicationView',
+ component: 'applicationDetailsView',
},
},
};
diff --git a/app/kubernetes/react/components/index.ts b/app/kubernetes/react/components/index.ts
index f745f280c..41056bb2b 100644
--- a/app/kubernetes/react/components/index.ts
+++ b/app/kubernetes/react/components/index.ts
@@ -20,7 +20,6 @@ import {
import { ApplicationContainersDatatable } from '@/react/kubernetes/applications/DetailsView/ApplicationContainersDatatable';
import { withFormValidation } from '@/react-tools/withFormValidation';
import { withCurrentUser } from '@/react-tools/withCurrentUser';
-import { PlacementsDatatable } from '@/react/kubernetes/applications/ItemView/PlacementsDatatable';
import { YAMLInspector } from '@/react/kubernetes/components/YAMLInspector';
export const ngModule = angular
@@ -102,6 +101,7 @@ export const ngModule = angular
r2a(withUIRouter(withReactQuery(withCurrentUser(YAMLInspector))), [
'identifier',
'data',
+ 'hideMessage',
])
)
.component(
@@ -133,13 +133,6 @@ export const ngModule = angular
withUIRouter(withReactQuery(withCurrentUser(ApplicationEventsDatatable))),
[]
)
- )
- .component(
- 'kubernetesApplicationPlacementsDatatable',
- r2a(withUIRouter(withCurrentUser(PlacementsDatatable)), [
- 'dataset',
- 'onRefresh',
- ])
);
export const componentsModule = ngModule.name;
diff --git a/app/kubernetes/react/views/index.ts b/app/kubernetes/react/views/index.ts
index 981d6ef3d..38323dc5e 100644
--- a/app/kubernetes/react/views/index.ts
+++ b/app/kubernetes/react/views/index.ts
@@ -10,6 +10,7 @@ import { DashboardView } from '@/react/kubernetes/dashboard/DashboardView';
import { ServicesView } from '@/react/kubernetes/services/ServicesView';
import { ConsoleView } from '@/react/kubernetes/applications/ConsoleView';
import { ConfigmapsAndSecretsView } from '@/react/kubernetes/configs/ListView/ConfigmapsAndSecretsView';
+import { ApplicationDetailsView } from '@/react/kubernetes/applications/DetailsView/ApplicationDetailsView';
export const viewsModule = angular
.module('portainer.kubernetes.react.views', [])
@@ -35,6 +36,13 @@ export const viewsModule = angular
[]
)
)
+ .component(
+ 'applicationDetailsView',
+ r2a(
+ withUIRouter(withReactQuery(withCurrentUser(ApplicationDetailsView))),
+ []
+ )
+ )
.component(
'kubernetesDashboardView',
r2a(withUIRouter(withReactQuery(withCurrentUser(DashboardView))), [])
diff --git a/app/kubernetes/views/applications/edit/application.html b/app/kubernetes/views/applications/edit/application.html
deleted file mode 100644
index daf140a83..000000000
--- a/app/kubernetes/views/applications/edit/application.html
+++ /dev/null
@@ -1,83 +0,0 @@
-
- {getRunningPods(application)}
-
/ {getTotalPods(application)}
-
+ {getRunningPods(application)}
+
{' '}
+ / {getTotalPods(application)}
+
- {taint.Key}
- {taint.Value ? `=${taint.Value}` : ''}:{taint.Effect}
+ {taint.key}
+ {taint.value ? `=${taint.value}` : ''}:{taint.effect}