Skip to content
Snippets Groups Projects
Commit e98b65db authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Merge branch '294-add-domain-to-cluster' into 'develop'

294 add domain to cluster

See merge request !179
parents 112ca7b4 b9067284
No related branches found
No related tags found
2 merge requests!184Develop,!179294 add domain to cluster
...@@ -13348,9 +13348,9 @@ ...@@ -13348,9 +13348,9 @@
"dev": true "dev": true
}, },
"node_modules/schema-utils": { "node_modules/schema-utils": {
"version": "4.3.2", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz",
"integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/json-schema": "^7.0.9", "@types/json-schema": "^7.0.9",
...@@ -13965,19 +13965,20 @@ ...@@ -13965,19 +13965,20 @@
} }
}, },
"node_modules/sonarqube-scanner": { "node_modules/sonarqube-scanner": {
"version": "3.5.0", "version": "3.4.0",
"resolved": "https://registry.npmjs.org/sonarqube-scanner/-/sonarqube-scanner-3.5.0.tgz", "resolved": "https://registry.npmjs.org/sonarqube-scanner/-/sonarqube-scanner-3.4.0.tgz",
"integrity": "sha512-MiIJhFv8p/ePlTO0A1uC6UOxfIjSnjEw3sZ1G8q9mt6y2W/q/QrE/XWo0zCKkS8flmX0T2fjEuaDHnS/P9QQmw==", "integrity": "sha512-2B/IgA2CkTg8GPKlkqxSPuWLlcEZcoRxWkcZYr47f8Ni1YOEbCS/EUl9/bn68sanZ0lee5adRPuQpGj0EiEW2A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"adm-zip": "0.5.12", "adm-zip": "^0.5.10",
"fancy-log": "2.0.0", "fancy-log": "^2.0.0",
"https-proxy-agent": "7.0.4", "https-proxy-agent": "^7.0.1",
"jest-sonar-reporter": "2.0.0", "jest-sonar-reporter": "^2.0.0",
"mkdirp": "3.0.1", "mkdirp": "^3.0.1",
"node-downloader-helper": "2.1.9", "node-downloader-helper": "^2.1.9",
"progress": "2.0.3", "progress": "^2.0.3",
"slugify": "1.6.6" "shell-quote": "^1.8.1",
"slugify": "^1.6.6"
}, },
"bin": { "bin": {
"sonar-scanner": "src/bin/sonar-scanner" "sonar-scanner": "src/bin/sonar-scanner"
...@@ -13986,15 +13987,6 @@ ...@@ -13986,15 +13987,6 @@
"node": ">= 16" "node": ">= 16"
} }
}, },
"node_modules/sonarqube-scanner/node_modules/adm-zip": {
"version": "0.5.12",
"resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.12.tgz",
"integrity": "sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ==",
"dev": true,
"engines": {
"node": ">=6.0"
}
},
"node_modules/sonarqube-scanner/node_modules/mkdirp": { "node_modules/sonarqube-scanner/node_modules/mkdirp": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
...@@ -15200,14 +15192,13 @@ ...@@ -15200,14 +15192,13 @@
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
}, },
"node_modules/webpack": { "node_modules/webpack": {
"version": "5.99.7", "version": "5.97.1",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.99.7.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.97.1.tgz",
"integrity": "sha512-CNqKBRMQjwcmKR0idID5va1qlhrqVUKpovi+Ec79ksW8ux7iS1+A6VqzfZXgVYCFRKl7XL5ap3ZoMpwBJxcg0w==", "integrity": "sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/eslint-scope": "^3.7.7", "@types/eslint-scope": "^3.7.7",
"@types/estree": "^1.0.6", "@types/estree": "^1.0.6",
"@types/json-schema": "^7.0.15",
"@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/ast": "^1.14.1",
"@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1",
"@webassemblyjs/wasm-parser": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1",
...@@ -15224,9 +15215,9 @@ ...@@ -15224,9 +15215,9 @@
"loader-runner": "^4.2.0", "loader-runner": "^4.2.0",
"mime-types": "^2.1.27", "mime-types": "^2.1.27",
"neo-async": "^2.6.2", "neo-async": "^2.6.2",
"schema-utils": "^4.3.2", "schema-utils": "^3.2.0",
"tapable": "^2.1.1", "tapable": "^2.1.1",
"terser-webpack-plugin": "^5.3.11", "terser-webpack-plugin": "^5.3.10",
"watchpack": "^2.4.1", "watchpack": "^2.4.1",
"webpack-sources": "^3.2.3" "webpack-sources": "^3.2.3"
}, },
...@@ -15416,6 +15407,46 @@ ...@@ -15416,6 +15407,46 @@
} }
} }
}, },
"node_modules/webpack/node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"dev": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/webpack/node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true
},
"node_modules/webpack/node_modules/schema-utils": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
"integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.8",
"ajv": "^6.12.5",
"ajv-keywords": "^3.5.2"
},
"engines": {
"node": ">= 10.13.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
}
},
"node_modules/websocket-driver": { "node_modules/websocket-driver": {
"version": "0.7.4", "version": "0.7.4",
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
...@@ -25320,9 +25351,9 @@ ...@@ -25320,9 +25351,9 @@
"dev": true "dev": true
}, },
"schema-utils": { "schema-utils": {
"version": "4.3.2", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz",
"integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/json-schema": "^7.0.9", "@types/json-schema": "^7.0.9",
...@@ -25808,27 +25839,22 @@ ...@@ -25808,27 +25839,22 @@
} }
}, },
"sonarqube-scanner": { "sonarqube-scanner": {
"version": "3.5.0", "version": "3.4.0",
"resolved": "https://registry.npmjs.org/sonarqube-scanner/-/sonarqube-scanner-3.5.0.tgz", "resolved": "https://registry.npmjs.org/sonarqube-scanner/-/sonarqube-scanner-3.4.0.tgz",
"integrity": "sha512-MiIJhFv8p/ePlTO0A1uC6UOxfIjSnjEw3sZ1G8q9mt6y2W/q/QrE/XWo0zCKkS8flmX0T2fjEuaDHnS/P9QQmw==", "integrity": "sha512-2B/IgA2CkTg8GPKlkqxSPuWLlcEZcoRxWkcZYr47f8Ni1YOEbCS/EUl9/bn68sanZ0lee5adRPuQpGj0EiEW2A==",
"dev": true, "dev": true,
"requires": { "requires": {
"adm-zip": "0.5.12", "adm-zip": "^0.5.10",
"fancy-log": "2.0.0", "fancy-log": "^2.0.0",
"https-proxy-agent": "7.0.4", "https-proxy-agent": "^7.0.1",
"jest-sonar-reporter": "2.0.0", "jest-sonar-reporter": "^2.0.0",
"mkdirp": "3.0.1", "mkdirp": "^3.0.1",
"node-downloader-helper": "2.1.9", "node-downloader-helper": "^2.1.9",
"progress": "2.0.3", "progress": "^2.0.3",
"slugify": "1.6.6" "shell-quote": "^1.8.1",
"slugify": "^1.6.6"
}, },
"dependencies": { "dependencies": {
"adm-zip": {
"version": "0.5.12",
"resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.12.tgz",
"integrity": "sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ==",
"dev": true
},
"mkdirp": { "mkdirp": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
...@@ -26726,14 +26752,13 @@ ...@@ -26726,14 +26752,13 @@
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
}, },
"webpack": { "webpack": {
"version": "5.99.7", "version": "5.97.1",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.99.7.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.97.1.tgz",
"integrity": "sha512-CNqKBRMQjwcmKR0idID5va1qlhrqVUKpovi+Ec79ksW8ux7iS1+A6VqzfZXgVYCFRKl7XL5ap3ZoMpwBJxcg0w==", "integrity": "sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/eslint-scope": "^3.7.7", "@types/eslint-scope": "^3.7.7",
"@types/estree": "^1.0.6", "@types/estree": "^1.0.6",
"@types/json-schema": "^7.0.15",
"@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/ast": "^1.14.1",
"@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1",
"@webassemblyjs/wasm-parser": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1",
...@@ -26750,11 +26775,42 @@ ...@@ -26750,11 +26775,42 @@
"loader-runner": "^4.2.0", "loader-runner": "^4.2.0",
"mime-types": "^2.1.27", "mime-types": "^2.1.27",
"neo-async": "^2.6.2", "neo-async": "^2.6.2",
"schema-utils": "^4.3.2", "schema-utils": "^3.2.0",
"tapable": "^2.1.1", "tapable": "^2.1.1",
"terser-webpack-plugin": "^5.3.11", "terser-webpack-plugin": "^5.3.10",
"watchpack": "^2.4.1", "watchpack": "^2.4.1",
"webpack-sources": "^3.2.3" "webpack-sources": "^3.2.3"
},
"dependencies": {
"ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true
},
"schema-utils": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
"integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.8",
"ajv": "^6.12.5",
"ajv-keywords": "^3.5.2"
}
}
} }
}, },
"webpack-dev-middleware": { "webpack-dev-middleware": {
...@@ -14,4 +14,5 @@ export class ClusterManager { ...@@ -14,4 +14,5 @@ export class ClusterManager {
public deployment: ClusterDeployment; public deployment: ClusterDeployment;
public externalNetworks: ClusterExtNetwork[] public externalNetworks: ClusterExtNetwork[]
public domainNames: string[]; public domainNames: string[];
public state : string;
} }
\ No newline at end of file
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
<th pSortableColumn="codename" id="codename"> {{ 'CLUSTERS.CODENAME' | translate }} <th pSortableColumn="codename" id="codename"> {{ 'CLUSTERS.CODENAME' | translate }}
<p-sortIcon field="codename"></p-sortIcon> <p-sortIcon field="codename"></p-sortIcon>
</th> </th>
<th pSortableColumn="state" id="state"> {{ 'CLUSTERS.STATE' | translate }}
<p-sortIcon field="state"></p-sortIcon>
</th>
<th pSortableColumn="creationDate" id="creationDate"> {{ 'CLUSTERS.CREATION_DATE' | translate }} <th pSortableColumn="creationDate" id="creationDate"> {{ 'CLUSTERS.CREATION_DATE' | translate }}
<p-sortIcon field="creationDate"></p-sortIcon> <p-sortIcon field="creationDate"></p-sortIcon>
</th> </th>
...@@ -43,6 +46,7 @@ ...@@ -43,6 +46,7 @@
<td [routerLink]="[cluster.id]">{{cluster.id}}</td> <td [routerLink]="[cluster.id]">{{cluster.id}}</td>
<td>{{cluster.name}}</td> <td>{{cluster.name}}</td>
<td>{{cluster.codename}}</td> <td>{{cluster.codename}}</td>
<td>{{('CLUSTERS.'+cluster.state.toString().toUpperCase() ) | translate}}</td>
<td>{{cluster.creationDate | date: 'dd-MM-yyyy HH:mm'}}</td> <td>{{cluster.creationDate | date: 'dd-MM-yyyy HH:mm'}}</td>
<td>{{cluster.modificationDate | date: 'dd-MM-yyyy HH:mm'}}</td> <td>{{cluster.modificationDate | date: 'dd-MM-yyyy HH:mm'}}</td>
<td class="text-right"> <td class="text-right">
......
...@@ -60,6 +60,16 @@ ...@@ -60,6 +60,16 @@
</div> </div>
</div> </div>
<div class="form-group">
<label for="state" class="col-sm-2 control-label">{{ 'CLUSTERS.STATE' | translate }}</label>
<div class="col-sm-10">
<div class="col-sm-10">
<input type="text" class="form-control" id="state" name="state"
placeholder="{{'CLUSTERS.' + cluster.state.toString().toUpperCase()| translate}}" [disabled]="true">
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="clusterCreationDate" class="col-sm-2 control-label">{{ 'CLUSTERS.CREATION_DATE' | translate }}</label> <label for="clusterCreationDate" class="col-sm-2 control-label">{{ 'CLUSTERS.CREATION_DATE' | translate }}</label>
......
...@@ -21,6 +21,7 @@ describe('ClusterManagerDetailsComponent', () => { ...@@ -21,6 +21,7 @@ describe('ClusterManagerDetailsComponent', () => {
const mockCluster: ClusterManager = { const mockCluster: ClusterManager = {
id: 1, id: 1,
name: 'Test Cluster', name: 'Test Cluster',
state: "UP",
description: 'Test Description', description: 'Test Description',
externalNetworks: [], externalNetworks: [],
creationDate: new Date('2025-01-01'), creationDate: new Date('2025-01-01'),
...@@ -169,6 +170,7 @@ describe('ClusterManagerDetailsComponent', () => { ...@@ -169,6 +170,7 @@ describe('ClusterManagerDetailsComponent', () => {
const mockResponse: ClusterManager = { const mockResponse: ClusterManager = {
id: 1, id: 1,
name: 'Test Cluster', name: 'Test Cluster',
state:"UP",
description: 'Test Description', description: 'Test Description',
externalNetworks: [], externalNetworks: [],
creationDate: new Date('2025-01-01'), creationDate: new Date('2025-01-01'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment