Skip to content

Commit c02a9c3

Browse files
marie-jjleveugle
authored andcommitted
feat(pci): add kubernetes to public-cloud app
1 parent 24914fb commit c02a9c3

File tree

8 files changed

+40
-5
lines changed

8 files changed

+40
-5
lines changed

packages/manager/apps/public-cloud/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@ovh-ux/manager-cloud-styles": "^0.3.0-alpha.0",
1919
"@ovh-ux/manager-config": "^0.2.0",
2020
"@ovh-ux/manager-core": "^5.0.0",
21+
"@ovh-ux/manager-kubernetes": "^0.1.0-alpha.0",
2122
"@ovh-ux/manager-pci": "^0.1.0-alpha.0",
2223
"@ovh-ux/manager-telecom-styles": "^2.0.2",
2324
"@ovh-ux/ng-ovh-api-wrappers": "^3.0.0",

packages/manager/apps/public-cloud/src/sidebar/sidebar.constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const MENU = [
6060
subitems: [
6161
{
6262
options: {
63-
state: 'pci.projects.project',
63+
state: 'pci.projects.project.kubernetes',
6464
},
6565
translation: 'cloud_sidebar_orchestration_kubernetes',
6666
},

packages/manager/modules/kubernetes/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import '@uirouter/angularjs';
33
import 'oclazyload';
44

55
import '@ovh-ux/manager-core';
6+
import component from './component';
67

78
const moduleName = 'ovhManagerKubernetes';
89

@@ -11,6 +12,7 @@ angular
1112
'ui.router',
1213
'ovhManagerCore',
1314
'oc.lazyLoad',
15+
component,
1416
])
1517
.config(/* @ngInject */($stateProvider) => {
1618
$stateProvider.state('kube.**', {

packages/manager/modules/kubernetes/src/list/component/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ angular.module(moduleName, [
1818
views: {
1919
kubernetesListView: 'ovhManagerKubernetesListComponent',
2020
},
21-
translations: {
22-
value: ['.'],
23-
format: 'json',
24-
},
2521
});
2622
})
23+
.run(/* @ngTranslationsInject:json ./translations */)
2724
.component('ovhManagerKubernetesListComponent', listComponent)
2825
.service('PublicCloudProjectKubernetes', service);
2926

packages/manager/modules/pci/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@ovh-ux/ng-ovh-uirouter-layout": "^0.0.0",
3535
"@ovh-ux/manager-cloud-styles": "^0.3.0-alpha.0",
3636
"@ovh-ux/manager-core": "^5.0.0",
37+
"@ovh-ux/manager-kubernetes": "^0.1.0-alpha.0",
3738
"@ovh-ux/manager-telecom-styles": "^2.0.2",
3839
"@ovh-ux/ng-ovh-api-wrappers": "^3.0.0",
3940
"@ovh-ux/ng-ovh-cloud-universe-components": "^1.1.0-alpha.0",

packages/manager/modules/pci/src/projects/project/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'angular-translate';
66
import 'ovh-api-services';
77
import 'ovh-ui-angular';
88

9+
import kubernetes from './kubernetes';
910
import legacy from './legacy';
1011
import storages from './storages';
1112
import routing from './project.routing';
@@ -19,6 +20,8 @@ angular
1920
'ovhManagerCore',
2021
'ovh-api-services',
2122
'pascalprecht.translate',
23+
kubernetes,
24+
legacy,
2225
storages,
2326
])
2427
.config(routing);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import angular from 'angular';
2+
3+
import '@ovh-ux/manager-kubernetes';
4+
5+
import routing from './routing';
6+
7+
const moduleName = 'ovhManagerPciProjectKubernetes';
8+
9+
angular
10+
.module(moduleName, [
11+
'ovhManagerKubernetes',
12+
])
13+
.config(routing);
14+
15+
export default moduleName;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default /* @ngInject */ ($stateProvider) => {
2+
$stateProvider
3+
.state('pci.projects.project.kubernetes', {
4+
url: '/kube',
5+
component: 'ovhManagerKubernetesList',
6+
redirectTo: 'pci.projects.project.kubernetes.list',
7+
resolve: {
8+
projectId: /* @ngInject */ $transition$ => $transition$.params().projectId,
9+
},
10+
})
11+
.state('pci.projects.project.kubernetes.list', {
12+
views: {
13+
kubernetesListView: 'ovhManagerKubernetesListComponent',
14+
},
15+
});
16+
};

0 commit comments

Comments
 (0)