diff --git a/pkg/network/product.ts b/pkg/network/product.ts index 6f6fedd..ff48884 100644 --- a/pkg/network/product.ts +++ b/pkg/network/product.ts @@ -10,26 +10,26 @@ export function init($plugin: IPlugin, store: any) { } = $plugin.DSL(store, productName); // registering a top-level product - product({ - icon: 'pod_security', - inStore: 'cluster', - }); + // product({ + // icon: 'pod_security', + // inStore: 'cluster', + // }); - // => => => creating a custom page - virtualType({ - label: 'Overview', - name: 'overview', - namespaced: false, - route: { - name: `c-cluster-${productName}-overview`, - params: { - product: productName - }, - meta: { pkg: "network", product: productName } - } - }); + // // => => => creating a custom page + // virtualType({ + // label: 'Overview', + // name: 'overview', + // namespaced: false, + // route: { + // name: `c-cluster-${productName}-overview`, + // params: { + // product: productName + // }, + // meta: { pkg: "network", product: productName } + // } + // }); - basicType([ - "overview" - ]); + // basicType([ + // "overview" + // ]); } \ No newline at end of file diff --git a/pkg/runtime-process-profile/product.ts b/pkg/runtime-process-profile/product.ts index 666c3a0..e370a40 100644 --- a/pkg/runtime-process-profile/product.ts +++ b/pkg/runtime-process-profile/product.ts @@ -9,27 +9,27 @@ export function init($plugin: IPlugin, store: any) { basicType } = $plugin.DSL(store, productName); - // registering a top-level product - product({ - icon: 'pod_security', - inStore: 'cluster', - }); + // // registering a top-level product + // product({ + // icon: 'pod_security', + // inStore: 'cluster', + // }); - // => => => creating a custom page - virtualType({ - label: 'Overview', - name: 'overview', - namespaced: false, - route: { - name: `c-cluster-${productName}-overview`, - params: { - product: productName - }, - meta: { pkg: "runtime-process-profile", product: productName } - } - }); + // // => => => creating a custom page + // virtualType({ + // label: 'Overview', + // name: 'overview', + // namespaced: false, + // route: { + // name: `c-cluster-${productName}-overview`, + // params: { + // product: productName + // }, + // meta: { pkg: "runtime-process-profile", product: productName } + // } + // }); - basicType([ - "overview" - ]); + // basicType([ + // "overview" + // ]); } \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/data/sbombastic.rancher.io.image.js b/pkg/sbombastic-image-vulnerability-scanner/data/sbombastic.rancher.io.image.js index 8f899be..ebd9380 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/data/sbombastic.rancher.io.image.js +++ b/pkg/sbombastic-image-vulnerability-scanner/data/sbombastic.rancher.io.image.js @@ -1,5 +1,6 @@ export const images = [ { + id: "struts-attacher:1.0", metadata: { name: "struts-attacher:1.0", }, @@ -16,6 +17,7 @@ export const images = [ }, }, { + id: "imagemagick4.8.5613", metadata: { name: "imagemagick4.8.5613", }, @@ -32,6 +34,7 @@ export const images = [ }, }, { + id: "centos7.7.1908", metadata: { name: "centos7.7.1908", }, @@ -48,6 +51,7 @@ export const images = [ }, }, { + id: "nginx1.19.10", metadata: { name: "nginx1.19.10", }, @@ -64,6 +68,7 @@ export const images = [ }, }, { + id: "docker-compose:1.29.2", metadata: { name: "docker-compose:1.29.2", }, @@ -80,6 +85,7 @@ export const images = [ }, }, { + id: "python3.9.7", metadata: { name: "python3.9.7", }, @@ -96,6 +102,7 @@ export const images = [ }, }, { + id: "nodejs14.17.3", metadata: { name: "nodejs14.17.3", }, @@ -112,6 +119,7 @@ export const images = [ }, }, { + id: "redis5.0.7", metadata: { name: "redis5.0.7", }, @@ -128,6 +136,7 @@ export const images = [ }, }, { + id: "mongodb4.4.1", metadata: { name: "mongodb4.4.1", }, @@ -144,6 +153,7 @@ export const images = [ }, }, { + id: "golang1.16.5", metadata: { name: "golang1.16.5", }, @@ -160,6 +170,7 @@ export const images = [ }, }, { + id: "ruby2.7.3", metadata: { name: "ruby2.7.3", }, @@ -176,6 +187,7 @@ export const images = [ }, }, { + id: "elasticsearch7.10.0", metadata: { name: "elasticsearch7.10.0", }, @@ -192,6 +204,7 @@ export const images = [ }, }, { + id: "mysql8.0.25", metadata: { name: "mysql8.0.25", }, @@ -208,6 +221,7 @@ export const images = [ }, }, { + id: "php8.0.9", metadata: { name: "php8.0.9", }, @@ -224,6 +238,7 @@ export const images = [ }, }, { + id: "postgresql13.3", metadata: { name: "postgresql13.3", }, @@ -240,6 +255,7 @@ export const images = [ }, }, { + id: "terraform1.0.0", metadata: { name: "terraform1.0.0", }, @@ -256,6 +272,7 @@ export const images = [ }, }, { + id: "ansible2.10.5", metadata: { name: "ansible2.10.5", }, @@ -272,6 +289,7 @@ export const images = [ }, }, { + id: "kafka2.8.0", metadata: { name: "kafka2.8.0", }, diff --git a/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml b/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml index 778acec..22ca1ce 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml +++ b/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml @@ -149,7 +149,7 @@ imageScanner: pending: Pending scheduled: Scheduled inprogress: In progress - complete: Complete + complete: Finished failed: Failed none: n/a enabled: Enabled diff --git a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js index e8073a6..1395aa5 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js +++ b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js @@ -4,7 +4,6 @@ import { RESOURCE } from '@sbombastic-image-vulnerability-scanner/types'; import { _CREATE } from '@shell/config/query-params'; export default class Registry extends SteveModel { get _availableActions() { - console.log("Registry _availableActions"); const out = super._availableActions.filter(action => !['showConfiguration','download','downloadYaml'].includes(action.action)); // In details page, we don't want to show the scan action @@ -17,11 +16,10 @@ export default class Registry extends SteveModel { label: this.t('imageScanner.registries.button.startScan'), icon: 'icon-play', enabled: true, - bulkable: false, + bulkable: true, invoke: async ({}, res = []) => { const target = (res && res.length ? res[0] : r); const model = target._model || target; - console.log("scanRegistry model", model); const scanjobObj = await this.$dispatch('create', { type: RESOURCE.SCAN_JOB, metadata: { diff --git a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ImageOverview.vue b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ImageOverview.vue index 567f6a1..5e9144f 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ImageOverview.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ImageOverview.vue @@ -28,18 +28,20 @@ type="button" :disabled="disabled" @click="openAddEditRuleModal()"> + {{ t('imageScanner.images.downloadReport') }}
- - + +