Skip to content

Commit a6750fb

Browse files
committed
chore(KONFLUX-6210): fix and set name and cpe label for recert
For https://issues.redhat.com/browse/KONFLUX-6210, clair needs access to a name and cpe label that it can use to look up the image in VEX statements. See also release-engineering/rhtap-ec-policy#149 Based on original changes from @rbean in our other operator repos Assisted-by: Gemini
1 parent 99bb7a0 commit a6750fb

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.tekton/build-pipeline.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ spec:
105105
default: docker
106106
type: string
107107
description: The format for the resulting image's mediaType. Valid values are oci or docker.
108+
- default: []
109+
description: Additional labels to apply to the built container image
110+
name: additional-labels
111+
type: array
108112
results:
109113
- description: ''
110114
name: IMAGE_URL
@@ -250,12 +254,13 @@ spec:
250254
- name: LABELS
251255
value:
252256
- $(tasks.generate-labels.results.labels[*])
257+
- $(params.additional-labels[*])
253258
- com.redhat.component=recert
254259
- description=recert
255260
- distribution-scope=public
256261
- io.k8s.description=recert
257-
- name=openshift4/recert-rhel9
258262
- release=4.17
263+
- cpe="cpe:/a:redhat:openshift:4.17::el9"
259264
- url=https://github.com/rh-ecosystem-edge/recert
260265
- vendor=Red Hat, Inc.
261266
- io.k8s.display-name=recert

.tekton/recert-4-17-pull-request.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ spec:
6969
value: "true"
7070
- name: additional-tags
7171
value: []
72+
- name: additional-labels
73+
value:
74+
- name=openshift4/recert-rhel9
7275
pipelineRef:
7376
name: build-pipeline
7477
taskRunTemplate:

.tekton/recert-4-17-push.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ spec:
6767
value: "true"
6868
- name: additional-tags
6969
value: ["latest"]
70+
- name: additional-labels
71+
value:
72+
- name=openshift4/recert-rhel9
7073
pipelineRef:
7174
name: build-pipeline
7275
taskRunTemplate:

0 commit comments

Comments
 (0)