From 2d882d7f63013e2dc4b86f948daf7cc50034c0e5 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Thu, 2 Jan 2025 17:31:37 +0100 Subject: [PATCH] [backport 12968] - Support caBundle plain text - Remove is-base64 dependency Signed-off-by: Francesco Torchia --- package.json | 1 - pkg/harvester-manager/machine-config/harvester.vue | 2 +- .../tabs/registries/RegistryConfigs.vue | 10 ++++++++-- .../tabs/registries/__tests__/RegistryConfigs.test.ts | 9 ++++++--- shell/utils/string.js | 6 ++++++ yarn.lock | 5 ----- 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 005c4f24d1c..2c0fff356f3 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "intl-messageformat": "7.8.4", "ip": "2.0.1", "ipaddr.js": "2.2.0", - "is-base64": "1.1.0", "is-url": "1.2.4", "jexl": "2.2.2", "jquery": "3.5.1", diff --git a/pkg/harvester-manager/machine-config/harvester.vue b/pkg/harvester-manager/machine-config/harvester.vue index 28dc209dce2..af1539f762f 100644 --- a/pkg/harvester-manager/machine-config/harvester.vue +++ b/pkg/harvester-manager/machine-config/harvester.vue @@ -3,7 +3,7 @@ import draggable from 'vuedraggable'; import isEmpty from 'lodash/isEmpty'; import jsyaml from 'js-yaml'; import YAML from 'yaml'; -import isBase64 from 'is-base64'; +import { isBase64 } from '@shell/utils/string'; import NodeAffinity from '@shell/components/form/NodeAffinity'; import PodAffinity from '@shell/components/form/PodAffinity'; diff --git a/shell/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue b/shell/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue index f3777810739..5bd2bd32d5b 100644 --- a/shell/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +++ b/shell/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue @@ -1,4 +1,5 @@