Skip to content

Commit fa602d0

Browse files
serverless-qeserverless-qeKaustubh-pande
authored
[release-v1.17] Update Konflux configurations (#1373)
* Generate dockerfiles with "./openshift/scripts/generate-dockerfiles.sh" * [release-v1.17] Sync Konflux configurations * Generate dockerfiles with "./openshift/scripts/generate-dockerfiles.sh" * [release-v1.17] Sync Konflux configurations --------- Co-authored-by: serverless-qe <[email protected]> Co-authored-by: Kaustubh Pande <[email protected]>
1 parent 840bfc4 commit fa602d0

File tree

6 files changed

+216
-224
lines changed

6 files changed

+216
-224
lines changed

.tekton/docker-build.yaml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ spec:
1313
1414
_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.
1515
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
3016
params:
3117
- default:
3218
- linux/x86_64
@@ -86,7 +72,7 @@ spec:
8672
name: hermetic
8773
type: string
8874
- default: ""
89-
description: Build dependencies to be prefetched by Cachi2
75+
description: Build dependencies to be prefetched
9076
name: prefetch-input
9177
type: string
9278
- default: ""
@@ -98,6 +84,11 @@ spec:
9884
description: Add built image into an OCI image index
9985
name: build-image-index
10086
type: string
87+
- default: docker
88+
description: The format for the resulting image's mediaType. Valid values are
89+
oci or docker.
90+
name: buildah-format
91+
type: string
10192
- default: []
10293
description: Array of --build-arg values ("arg=value" strings) for buildah
10394
name: build-args
@@ -111,10 +102,6 @@ spec:
111102
VMs
112103
name: privileged-nested
113104
type: string
114-
- name: buildah-format
115-
default: docker
116-
type: string
117-
description: The format for the resulting image's mediaType. Valid values are oci or docker.
118105
results:
119106
- description: ""
120107
name: IMAGE_URL
@@ -278,14 +265,16 @@ spec:
278265
value: $(params.build-args-file)
279266
- name: PRIVILEGED_NESTED
280267
value: $(params.privileged-nested)
268+
- name: SOURCE_URL
269+
value: $(tasks.clone-repository.results.url)
270+
- name: BUILDAH_FORMAT
271+
value: $(params.buildah-format)
281272
- name: SOURCE_ARTIFACT
282273
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
283274
- name: CACHI2_ARTIFACT
284275
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
285276
- name: IMAGE_APPEND_PLATFORM
286277
value: "true"
287-
- name: BUILDAH_FORMAT
288-
value: $(params.buildah-format)
289278
runAfter:
290279
- prefetch-dependencies
291280
taskRef:
@@ -412,7 +401,12 @@ spec:
412401
operator: in
413402
values:
414403
- "false"
415-
- name: ecosystem-cert-preflight-checks
404+
- matrix:
405+
params:
406+
- name: platform
407+
value:
408+
- $(params.build-platforms)
409+
name: ecosystem-cert-preflight-checks
416410
params:
417411
- name: image-url
418412
value: $(tasks.build-image-index.results.IMAGE_URL)
@@ -432,12 +426,12 @@ spec:
432426
operator: in
433427
values:
434428
- "false"
435-
matrix:
429+
- matrix:
436430
params:
437-
- name: platform
431+
- name: image-arch
438432
value:
439433
- $(params.build-platforms)
440-
- name: clamav-scan
434+
name: clamav-scan
441435
params:
442436
- name: image-digest
443437
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
@@ -459,11 +453,6 @@ spec:
459453
operator: in
460454
values:
461455
- "false"
462-
matrix:
463-
params:
464-
- name: image-arch
465-
value:
466-
- $(params.build-platforms)
467456
- name: sast-shell-check
468457
params:
469458
- name: image-digest

.tekton/kn-plugin-func-func-util-117-pull-request.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ spec:
2121
value: openshift/ci-operator/knative-images/func-util/Dockerfile
2222
- name: build-args
2323
value:
24+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.16
2425
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.23
25-
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
26-
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
27-
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
28-
- NODE_BUILDER=registry.access.redhat.com/ubi8/nodejs-20
29-
- NODE_RUNTIME=registry.access.redhat.com/ubi8/nodejs-20
26+
- GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
27+
- JAVA_BUILDER=registry.access.redhat.com/ubi9/openjdk-21
28+
- JAVA_RUNTIME=registry.access.redhat.com/ubi9/openjdk-21-runtime
29+
- NODE_BUILDER=registry.access.redhat.com/ubi9/nodejs-20
30+
- NODE_RUNTIME=registry.access.redhat.com/ubi9/nodejs-20
3031
- VERSION=1.37.0
3132
- name: git-url
3233
value: '{{source_url}}'

.tekton/kn-plugin-func-func-util-117-push.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ spec:
2020
value: openshift/ci-operator/knative-images/func-util/Dockerfile
2121
- name: build-args
2222
value:
23+
- CLI_ARTIFACTS=registry.redhat.io/openshift4/ose-cli-artifacts-rhel9:v4.16
2324
- GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.23
24-
- GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
25-
- JAVA_BUILDER=registry.access.redhat.com/ubi8/openjdk-21
26-
- JAVA_RUNTIME=registry.access.redhat.com/ubi8/openjdk-21-runtime
27-
- NODE_BUILDER=registry.access.redhat.com/ubi8/nodejs-20
28-
- NODE_RUNTIME=registry.access.redhat.com/ubi8/nodejs-20
25+
- GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
26+
- JAVA_BUILDER=registry.access.redhat.com/ubi9/openjdk-21
27+
- JAVA_RUNTIME=registry.access.redhat.com/ubi9/openjdk-21-runtime
28+
- NODE_BUILDER=registry.access.redhat.com/ubi9/nodejs-20
29+
- NODE_RUNTIME=registry.access.redhat.com/ubi9/nodejs-20
2930
- VERSION=1.37.0
3031
- name: git-url
3132
value: '{{source_url}}'

openshift/ci-operator/build-image/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# DO NOT EDIT! Generated Dockerfile.
22

3-
FROM registry.ci.openshift.org/ocp/4.17:cli-artifacts as tools
3+
FROM registry.ci.openshift.org/ocp/4.19:cli-artifacts as tools
44

55
# Dockerfile to bootstrap build and test in openshift-ci
66
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19 as builder
77

88
ARG TARGETARCH
99

10-
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel8 /usr/bin/oc
10+
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel9 /usr/bin/oc
1111

1212
RUN ln -s /usr/bin/oc /usr/bin/kubectl
1313

14-
RUN yum install -y httpd-tools
14+
RUN dnf install -y httpd-tools
1515

1616
RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
1717
chmod 700 ./get-helm-3

openshift/ci-operator/knative-images/func-util/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DO NOT EDIT! Generated Dockerfile for cmd/func-util.
22
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19
3-
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
3+
ARG GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
44

55
FROM $GO_BUILDER as builder
66

@@ -17,7 +17,7 @@ FROM $GO_RUNTIME
1717

1818
ARG VERSION=knative-v1.17
1919

20-
RUN microdnf install socat tar
20+
RUN microdnf install -y socat tar
2121

2222
COPY --from=builder /usr/bin/main /usr/bin/func-util
2323
COPY LICENSE /licenses/
@@ -30,14 +30,15 @@ RUN ln -s /usr/bin/func-util /usr/local/bin/deploy && \
3030
USER 65532
3131

3232
LABEL \
33-
com.redhat.component="openshift-serverless-1-kn-plugin-func-func-util-rhel8-container" \
34-
name="openshift-serverless-1/kn-plugin-func-func-util-rhel8" \
33+
com.redhat.component="openshift-serverless-1-kn-plugin-func-func-util-rhel9-container" \
34+
name="openshift-serverless-1/kn-plugin-func-func-util-rhel9" \
3535
version=$VERSION \
3636
summary="Red Hat OpenShift Serverless 1 Kn Plugin Func Func Util" \
3737
maintainer="[email protected]" \
3838
description="Red Hat OpenShift Serverless 1 Kn Plugin Func Func Util" \
3939
io.k8s.display-name="Red Hat OpenShift Serverless 1 Kn Plugin Func Func Util" \
4040
io.k8s.description="Red Hat OpenShift Serverless Kn Plugin Func Func Util" \
41-
io.openshift.tags="func-util"
41+
io.openshift.tags="func-util" \
42+
cpe="cpe:/a:redhat:openshift_serverless:1.37::el9"
4243

4344
ENTRYPOINT ["/usr/bin/bash"]

0 commit comments

Comments
 (0)