Skip to content

Commit 835c6c9

Browse files
authored
ROX-30918, ROX-31049: Update labels, fix docker mediaType / 4.7 (#2317)
1 parent 2e02642 commit 835c6c9

File tree

7 files changed

+49
-4
lines changed

7 files changed

+49
-4
lines changed

.tekton/scanner-build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
value: 'true'
5454
- name: blobs-to-fetch
5555
value: [ 'nvd-definitions.zip', 'k8s-definitions.zip', 'repo2cpe.zip', 'genesis_manifests.json' ]
56+
- name: extra-labels
57+
value:
58+
# X.Y in the cpe label must be adjusted for every version stream.
59+
- "cpe=cpe:/a:redhat:advanced_cluster_security:4.7::el8"
5660

5761
workspaces:
5862
- name: git-auth
@@ -68,6 +72,8 @@ spec:
6872
# This is not required for multi-arch builds, because they are performed off cluster
6973
- name: build
7074
computeResources:
75+
limits:
76+
cpu: 2
7177
requests:
7278
cpu: 2
7379

.tekton/scanner-component-pipeline.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ spec:
120120
default: docker
121121
type: string
122122
description: The format for the resulting image's mediaType. Valid values are oci or docker.
123+
- name: extra-labels
124+
type: array
125+
description: Additional labels to put on the built containers.
123126
results:
124127
- description: ""
125128
name: IMAGE_URL
@@ -293,6 +296,10 @@ spec:
293296
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
294297
- name: BUILDAH_FORMAT
295298
value: $(params.buildah-format)
299+
- name: LABELS
300+
value: ["$(params.extra-labels[*])"]
301+
- name: BUILD_TIMESTAMP
302+
value: "$(tasks.clone-repository.results.commit-timestamp)"
296303
taskRef:
297304
params:
298305
- name: name
@@ -333,6 +340,12 @@ spec:
333340
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
334341
- name: PLATFORM
335342
value: linux/s390x
343+
- name: BUILDAH_FORMAT
344+
value: $(params.buildah-format)
345+
- name: LABELS
346+
value: ["$(params.extra-labels[*])"]
347+
- name: BUILD_TIMESTAMP
348+
value: "$(tasks.clone-repository.results.commit-timestamp)"
336349
taskRef:
337350
params:
338351
- name: name
@@ -373,6 +386,12 @@ spec:
373386
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
374387
- name: PLATFORM
375388
value: linux/ppc64le
389+
- name: BUILDAH_FORMAT
390+
value: $(params.buildah-format)
391+
- name: LABELS
392+
value: ["$(params.extra-labels[*])"]
393+
- name: BUILD_TIMESTAMP
394+
value: "$(tasks.clone-repository.results.commit-timestamp)"
376395
taskRef:
377396
params:
378397
- name: name
@@ -413,6 +432,12 @@ spec:
413432
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
414433
- name: PLATFORM
415434
value: linux/arm64
435+
- name: BUILDAH_FORMAT
436+
value: $(params.buildah-format)
437+
- name: LABELS
438+
value: ["$(params.extra-labels[*])"]
439+
- name: BUILD_TIMESTAMP
440+
value: "$(tasks.clone-repository.results.commit-timestamp)"
416441
taskRef:
417442
params:
418443
- name: name

.tekton/scanner-db-build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
value: 'true'
5151
- name: blobs-to-fetch
5252
value: [ 'pg-definitions.sql.gz' ]
53+
- name: extra-labels
54+
value:
55+
# X.Y in the cpe label must be adjusted for every version stream.
56+
- "cpe=cpe:/a:redhat:advanced_cluster_security:4.7::el8"
5357

5458
workspaces:
5559
- name: git-auth

.tekton/scanner-db-slim-build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
value: 'true'
5151
- name: blobs-to-fetch
5252
value: [ ]
53+
- name: extra-labels
54+
value:
55+
# X.Y in the cpe label must be adjusted for every version stream.
56+
- "cpe=cpe:/a:redhat:advanced_cluster_security:4.7::el8"
5357

5458
workspaces:
5559
- name: git-auth

.tekton/scanner-slim-build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
value: 'true'
5454
- name: blobs-to-fetch
5555
value: [ 'nvd-definitions.zip', 'k8s-definitions.zip', 'repo2cpe.zip', 'genesis_manifests.json' ]
56+
- name: extra-labels
57+
value:
58+
# X.Y in the cpe label must be adjusted for every version stream.
59+
- "cpe=cpe:/a:redhat:advanced_cluster_security:4.7::el8"
5660

5761
workspaces:
5862
- name: git-auth
@@ -68,6 +72,8 @@ spec:
6872
# This is not required for multi-arch builds, because they are performed off cluster
6973
- name: build
7074
computeResources:
75+
limits:
76+
cpu: 2
7177
requests:
7278
cpu: 2
7379

image/db/rhel/konflux.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ FROM scanner-db-common AS scanner-db-slim
5757
LABEL \
5858
com.redhat.component="rhacs-scanner-db-slim-container" \
5959
io.k8s.display-name="scanner-db-slim" \
60-
name="rhacs-scanner-db-slim-rhel8"
60+
name="advanced-cluster-security/rhacs-scanner-db-slim-rhel8"
6161

6262
ENV ROX_SLIM_MODE="true"
6363

@@ -67,7 +67,7 @@ FROM scanner-db-common AS scanner-db
6767
LABEL \
6868
com.redhat.component="rhacs-scanner-db-container" \
6969
io.k8s.display-name="scanner-db" \
70-
name="rhacs-scanner-db-rhel8"
70+
name="advanced-cluster-security/rhacs-scanner-db-rhel8"
7171

7272
COPY --chown=0:0 .konflux/scanner-data/blob-pg-definitions.sql.gz \
7373
/docker-entrypoint-initdb.d/definitions.sql.gz

image/scanner/rhel/konflux.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ FROM scanner-common AS scanner-slim
8585
LABEL \
8686
com.redhat.component="rhacs-scanner-slim-container" \
8787
io.k8s.display-name="scanner-slim" \
88-
name="rhacs-scanner-slim-rhel8"
88+
name="advanced-cluster-security/rhacs-scanner-slim-rhel8"
8989

9090
ENV ROX_SLIM_MODE="true"
9191

@@ -96,7 +96,7 @@ FROM scanner-common AS scanner
9696
LABEL \
9797
com.redhat.component="rhacs-scanner-container" \
9898
io.k8s.display-name="scanner" \
99-
name="rhacs-scanner-rhel8"
99+
name="advanced-cluster-security/rhacs-scanner-rhel8"
100100

101101
ENV NVD_DEFINITIONS_DIR="/nvd_definitions"
102102
ENV K8S_DEFINITIONS_DIR="/k8s_definitions"

0 commit comments

Comments
 (0)