Skip to content

Commit da30276

Browse files
author
serverless-qe
committed
[release-1.36] Sync Konflux configurations
1 parent 126553b commit da30276

29 files changed

Lines changed: 121 additions & 104 deletions

.tekton/bundle-build.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
creationTimestamp: null
54
labels:
65
pipelines.openshift.io/runtime: generic
76
pipelines.openshift.io/strategy: docker
@@ -13,20 +12,6 @@ spec:
1312
1413
_Uses `buildah` to create a multi-platform container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. This pipeline requires that the [multi platform controller](https://github.com/konflux-ci/multi-platform-controller) is deployed and configured on your Konflux instance. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://conforma.dev/docs/policy/packages/release_trusted_task.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
1514
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta?tab=tags)_
16-
finally:
17-
- name: show-sbom
18-
params:
19-
- name: IMAGE_URL
20-
value: $(tasks.build-image-index.results.IMAGE_URL)
21-
taskRef:
22-
params:
23-
- name: name
24-
value: show-sbom
25-
- name: bundle
26-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:beb0616db051952b4b861dd8c3e00fa1c0eccbd926feddf71194d3bb3ace9ce7
27-
- name: kind
28-
value: task
29-
resolver: bundles
3015
params:
3116
- default: "false"
3217
description: Add built image into an OCI image index
@@ -81,14 +66,22 @@ spec:
8166
name: hermetic
8267
type: string
8368
- default: ""
84-
description: Build dependencies to be prefetched by Cachi2
69+
description: Build dependencies to be prefetched
8570
name: prefetch-input
8671
type: string
8772
- default: ""
8873
description: Image tag expiration time, time values could be something like 1h,
8974
2d, 3w for hours, days, and weeks, respectively.
9075
name: image-expires-after
9176
type: string
77+
- default: docker
78+
description: The format for the resulting image's mediaType. Valid values are
79+
oci or docker.
80+
name: buildah-format
81+
type: string
82+
- default: "false"
83+
description: Enable cache proxy configuration
84+
name: enable-cache-proxy
9285
- default: []
9386
description: Array of --build-arg values ("arg=value" strings) for buildah
9487
name: build-args
@@ -152,6 +145,14 @@ spec:
152145
value: $(params.build-args-file)
153146
- name: PRIVILEGED_NESTED
154147
value: $(params.privileged-nested)
148+
- name: SOURCE_URL
149+
value: $(tasks.clone-repository.results.url)
150+
- name: BUILDAH_FORMAT
151+
value: $(params.buildah-format)
152+
- name: HTTP_PROXY
153+
value: $(tasks.init.results.http-proxy)
154+
- name: NO_PROXY
155+
value: $(tasks.init.results.no-proxy)
155156
- name: SOURCE_ARTIFACT
156157
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
157158
- name: CACHI2_ARTIFACT
@@ -255,6 +256,8 @@ spec:
255256
value: $(params.rebuild)
256257
- name: skip-checks
257258
value: $(params.skip-checks)
259+
- name: enable-cache-proxy
260+
value: $(params.enable-cache-proxy)
258261
taskRef:
259262
params:
260263
- name: name
@@ -306,6 +309,8 @@ spec:
306309
- name: IMAGES
307310
value:
308311
- $(tasks.build-images.results.IMAGE_REF[*])
312+
- name: BUILDAH_FORMAT
313+
value: $(params.buildah-format)
309314
runAfter:
310315
- build-images
311316
taskRef:
@@ -428,11 +433,6 @@ spec:
428433
operator: in
429434
values:
430435
- "false"
431-
matrix:
432-
params:
433-
- name: image-arch
434-
value:
435-
- $(params.build-platforms)
436436
- name: sast-shell-check
437437
params:
438438
- name: image-digest

