From d60f5a95ff21ed20b944a148e5449d9a14f87393 Mon Sep 17 00:00:00 2001 From: lsongsuse Date: Thu, 14 Aug 2025 17:39:36 -0700 Subject: [PATCH 1/2] Feat: enable the free-typing for "Repositories to scan" selector --- .../edit/sbombastic.rancher.io.registry.vue | 22 ++++++++++--------- .../l10n/en-us.yaml | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pkg/sbombastic-image-vulnerability-scanner/edit/sbombastic.rancher.io.registry.vue b/pkg/sbombastic-image-vulnerability-scanner/edit/sbombastic.rancher.io.registry.vue index 9477587..4752564 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/edit/sbombastic.rancher.io.registry.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/edit/sbombastic.rancher.io.registry.vue @@ -2,7 +2,6 @@ import CreateEditView from '@shell/mixins/create-edit-view'; import Footer from '@shell/components/form/Footer'; import { LabeledInput } from '@components/Form/LabeledInput'; -import { RadioGroup } from '@components/Form/Radio'; import NameNsDescription from '@shell/components/form/NameNsDescription'; import CruResource from '@shell/components/CruResource'; import SelectOrCreateAuthSecret from '@shell/components/form/SelectOrCreateAuthSecret'; @@ -21,7 +20,6 @@ export default { components: { Footer, - RadioGroup, LabeledInput, NameNsDescription, CruResource, @@ -54,11 +52,6 @@ export default { }, computed: { - namespace(){ - console.log('this.value.spec.type:',this.value.spec.type); - return this.value.spec.type === 'ecr'?"kube-system":"" - }, - inStore() { return this.$store.getters['currentProduct']?.inStore || MANAGEMENT; }, @@ -163,16 +156,25 @@ export default {
Date: Thu, 14 Aug 2025 18:08:39 -0700 Subject: [PATCH 2/2] Feat: enable the free-typing for "Repositories to scan" selector --- .../constants/scan-interval-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sbombastic-image-vulnerability-scanner/constants/scan-interval-options.ts b/pkg/sbombastic-image-vulnerability-scanner/constants/scan-interval-options.ts index 9864d50..006d48a 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/constants/scan-interval-options.ts +++ b/pkg/sbombastic-image-vulnerability-scanner/constants/scan-interval-options.ts @@ -21,7 +21,7 @@ export const REGISTRY_TYPE = { } export const REGISTRY_DEFAULT_URI = { - DOCKERHUB: "https://registry.hub.docker.com" + DOCKERHUB: "index.docker.io" }; export const REGISTRY_TYPE_OPTIONS: {label: string; value: string }[] = [