From 29466afaa1414f4c7f4cb2bf4b5547da3373e9ed Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Wed, 20 Jan 2021 10:16:49 +0100 Subject: [PATCH 1/3] feat(kube): create access and security tile Signed-off-by: Marie JONES --- .../kubernetes/details/service/service.html | 34 +++++++++++-------- .../service/translations/Messages_fr_FR.json | 3 +- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html index fcdfbee49a9c..336794ede48f 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html @@ -135,17 +135,6 @@ - - - - - - - + + +
+ + - + +
@@ -218,6 +213,15 @@
+ + + + +
diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json index 7c194a98b7b8..33a7727bac17 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json @@ -55,5 +55,6 @@ "kube_service_common_edit_security_update_policy": "Changer la politique de sécurité", "kube_service_minor_version_upgrade": "Passer à la version mineure suivante", "kube_service_cluster_version_not_supported_message": "Votre version de Kubernetes n'est plus supportée. Veuillez évoluer vers une version supportée.", - "kube_service_cluster_versions_guide": "Vous pouvez trouver plus de détails sur les versions prises en charge dans notre documentation officielle End-of-Support et End-of-Life policy" + "kube_service_cluster_versions_guide": "Vous pouvez trouver plus de détails sur les versions prises en charge dans notre documentation officielle End-of-Support et End-of-Life policy", + "kube_service_access_security": "Accès et sécurité" } From 1d69b837b47006cca95e4ef8badc41335a712b6f Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Wed, 20 Jan 2021 17:10:27 +0100 Subject: [PATCH 2/3] feat(kube): add ip restrictions ref: MANAGER-5296 Signed-off-by: Marie JONES --- .../project/kubernetes/details/component.js | 2 + .../kubernetes/details/details.module.js | 2 + .../kubernetes/details/details.routing.js | 10 ++ .../details/restrictions/IPv4.class.js | 12 ++ .../details/restrictions/component.js | 14 +++ .../details/restrictions/controller.js | 112 ++++++++++++++++++ .../kubernetes/details/restrictions/index.js | 25 ++++ .../restrictions/restrictions.module.js | 14 +++ .../details/restrictions/routing.js | 27 +++++ .../details/restrictions/template.html | 111 +++++++++++++++++ .../translations/Messages_fr_FR.json | 14 +++ .../details/service/service.component.js | 2 + .../details/service/service.controller.js | 12 ++ .../kubernetes/details/service/service.html | 30 +++++ .../service/translations/Messages_fr_FR.json | 7 +- .../project/kubernetes/details/template.html | 5 + .../details/translations/Messages_fr_FR.json | 3 +- 17 files changed, 400 insertions(+), 2 deletions(-) create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/IPv4.class.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/component.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/controller.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/index.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/restrictions.module.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/routing.js create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/template.html create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_FR.json diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/component.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/component.js index 30b312c25762..ce06a30b6a2a 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/component.js +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/component.js @@ -9,6 +9,8 @@ const component = { guideUrl: '<', nodePoolsLink: '<', serviceLink: '<', + restrictionsLink: '<', + restrictions: '<', }, template, controller, diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.module.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.module.js index 62a8ed7a276a..e7c25e2d438e 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.module.js +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.module.js @@ -12,6 +12,7 @@ import routing from './details.routing'; import containersComponent from './containers/index'; import nodePools from './node-pool'; import serviceComponent from './service/index'; +import restrictions from './restrictions'; import './index.scss'; @@ -28,6 +29,7 @@ angular containersComponent, nodePools, serviceComponent, + restrictions, ]) .config(routing) .run(/* @ngTranslationsInject:json ./translations */) diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.routing.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.routing.js index 96fb766d00fd..a9a2f54e0d01 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.routing.js +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/details.routing.js @@ -18,6 +18,11 @@ export default /* @ngInject */ ($stateProvider) => { kubeId, projectId, }), + restrictionsLink: /* @ngInject */ ($state, kubeId, projectId) => + $state.href('pci.projects.project.kubernetes.details.restrictions', { + kubeId, + projectId, + }), currentActiveLink: /* @ngInject */ ($transition$, $state) => () => $state.href($state.current.name, $transition$.params()), goToKubernetesDetails: ($state, CucCloudMessage, kubeId, projectId) => ( @@ -56,6 +61,11 @@ export default /* @ngInject */ ($stateProvider) => { kubeId, projectId, }), + loadRestrictions: /* @ngInject */ ($http, kubeId, projectId) => () => + $http + .get(`/cloud/project/${projectId}/kube/${kubeId}/ipRestrictions`) + .then(({ data }) => data) + .catch(() => []), }, redirectTo: 'pci.projects.project.kubernetes.details.service', diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/IPv4.class.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/IPv4.class.js new file mode 100644 index 000000000000..2b6909f4ff25 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/IPv4.class.js @@ -0,0 +1,12 @@ +export default class IPv4 { + constructor(ip) { + const [cidr, mask] = ip.split('/'); + this.address = ip; + this.cidr = cidr; + this.mask = parseInt(mask, 10) || 32; + } + + format() { + return `${this.cidr}/${this.mask}`; + } +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/component.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/component.js new file mode 100644 index 000000000000..69ced5ef2dc7 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/component.js @@ -0,0 +1,14 @@ +import controller from './controller'; +import template from './template.html'; + +const component = { + bindings: { + restrictions: '<', + updateRestrictions: '<', + deleteRestriction: '<', + }, + controller, + template, +}; + +export default component; diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/controller.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/controller.js new file mode 100644 index 000000000000..f12e17833777 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/controller.js @@ -0,0 +1,112 @@ +import IPv4 from './IPv4.class'; + +export default class KubernetesRestrictionsCtrl { + /* @ngInject */ + constructor($translate, CucCloudMessage) { + this.$translate = $translate; + this.CucCloudMessage = CucCloudMessage; + } + + $onInit() { + this.loadMessages(); + this.getIps(this.restrictions); + this.selectRow(this.ips.length); + this.currentIp = null; + } + + loadMessages() { + this.CucCloudMessage.unSubscribe( + 'pci.projects.project.kubernetes.details.restrictions', + ); + this.messageHandler = this.CucCloudMessage.subscribe( + 'pci.projects.project.kubernetes.details.restrictions', + { onMessage: () => this.refreshMessages() }, + ); + } + + refreshMessages() { + this.messages = this.messageHandler.getMessages(); + } + + getIps(restrictions) { + this.ips = restrictions.map((ip) => new IPv4(ip)); + } + + selectRow(index) { + this.currentEditedRow = index; + } + + addRestriction() { + this.currentIp = null; + this.ips.push({}); + this.selectRow(this.ips.length - 1); + } + + editRestriction(rowIndex) { + this.selectRow(rowIndex); + this.currentIp = this.ips[rowIndex].address; + if (!this.ips[this.ips.length - 1].address) { + this.ips.pop(); + } + } + + deleteIp(ip, index) { + this.isLoading = true; + return this.deleteRestriction(ip.address) + .then(() => { + this.ips.splice(index, 1); + return this.CucCloudMessage.success( + this.$translate.instant('kube_restrictions_add_success'), + ); + }) + .catch( + (error) => + `${this.CucCloudMessage.error( + this.$translate.instant('kube_restrictions_add_error'), + )}${error.data}`, + ) + .finally(() => { + this.isLoading = false; + }); + } + + saveRestrictions(index) { + this.isLoading = true; + this.ips[index] = new IPv4(this.currentIp); + this.selectRow(this.ips.length); + return this.updateRestrictions(this.ips.map((ip) => ip.format())) + .then((restrictions) => { + this.getIps(restrictions); + return this.CucCloudMessage.success( + this.$translate.instant('kube_restrictions_add_success'), + ); + }) + .catch( + (error) => + `${this.CucCloudMessage.error( + this.$translate.instant('kube_restrictions_add_error'), + )}${error.data}`, + ) + .finally(() => { + this.isLoading = false; + }); + } + + isIPValid() { + try { + const [cidr, mask] = this.currentIp.split('/'); + const splittedCidr = cidr.split('.'); + if (splittedCidr.length !== 4) { + return false; + } + if (mask || mask === '') { + splittedCidr.push(mask); + } + return splittedCidr.every( + (value) => parseInt(value, 10) >= 0 && parseInt(value, 10) < 256, + ); + } catch (error) { + return false; + } + } +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/index.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/index.js new file mode 100644 index 000000000000..f8af646fd13d --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/index.js @@ -0,0 +1,25 @@ +import angular from 'angular'; +import '@uirouter/angularjs'; +import 'oclazyload'; + +const moduleName = 'ovhManagerPciProjectKubernetesDetailsLazyloading'; + +angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config( + /* @ngInject */ ($stateProvider) => { + $stateProvider.state( + 'pci.projects.project.kubernetes.details.restrictions.**', + { + url: '/restrictions', + lazyLoad: ($transition$) => { + const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); + + return import('./restrictions.module').then((mod) => + $ocLazyLoad.inject(mod.default || mod), + ); + }, + }, + ); + }, +); + +export default moduleName; diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/restrictions.module.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/restrictions.module.js new file mode 100644 index 000000000000..fc0b9e897d82 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/restrictions.module.js @@ -0,0 +1,14 @@ +import angular from 'angular'; + +import component from './component'; +import routing from './routing'; + +const moduleName = 'ovhManagerPciProjectKubernetesRestrictions'; + +angular + .module(moduleName, []) + .config(routing) + .component('pciProjectKubernetesRestrictions', component) + .run(/* @ngTranslationsInject:json ./translations */); + +export default moduleName; diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/routing.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/routing.js new file mode 100644 index 000000000000..2bb814ea8eec --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/routing.js @@ -0,0 +1,27 @@ +export default /* @ngInject */ ($stateProvider) => { + $stateProvider.state('pci.projects.project.kubernetes.details.restrictions', { + url: '/restrictions', + views: { + kubernetesView: 'pciProjectKubernetesRestrictions', + }, + resolve: { + breadcrumb: /* @ngInject */ ($translate) => + $translate.instant('kube_restrictions'), + restrictions: /* @ngInject */ (loadRestrictions) => loadRestrictions(), + updateRestrictions: /* @ngInject */ ($http, kubeId, projectId) => (ips) => + $http + .put(`/cloud/project/${projectId}/kube/${kubeId}/ipRestrictions`, { + ips, + }) + .then(({ data }) => data), + deleteRestriction: /* @ngInject */ ($http, kubeId, projectId) => (ip) => + $http + .delete( + `/cloud/project/${projectId}/kube/${kubeId}/ipRestrictions/${encodeURIComponent( + ip, + )}`, + ) + .then(({ data }) => data), + }, + }); +}; diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/template.html b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/template.html new file mode 100644 index 000000000000..37533dc0b68c --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/template.html @@ -0,0 +1,111 @@ +
+

+

+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
+
+
+
diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_FR.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_FR.json new file mode 100644 index 000000000000..b12c0af6fe3b --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_FR.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Accès APIServer", + "kube_restrictions_manage": "Gérer les accès à l'APIServer", + "kube_restrictions_manage_description": "Choisissez les plages IPv4 pouvant accéder à l'APIServer de votre cluster. En l'absence d'IP, aucune restriction n'est appliquée", + "kube_restrictions_allowed_clients": "Clients autorisés", + "kube_restrictions_add": "Ajouter une nouvelle limitation", + "kube_restrictions_allowed_clients_add": "IP à ajouter", + "kube_restrictions_add_success": "Les limitations APIServer ont été modifiées avec succès.", + "kube_restrictions_add_error": "Une erreur est survenue lors de la modification des limitations.", + "kube_restrictions_update": "Valider", + "kube_restrictions_cancel": "Annuler", + "kube_restrictions_edit": "Mettre à jour", + "kube_restrictions_delete": "Supprimer" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.component.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.component.js index 360dc09bfed3..ce9ec67862b3 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.component.js +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.component.js @@ -17,6 +17,8 @@ const component = { updateCluster: '<', updatePolicy: '<', isVersionSupported: '<', + restrictionsLink: '<', + loadRestrictions: '<', }, template, controller, diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.controller.js b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.controller.js index e5ea3a8f1e2f..a4922fe454cb 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.controller.js +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.controller.js @@ -34,6 +34,7 @@ export default class KubernetesServiceCtrl { this.STATUS = STATUS; this.loadingKubeConfig = false; this.loadMessages(); + return this.getRestrictions(); } loadMessages() { @@ -50,6 +51,17 @@ export default class KubernetesServiceCtrl { this.messages = this.messageHandler.getMessages(); } + getRestrictions() { + this.loadingRestrictions = true; + return this.loadRestrictions() + .then((restrictions) => { + this.restrictions = restrictions; + }) + .finally(() => { + this.loadingRestrictions = false; + }); + } + downloadConfigFile() { this.loadingKubeConfig = true; return this.getKubeConfig() diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html index 336794ede48f..fee482eeef0e 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/service.html @@ -222,6 +222,36 @@ > + + + + + + + + + + + + diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json index 33a7727bac17..271b23c9c8ab 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_FR.json @@ -56,5 +56,10 @@ "kube_service_minor_version_upgrade": "Passer à la version mineure suivante", "kube_service_cluster_version_not_supported_message": "Votre version de Kubernetes n'est plus supportée. Veuillez évoluer vers une version supportée.", "kube_service_cluster_versions_guide": "Vous pouvez trouver plus de détails sur les versions prises en charge dans notre documentation officielle End-of-Support et End-of-Life policy", - "kube_service_access_security": "Accès et sécurité" + "kube_service_access_security": "Accès et sécurité", + "kube_service_restrictions": "Limite d'accès à l'APIServer", + "kube_service_restrictions_no_count": "Aucune limitation", + "kube_service_restrictions_count": "{{ count }} plages IPs", + "kube_service_restrictions_one": "1 plage IPs", + "kube_service_restrictions_edit": "Modifier les limitations" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/template.html b/packages/manager/modules/pci/src/projects/project/kubernetes/details/template.html index 93bafc629a06..32bd983d064b 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/template.html +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/template.html @@ -20,6 +20,11 @@ data-active="$ctrl.currentActiveLink() === $ctrl.containersLink" > + + Date: Mon, 8 Feb 2021 16:17:25 +0000 Subject: [PATCH 3/3] fix(i18n): add missing translations [CDS 791] Signed-off-by: CDS Translator Agent --- .../restrictions/translations/Messages_de_DE.json | 14 ++++++++++++++ .../restrictions/translations/Messages_en_GB.json | 14 ++++++++++++++ .../restrictions/translations/Messages_es_ES.json | 14 ++++++++++++++ .../restrictions/translations/Messages_fr_CA.json | 14 ++++++++++++++ .../restrictions/translations/Messages_it_IT.json | 14 ++++++++++++++ .../restrictions/translations/Messages_pl_PL.json | 14 ++++++++++++++ .../restrictions/translations/Messages_pt_PT.json | 14 ++++++++++++++ .../service/translations/Messages_de_DE.json | 8 +++++++- .../service/translations/Messages_en_GB.json | 8 +++++++- .../service/translations/Messages_es_ES.json | 8 +++++++- .../service/translations/Messages_fr_CA.json | 8 +++++++- .../service/translations/Messages_it_IT.json | 8 +++++++- .../service/translations/Messages_pl_PL.json | 8 +++++++- .../service/translations/Messages_pt_PT.json | 8 +++++++- .../details/translations/Messages_de_DE.json | 3 ++- .../details/translations/Messages_en_GB.json | 3 ++- .../details/translations/Messages_es_ES.json | 3 ++- .../details/translations/Messages_fr_CA.json | 3 ++- .../details/translations/Messages_it_IT.json | 3 ++- .../details/translations/Messages_pl_PL.json | 3 ++- .../details/translations/Messages_pt_PT.json | 3 ++- 21 files changed, 161 insertions(+), 14 deletions(-) create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_de_DE.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_en_GB.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_es_ES.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_CA.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_it_IT.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pl_PL.json create mode 100644 packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pt_PT.json diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_de_DE.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_de_DE.json new file mode 100644 index 000000000000..f5b929b835ef --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_de_DE.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Zugang zum APIServer", + "kube_restrictions_manage": "Verwaltung der Zugänge zum APIServer", + "kube_restrictions_manage_description": "Wählen Sie die IPv4-Bereiche aus, die auf den APIServer Ihres Clusters zugreifen können. Wenn keine IP-Adresse besteht, werden keine Einschränkungen angewandt.", + "kube_restrictions_allowed_clients": "Autorisierte Clients", + "kube_restrictions_add": "Eine neue Einschränkung hinzufügen", + "kube_restrictions_allowed_clients_add": "Hinzuzufügende IP", + "kube_restrictions_add_success": "Die Einschränkungen für den APIServer wurden erfolgreich geändert.", + "kube_restrictions_add_error": "Bei der Änderung der Einschränkungen ist ein Fehler aufgetreten.", + "kube_restrictions_update": "Bestätigen", + "kube_restrictions_cancel": "Abbrechen", + "kube_restrictions_edit": "Update", + "kube_restrictions_delete": "Löschen" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_en_GB.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_en_GB.json new file mode 100644 index 000000000000..efc43da23446 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_en_GB.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "APIServer access", + "kube_restrictions_manage": "Manage access to the APIServer", + "kube_restrictions_manage_description": "Choose the IPv4 ranges that can access your cluster’s APIServer. If there is no IP, no restriction is applied", + "kube_restrictions_allowed_clients": "Authorised clients", + "kube_restrictions_add": "Add a new limitation", + "kube_restrictions_allowed_clients_add": "IP to be added", + "kube_restrictions_add_success": "The APIServer limitations have been changed.", + "kube_restrictions_add_error": "An error has occurred modifying the limitations.", + "kube_restrictions_update": "Confirm", + "kube_restrictions_cancel": "Cancel", + "kube_restrictions_edit": "Update", + "kube_restrictions_delete": "Delete" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_es_ES.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_es_ES.json new file mode 100644 index 000000000000..286c4b8433a8 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_es_ES.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Acceso a APIServer", + "kube_restrictions_manage": "Gestionar los accesos a APIServer", + "kube_restrictions_manage_description": "Elija los rangos de IPv4 que pueden acceder a APIServer en su cluster. A falta de IP, no se aplicará ninguna restricción.", + "kube_restrictions_allowed_clients": "Clientes autorizados", + "kube_restrictions_add": "Añadir una nueva limitación", + "kube_restrictions_allowed_clients_add": "IP que desea añadir", + "kube_restrictions_add_success": "Las limitaciones de APIServer se han modificado correctamente.", + "kube_restrictions_add_error": "Se ha producido un error al modificar las limitaciones.", + "kube_restrictions_update": "Aceptar", + "kube_restrictions_cancel": "Cancelar", + "kube_restrictions_edit": "Actualizar", + "kube_restrictions_delete": "Eliminar" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_CA.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_CA.json new file mode 100644 index 000000000000..b12c0af6fe3b --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_fr_CA.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Accès APIServer", + "kube_restrictions_manage": "Gérer les accès à l'APIServer", + "kube_restrictions_manage_description": "Choisissez les plages IPv4 pouvant accéder à l'APIServer de votre cluster. En l'absence d'IP, aucune restriction n'est appliquée", + "kube_restrictions_allowed_clients": "Clients autorisés", + "kube_restrictions_add": "Ajouter une nouvelle limitation", + "kube_restrictions_allowed_clients_add": "IP à ajouter", + "kube_restrictions_add_success": "Les limitations APIServer ont été modifiées avec succès.", + "kube_restrictions_add_error": "Une erreur est survenue lors de la modification des limitations.", + "kube_restrictions_update": "Valider", + "kube_restrictions_cancel": "Annuler", + "kube_restrictions_edit": "Mettre à jour", + "kube_restrictions_delete": "Supprimer" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_it_IT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_it_IT.json new file mode 100644 index 000000000000..3e3a792aeda8 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_it_IT.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Accesso APIServer", + "kube_restrictions_manage": "Gestisci gli accessi all'APIServer", + "kube_restrictions_manage_description": "Scegli le classi IPv4 che possono accedere all'APIServer il tuo cluster. In assenza di IP, non viene applicata nessuna restrizione", + "kube_restrictions_allowed_clients": "Clienti autorizzati", + "kube_restrictions_add": "Aggiungi una nuova limitazione", + "kube_restrictions_allowed_clients_add": "IP da aggiungere", + "kube_restrictions_add_success": "Le limitazioni APIServer sono state modificate correttamente.", + "kube_restrictions_add_error": "Si è verificato un errore durante la modifica dei DNS.", + "kube_restrictions_update": "Conferma", + "kube_restrictions_cancel": "Annulla", + "kube_restrictions_edit": "Aggiorna", + "kube_restrictions_delete": "Elimina" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pl_PL.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pl_PL.json new file mode 100644 index 000000000000..720bea50448d --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pl_PL.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Dostęp APIServer", + "kube_restrictions_manage": "Zarządzanie dostępami do APIServer", + "kube_restrictions_manage_description": "Wybierz zakresy IPv4, które mogą mieć dostęp do APIServer Twojego klastra. W przypadku braku IP nie stosuje się żadnych ograniczeń", + "kube_restrictions_allowed_clients": "Klienci z uprawnieniami dostępu", + "kube_restrictions_add": "Dodaj nowe ograniczenie", + "kube_restrictions_allowed_clients_add": "IP do dodania", + "kube_restrictions_add_success": "Ograniczenia APIServer zostały zmienione.", + "kube_restrictions_add_error": "Wystąpił błąd podczas zmiany ograniczeń.", + "kube_restrictions_update": "Zatwierdź", + "kube_restrictions_cancel": "Anuluj", + "kube_restrictions_edit": "Aktualizuj", + "kube_restrictions_delete": "Usuń" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pt_PT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pt_PT.json new file mode 100644 index 000000000000..5f6ad06b3199 --- /dev/null +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/restrictions/translations/Messages_pt_PT.json @@ -0,0 +1,14 @@ +{ + "kube_restrictions": "Acesso APIServer", + "kube_restrictions_manage": "Gerir os acessos ao APIServer", + "kube_restrictions_manage_description": "Escolha as gamas IPv4 que podem aceder ao APIServer do seu cluster. Em caso de ausência de IP, não é aplicada nenhuma restrição", + "kube_restrictions_allowed_clients": "Clientes autorizados", + "kube_restrictions_add": "Adicionar uma nova limitação", + "kube_restrictions_allowed_clients_add": "IP a adicionar", + "kube_restrictions_add_success": "As limitações APIServer foram alteradas com êxito.", + "kube_restrictions_add_error": "Ocorreu um erro aquando da modificação das limitações.", + "kube_restrictions_update": "Validar", + "kube_restrictions_cancel": "Cancelar", + "kube_restrictions_edit": "Atualizar", + "kube_restrictions_delete": "Eliminar" +} diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_de_DE.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_de_DE.json index fa11a435fa88..6b58bf2c4117 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_de_DE.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_de_DE.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "Ihre Kubernetes-Version wird nicht mehr unterstützt. Bitte wählen Sie eine unterstützte Version.", "kube_service_cluster_versions_guide": "Mehr Informationen zu den unterstützten Versionen finden Sie in unserem offiziellen Informationsmaterial End-of-Support et End-of-Life policy", "kube_service_cluster_status_REDEPLOYING": "Wird erneut bereitgestellt", - "kube_service_reset_kubeconfig": "Kubeconfig zurücksetzen" + "kube_service_reset_kubeconfig": "Kubeconfig zurücksetzen", + "kube_service_access_security": "Zugang und Sicherheit", + "kube_service_restrictions": "Zugangsbeschränkung für APIServer", + "kube_service_restrictions_no_count": "Keine Einschränkung", + "kube_service_restrictions_count": "{{ count }} IP-Bereiche", + "kube_service_restrictions_one": "1 IP-Bereich", + "kube_service_restrictions_edit": "Die Einschränkungen ändern" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_en_GB.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_en_GB.json index d62beadc0cbf..5a9271c2d4c4 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_en_GB.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_en_GB.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "Your version of Kubernetes is no longer supported. Please upgrade to a supported version.", "kube_service_cluster_versions_guide": "You can find more information about the versions supported in our official End-of-Support and End-of-Life policy documentation.", "kube_service_cluster_status_REDEPLOYING": "Redeploying...", - "kube_service_reset_kubeconfig": "Reset kubeconfig" + "kube_service_reset_kubeconfig": "Reset kubeconfig", + "kube_service_access_security": "Access and security", + "kube_service_restrictions": "Access limit to APIServer", + "kube_service_restrictions_no_count": "No limit", + "kube_service_restrictions_count": "{{ count }} IP ranges", + "kube_service_restrictions_one": "1 IP range", + "kube_service_restrictions_edit": "Modify limitations" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_es_ES.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_es_ES.json index 3550d2c4628d..f1bbd4615d4d 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_es_ES.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_es_ES.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "Su versión de Kubernetes no es compatible. Por favor, utilice una versión compatible.", "kube_service_cluster_versions_guide": "Para más información sobre las versiones compatibles, consulte nuestra documentación oficial sobre End-of-Support y End-of-Life", "kube_service_cluster_status_REDEPLOYING": "Redesplegando...", - "kube_service_reset_kubeconfig": "Restaurar el kubeconfig" + "kube_service_reset_kubeconfig": "Restaurar el kubeconfig", + "kube_service_access_security": "Acceso y seguridad", + "kube_service_restrictions": "Límite de acceso a APIServer", + "kube_service_restrictions_no_count": "Sin límite", + "kube_service_restrictions_count": "{{ count }} rangos de IP", + "kube_service_restrictions_one": "1 rango de IP", + "kube_service_restrictions_edit": "Modificar las limitaciones" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_CA.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_CA.json index 7c194a98b7b8..271b23c9c8ab 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_CA.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_fr_CA.json @@ -55,5 +55,11 @@ "kube_service_common_edit_security_update_policy": "Changer la politique de sécurité", "kube_service_minor_version_upgrade": "Passer à la version mineure suivante", "kube_service_cluster_version_not_supported_message": "Votre version de Kubernetes n'est plus supportée. Veuillez évoluer vers une version supportée.", - "kube_service_cluster_versions_guide": "Vous pouvez trouver plus de détails sur les versions prises en charge dans notre documentation officielle End-of-Support et End-of-Life policy" + "kube_service_cluster_versions_guide": "Vous pouvez trouver plus de détails sur les versions prises en charge dans notre documentation officielle End-of-Support et End-of-Life policy", + "kube_service_access_security": "Accès et sécurité", + "kube_service_restrictions": "Limite d'accès à l'APIServer", + "kube_service_restrictions_no_count": "Aucune limitation", + "kube_service_restrictions_count": "{{ count }} plages IPs", + "kube_service_restrictions_one": "1 plage IPs", + "kube_service_restrictions_edit": "Modifier les limitations" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_it_IT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_it_IT.json index 57cd64e58a61..e9e82385498a 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_it_IT.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_it_IT.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "La tua versione di Kubernetes non è più supportata. È necessario effettuare l’upgrade a una versione compatibile.", "kube_service_cluster_versions_guide": "Per maggiori informazioni, consulta la nostra documentazione ufficiale End-of-Support e End-of-Life policy ", "kube_service_cluster_status_REDEPLOYING": "Nuovo deploy in corso...", - "kube_service_reset_kubeconfig": "Reinizializza kubeconfig" + "kube_service_reset_kubeconfig": "Reinizializza kubeconfig", + "kube_service_access_security": "Accesso e sicurezza", + "kube_service_restrictions": "Limite di accesso all'APIServer", + "kube_service_restrictions_no_count": "Nessun limite", + "kube_service_restrictions_count": "{{ count }} classi di IP", + "kube_service_restrictions_one": "1 classe di IP", + "kube_service_restrictions_edit": "Modifica le limitazioni" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pl_PL.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pl_PL.json index b9b1e44553a9..375247a82563 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pl_PL.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pl_PL.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "Twoja wersja Kubernetes nie jest już wspierana. Zaktualizuj Kubernetes do wspieranej wersji.", "kube_service_cluster_versions_guide": "Więcej informacji o wspieranych przez nas wersjach znajdziesz w naszej dokumentacji End-of-Support i End-of-Life policy", "kube_service_cluster_status_REDEPLOYING": "Trwa ponowne wdrożenie", - "kube_service_reset_kubeconfig": "Resetuj kubeconfig" + "kube_service_reset_kubeconfig": "Resetuj kubeconfig", + "kube_service_access_security": "Dostęp i bezpieczeństwo", + "kube_service_restrictions": "Ograniczenie dostępu do APIServer", + "kube_service_restrictions_no_count": "Bez ograniczeń", + "kube_service_restrictions_count": "Liczba zakresów IP: {{count}} ", + "kube_service_restrictions_one": "1 zakres IP", + "kube_service_restrictions_edit": "Zmień ograniczenia" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pt_PT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pt_PT.json index c4eb82091400..351bd3eabcba 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pt_PT.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/service/translations/Messages_pt_PT.json @@ -55,5 +55,11 @@ "kube_service_cluster_version_not_supported_message": "A sua versão de Kubernetes já não é suportada. Passe para uma versão suportada.", "kube_service_cluster_versions_guide": "Pode saber mais sobre as versões suportadas na nossa documentação oficial a href=\"{{ versionGuideUrl }}\" rel=\"noopener\" target=\"_blank\">End-of-Support e End-of-Life policy", "kube_service_cluster_status_REDEPLOYING": "Reimplementação em curso", - "kube_service_reset_kubeconfig": "Reiniciar o kubeconfig" + "kube_service_reset_kubeconfig": "Reiniciar o kubeconfig", + "kube_service_access_security": "Acesso e segurança", + "kube_service_restrictions": "Limite de acesso ao APIServer", + "kube_service_restrictions_no_count": "Nenhum limite", + "kube_service_restrictions_count": "{{ count }} intervalos IP", + "kube_service_restrictions_one": "1 intervalo IP", + "kube_service_restrictions_edit": "Modificar as limitações" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_de_DE.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_de_DE.json index 5e79185d0fb2..b0726cb91780 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_de_DE.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_de_DE.json @@ -6,5 +6,6 @@ "kube_nodes": "Nodes", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }} GB RAM {{ diskCapacity }} GB Festplatte)", "kube_containers_and_services": "Container und Dienste", - "kube_node_pools": "Node-Pools" + "kube_node_pools": "Node-Pools", + "kube_restrictions": "Zugang zum APIServer" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_en_GB.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_en_GB.json index 7f79e42f3648..d7b34c806be6 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_en_GB.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_en_GB.json @@ -6,5 +6,6 @@ "kube_nodes": "Nodes", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }} GB RAM {{ diskCapacity }} GB disk)", "kube_containers_and_services": "Containers and services", - "kube_node_pools": "Node pools" + "kube_node_pools": "Node pools", + "kube_restrictions": "APIServer access" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_es_ES.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_es_ES.json index 1a4617fc5d82..31e7a91de894 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_es_ES.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_es_ES.json @@ -6,5 +6,6 @@ "kube_nodes": "Nodos", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }} GB RAM {{ diskCapacity }} GB disco)", "kube_containers_and_services": "Contenedores y servicios", - "kube_node_pools": "Pools de nodos" + "kube_node_pools": "Pools de nodos", + "kube_restrictions": "Acceso a APIServer" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_fr_CA.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_fr_CA.json index 5084a99d31c2..7daa252bd5c8 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_fr_CA.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_fr_CA.json @@ -6,5 +6,6 @@ "kube_nodes": "Nœuds", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }}Go RAM {{ diskCapacity }}Go Disque)", "kube_containers_and_services": "Conteneurs et services", - "kube_node_pools": "Pools de nœuds" + "kube_node_pools": "Pools de nœuds", + "kube_restrictions": "Accès APIServer" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_it_IT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_it_IT.json index 087cc8cdd7f4..1bc21b5f1b83 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_it_IT.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_it_IT.json @@ -6,5 +6,6 @@ "kube_nodes": "Nodi", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }} GB RAM {{ diskCapacity }} GB disco)", "kube_containers_and_services": "Container e servizi", - "kube_node_pools": "Pool di nodi" + "kube_node_pools": "Pool di nodi", + "kube_restrictions": "Accesso APIServer" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pl_PL.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pl_PL.json index 8b01e8b37b16..6d6c38767322 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pl_PL.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pl_PL.json @@ -6,5 +6,6 @@ "kube_nodes": "Węzły", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }}GB RAM {{ diskCapacity }} GB Dysk)", "kube_containers_and_services": "Kontenery i usługi", - "kube_node_pools": "Pule węzłów" + "kube_node_pools": "Pule węzłów", + "kube_restrictions": "Dostęp APIServer" } diff --git a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pt_PT.json b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pt_PT.json index 1f1c170761fe..54dbba63b4ec 100644 --- a/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pt_PT.json +++ b/packages/manager/modules/pci/src/projects/project/kubernetes/details/translations/Messages_pt_PT.json @@ -6,5 +6,6 @@ "kube_nodes": "Nós", "kube_flavor": "{{ name }} ({{ cpuNumber }} CPU {{ ramCapacity }}GB RAM {{ diskCapacity }}GB disco)", "kube_containers_and_services": "Containers e serviços", - "kube_node_pools": "Pools de nós" + "kube_node_pools": "Pools de nós", + "kube_restrictions": "Acesso APIServer" }