.tekton/docker-build.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
creationTimestamp: null
54
labels:
65
pipelines.openshift.io/runtime: generic
76
pipelines.openshift.io/strategy: docker
@@ -13,20 +12,6 @@ spec:
1312
1413
_Uses `buildah` to create a multi-platform container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. This pipeline requires that the [multi platform controller](https://github.com/konflux-ci/multi-platform-controller) is deployed and configured on your Konflux instance. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://conforma.dev/docs/policy/packages/release_trusted_task.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks.
1514
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta?tab=tags)_
16-
finally:
17-
- name: show-sbom
18-
params:
19-
- name: IMAGE_URL
20-
value: $(tasks.build-image-index.results.IMAGE_URL)
21-
taskRef:
22-
params:
23-
- name: name
24-
value: show-sbom
25-
- name: bundle
26-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:beb0616db051952b4b861dd8c3e00fa1c0eccbd926feddf71194d3bb3ace9ce7
27-
- name: kind
28-
value: task
29-
resolver: bundles
3015
params:
3116
- default:
3217
- linux/x86_64
@@ -86,7 +71,7 @@ spec:
8671
name: hermetic
8772
type: string
8873
- default: ""
89-
description: Build dependencies to be prefetched by Cachi2
74+
description: Build dependencies to be prefetched
9075
name: prefetch-input
9176
type: string
9277
- default: ""
@@ -98,6 +83,14 @@ spec:
9883
description: Add built image into an OCI image index
9984
name: build-image-index
10085
type: string
86+
- default: docker
87+
description: The format for the resulting image's mediaType. Valid values are
88+
oci or docker.
89+
name: buildah-format
90+
type: string
91+
- default: "false"
92+
description: Enable cache proxy configuration
93+
name: enable-cache-proxy
10194
- default: []
10295
description: Array of --build-arg values ("arg=value" strings) for buildah
10396
name: build-args
@@ -208,6 +201,8 @@ spec:
208201
value: $(params.rebuild)
209202
- name: skip-checks
210203
value: $(params.skip-checks)
204+
- name: enable-cache-proxy
205+
value: $(params.enable-cache-proxy)
211206
taskRef:
212207
params:
213208
- name: name
@@ -274,6 +269,14 @@ spec:
274269
value: $(params.build-args-file)
275270
- name: PRIVILEGED_NESTED
276271
value: $(params.privileged-nested)
272+
- name: SOURCE_URL
273+
value: $(tasks.clone-repository.results.url)
274+
- name: BUILDAH_FORMAT
275+
value: $(params.buildah-format)
276+
- name: HTTP_PROXY
277+
value: $(tasks.init.results.http-proxy)
278+
- name: NO_PROXY
279+
value: $(tasks.init.results.no-proxy)
277280
- name: SOURCE_ARTIFACT
278281
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
279282
- name: CACHI2_ARTIFACT
@@ -309,6 +312,8 @@ spec:
309312
- name: IMAGES
310313
value:
311314
- $(tasks.build-images.results.IMAGE_REF[*])
315+
- name: BUILDAH_FORMAT
316+
value: $(params.buildah-format)
312317
runAfter:
313318
- build-images
314319
taskRef:
@@ -404,7 +409,12 @@ spec:
404409
operator: in
405410
values:
406411
- "false"
407-
- name: ecosystem-cert-preflight-checks
412+
- matrix:
413+
params:
414+
- name: platform
415+
value:
416+
- $(params.build-platforms)
417+
name: ecosystem-cert-preflight-checks
408418
params:
409419
- name: image-url
410420
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -429,11 +439,6 @@ spec:
429439
- name: image-arch
430440
value:
431441
- $(params.build-platforms)
432-
matrix:
433-
params:
434-
- name: platform
435-
value:
436-
- $(params.build-platforms)
437442
name: clamav-scan
438443
params:
439444
- name: image-digest
@@ -456,11 +461,6 @@ spec:
456461
operator: in
457462
values:
458463
- "false"
459-
matrix:
460-
params:
461-
- name: image-arch
462-
value:
463-
- $(params.build-platforms)
464464
- name: sast-shell-check
465465
params:
466466
- name: image-digest

