From a04089963c3f0b32042954b35b3958f748eb3c2e Mon Sep 17 00:00:00 2001 From: Luis Vega Date: Tue, 21 Nov 2023 21:06:12 +0000 Subject: [PATCH 1/2] Feature 11002: Deprecate Helmv2 Signed-off-by: Luis Vega --- 05-osm-usage.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/05-osm-usage.md b/05-osm-usage.md index c2f48cb..4f71e6d 100644 --- a/05-osm-usage.md +++ b/05-osm-usage.md @@ -1700,6 +1700,17 @@ osm repo-show bitnami ### KNF Service on-boarding and instantiation KNFs can be on-boarded using Helm Charts or Juju Bundles. In the following section is shown an example with Helm Chart and for Juju Bundles. +Helm v2 has been deprecated since 2020. Starting from OSM REL15, we no longer support it. If you attempt to deploy a KNF using Helm v2, you will encounter the following error: + +```bash +ERROR: Error 422: { + "code": "UNPROCESSABLE_ENTITY", + "status": 422, + "detail": "Error in pyangbind validation: {'error-string': 'helm_version must be of a type compatible with enumeration', 'defined-type': 'kdu:enumeration', 'generated-type': 'YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={\\'v3\\': {}},), default=six.text_type(\"v3\"), is_leaf=True, yang_name=\"helm-version\", parent=self, choice=(\\'kdu-model\\', \\'helm-chart\\'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace=\\'urn:etsi:osm:yang:augments:kdu\\', defining_module=\\'kdu\\', yang_type=\\'enumeration\\', is_config=True)'}" + } +``` + +To upgrade Helm from v2 to v3, follow the [official documentation](https://helm.sh/docs/topics/v2_v3_migration/) #### KNF Helm Chart -- GitLab From 58e919268a729d59cc40571cb4822b47924324b3 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 21 Dec 2023 11:18:22 +0000 Subject: [PATCH 2/2] Update 05-osm-usage.md --- 05-osm-usage.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/05-osm-usage.md b/05-osm-usage.md index 4f71e6d..903f123 100644 --- a/05-osm-usage.md +++ b/05-osm-usage.md @@ -1699,10 +1699,13 @@ osm repo-show bitnami ### KNF Service on-boarding and instantiation -KNFs can be on-boarded using Helm Charts or Juju Bundles. In the following section is shown an example with Helm Chart and for Juju Bundles. -Helm v2 has been deprecated since 2020. Starting from OSM REL15, we no longer support it. If you attempt to deploy a KNF using Helm v2, you will encounter the following error: +KNFs can be on-boarded using Helm Charts or Juju Bundles. In this section, examples with Helm Chart and Juju Bundles are shown. -```bash +#### Note about deprecation of Helm v2 + +Helm v2 has been deprecated since 2020. Starting from OSM Release FIFTEEN, OSM no longer supports Helm v2. If the end user tries to deploy a KNF using Helm v2, the following error will be found: + +```log ERROR: Error 422: { "code": "UNPROCESSABLE_ENTITY", "status": 422, @@ -1710,7 +1713,7 @@ ERROR: Error 422: { } ``` -To upgrade Helm from v2 to v3, follow the [official documentation](https://helm.sh/docs/topics/v2_v3_migration/) +If you are the KNF provider and want to upgrade a helm chart from v2 to v3, follow the [official documentation](https://helm.sh/docs/topics/v2_v3_migration/) #### KNF Helm Chart -- GitLab