.tekton/fbc-builder.yaml

Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: tekton.dev/v1
22
kind: Pipeline
33
metadata:
4-
creationTimestamp:
54
labels:
65
pipelines.openshift.io/runtime: fbc
76
pipelines.openshift.io/strategy: fbc
@@ -13,27 +12,14 @@ spec:
1312
1413
_Uses `buildah` to create a container image. Its build-time tests are limited to verifying the included catalog and do not scan the image.
1514
This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-fbc-builder?tab=tags)_
16-
finally:
17-
- name: show-sbom
18-
params:
19-
- name: IMAGE_URL
20-
value: $(tasks.build-image-index.results.IMAGE_URL)
21-
taskRef:
22-
params:
23-
- name: name
24-
value: show-sbom
25-
- name: bundle
26-
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:beb0616db051952b4b861dd8c3e00fa1c0eccbd926feddf71194d3bb3ace9ce7
27-
- name: kind
28-
value: task
29-
resolver: bundles
3015
params:
3116
- default:
3217
- linux/x86_64
3318
- linux/arm64
3419
- linux/ppc64le
3520
- linux/s390x
36-
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
21+
description: List of platforms to build the container images on. The available
22+
set of values is determined by the configuration of the multi-platform-controller.
3723
name: build-platforms
3824
type: array
3925
- default: "true"
@@ -55,11 +41,13 @@ spec:
5541
name: output-image
5642
type: string
5743
- default: .
58-
description: Path to the source code of an application's component from where to build image.
44+
description: Path to the source code of an application's component from where
45+
to build image.
5946
name: path-context
6047
type: string
6148
- default: Dockerfile
62-
description: Path to the Dockerfile inside the context specified by parameter path-context
49+
description: Path to the Dockerfile inside the context specified by parameter
50+
path-context
6351
name: dockerfile
6452
type: string
6553
- default: "false"
@@ -75,17 +63,21 @@ spec:
7563
name: hermetic
7664
type: string
7765
- default: ""
78-
description: Build dependencies to be prefetched by Cachi2
66+
description: Build dependencies to be prefetched
7967
name: prefetch-input
8068
type: string
8169
- default: ""
82-
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
70+
description: Image tag expiration time, time values could be something like 1h,
71+
2d, 3w for hours, days, and weeks, respectively.
8372
name: image-expires-after
8473
type: string
8574
- default: "true"
8675
description: Add built image into an OCI image index
8776
name: build-image-index
8877
type: string
78+
- default: "false"
79+
description: Enable cache proxy configuration
80+
name: enable-cache-proxy
8981
- default: []
9082
description: Array of --build-arg values ("arg=value" strings) for buildah
9183
name: build-args
@@ -94,10 +86,6 @@ spec:
9486
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
9587
name: build-args-file
9688
type: string
97-
- name: buildah-format
98-
default: oci
99-
type: string
100-
description: The format for the resulting image's mediaType. Valid values are oci or docker.
10189
results:
10290
- description: ""
10391
name: IMAGE_URL
@@ -139,6 +127,8 @@ spec:
139127
value: $(params.rebuild)
140128
- name: skip-checks
141129
value: $(params.skip-checks)
130+
- name: enable-cache-proxy
131+
value: $(params.enable-cache-proxy)
142132
taskRef:
143133
params:
144134
- name: name
@@ -177,18 +167,43 @@ spec:
177167
workspaces:
178168
- name: basic-auth
179169
workspace: git-auth
170+
- name: run-opm-command
171+
params:
172+
- name: SOURCE_ARTIFACT
173+
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
174+
- name: ociStorage
175+
value: $(params.output-image).opm
176+
- name: ociArtifactExpiresAfter
177+
value: $(params.image-expires-after)
178+
- name: OPM_ARGS
179+
value: []
180+
- name: OPM_OUTPUT_PATH
181+
value: ""
182+
- name: IDMS_PATH
183+
value: ""
184+
runAfter:
185+
- clone-repository
186+
taskRef:
187+
params:
188+
- name: name
189+
value: run-opm-command-oci-ta
190+
- name: bundle
191+
value: quay.io/konflux-ci/tekton-catalog/task-run-opm-command-oci-ta:0.1@sha256:4ab5dba35166a976c3d6293913501fdfc79a3222395388fc6208641ab8bc9359
192+
- name: kind
193+
value: task
194+
resolver: bundles
180195
- name: prefetch-dependencies
181196
params:
182197
- name: input
183198
value: $(params.prefetch-input)
184199
- name: SOURCE_ARTIFACT
185-
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
200+
value: $(tasks.run-opm-command.results.SOURCE_ARTIFACT)
186201
- name: ociStorage
187202
value: $(params.output-image).prefetch
188203
- name: ociArtifactExpiresAfter
189204
value: $(params.image-expires-after)
190205
runAfter:
191-
- clone-repository
206+
- run-opm-command
192207
taskRef:
193208
params:
194209
- name: name
@@ -229,14 +244,18 @@ spec:
229244
- $(params.build-args[*])
230245
- name: BUILD_ARGS_FILE
231246
value: $(params.build-args-file)
247+
- name: SOURCE_URL
248+
value: $(tasks.clone-repository.results.url)
249+
- name: HTTP_PROXY
250+
value: $(tasks.init.results.http-proxy)
251+
- name: NO_PROXY
252+
value: $(tasks.init.results.no-proxy)
232253
- name: SOURCE_ARTIFACT
233254
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
234255
- name: CACHI2_ARTIFACT
235256
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
236257
- name: IMAGE_APPEND_PLATFORM
237258
value: "true"
238-
- name: BUILDAH_FORMAT
239-
value: $(params.buildah-format)
240259
runAfter:
241260
- clone-repository
242261
taskRef:
@@ -266,8 +285,6 @@ spec:
266285
- name: IMAGES
267286
value:
268287
- $(tasks.build-images.results.IMAGE_REF[*])
269-
- name: BUILDAH_FORMAT
270-
value: $(params.buildah-format)
271288
runAfter:
272289
- build-images
273290
taskRef:

0 commit comments

Comments
 (0)