Skip to content

Commit

Permalink
index: update konflux configuration… and…
Browse files Browse the repository at this point in the history
… try to get a build green.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Oct 29, 2024
1 parent 9bf2d58 commit 76b7e34
Show file tree
Hide file tree
Showing 13 changed files with 333 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .konflux/main/component-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
componentName: bundle
application: operator-main
# build-nudges-ref:
# - openshift-pipelines-index
build-nudges-ref:
- operator-main-index
source:
git:
url: https://github.com/openshift-pipelines/operator.git
Expand Down
6 changes: 3 additions & 3 deletions .konflux/main/component-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ metadata:
appstudio.openshift.io/pac-provision: request
build.appstudio.openshift.io/pipeline: '{"name":"fbc-builder","bundle":"latest"}'
build.appstudio.openshift.io/request: configure-pac
name: openshift-pipelines-index
name: operator-main-index
spec:
componentName: openshift-pipelines-index
application: openshift-pipelines-operator
componentName: operator-main-index
application: operator
source:
git:
url: https://github.com/openshift-pipelines/operator.git
Expand Down
14 changes: 14 additions & 0 deletions .konflux/main/image-index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: operator-main-index
annotations:
image-controller.appstudio.redhat.com/update-component-image: "true"
labels:
appstudio.redhat.com/component: operator-main-index
appstudio.redhat.com/application: operator-main
spec:
image:
name: operator-main/index
visibility: public
262 changes: 262 additions & 0 deletions nightly-bundle.yaml

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions openshift/olm-catalog/index/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
FROM registry.ci.openshift.org/origin/4.15:operator-registry AS opm

FROM registry.access.redhat.com/ubi9/ubi-minimal AS builder

COPY --from=opm /bin/opm /bin/opm

# Copy declarative config root into image at /configs
COPY olm-catalog/openshift-pipelines/index/configs /configs

RUN /bin/opm init openshift-pipelines-operator --default-channel=latest --output yaml >> /configs/index.yaml
RUN /bin/opm render --skip-tls-verify -o yaml registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle \
registry.ci.openshift.org/knative/release-1.32.0:serverless-bundle \
registry.ci.openshift.org/knative/release-1.33.0:serverless-bundle >> /configs/index.yaml || \
/bin/opm render --skip-tls-verify -o yaml registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle \
registry.ci.openshift.org/knative/release-1.32.0:serverless-bundle \
registry.ci.openshift.org/knative/serverless-bundle:main >> /configs/index.yaml
COPY openshift/olm-catalog/index/configs /configs

# RUN /bin/opm init openshift-pipelines-operator --default-channel=latest --output yaml >> /configs/index.yaml
RUN /bin/opm render --skip-tls-verify -o yaml quay.io/redhat-user-workloads/tekton-ecosystem-tenant/operator-main/bundle@sha256:32d9e64363e7da35efafe8e24c67fa8732a9493c856dcab785d75dd59cd8a5da > /configs/nightly-bundle.yaml
RUN export BUNDLE_VERSION=$(cat /configs/nightly-bundle.yaml | grep 'name: openshift-pipelines-operator-rh' | awk '{print $2}') && \
echo $BUNDLE_VERSION && \
sed -i "s%name: \"openshift-pipelines-operator-rh.*\"%name: \"${BUNDLE_VERSION}\"%g" /configs/index.yaml && \
cat /configs/index.yaml
RUN /bin/opm validate configs

# The base image is expected to contain
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
Expand Down
42 changes: 42 additions & 0 deletions openshift/olm-catalog/index/configs.sample/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
schema: olm.channel
name: latest
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.16.0"
replaces: "openshift-pipelines-operator-rh.v1.15.0"
skipRange: ">=1.15.0 <1.16.0"
---
schema: olm.channel
name: pipelines-1.16
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.16.0"
replaces: "openshift-pipelines-operator-rh.v1.15.0"
skipRange: ">=1.15.0 <1.16.0"
- name: "openshift-pipelines-operator-rh.v1.15.0"
replaces: "openshift-pipelines-operator-rh.v1.14.0"
skipRange: ">=1.14.0 <1.15.0"
- name: "openshift-pipelines-operator-rh.v1.14.0"
---
schema: olm.channel
name: pipelines-1.15
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.15.2"
replaces: "openshift-pipelines-operator-rh.v1.14.0"
skipRange: ">=1.14.0 <1.15.0"
- name: "openshift-pipelines-operator-rh.v1.14.0"
---
schema: olm.channel
name: pipelines-1.14
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.14.5"
replaces: "openshift-pipelines-operator-rh.v1.14.4"
skipRange: ">=1.13.0 <1.14.5"
- name: "openshift-pipelines-operator-rh.v1.14.4"
---
defaultChannel: latest
name: openshift-pipelines-operator-rh
schema: olm.package
34 changes: 1 addition & 33 deletions openshift/olm-catalog/index/configs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,7 @@ schema: olm.channel
name: latest
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.16.0"
replaces: "openshift-pipelines-operator-rh.v1.15.0"
skipRange: ">=1.15.0 <1.16.0"
---
schema: olm.channel
name: pipelines-1.16
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.16.0"
replaces: "openshift-pipelines-operator-rh.v1.15.0"
skipRange: ">=1.15.0 <1.16.0"
- name: "openshift-pipelines-operator-rh.v1.15.0"
replaces: "openshift-pipelines-operator-rh.v1.14.0"
skipRange: ">=1.14.0 <1.15.0"
- name: "openshift-pipelines-operator-rh.v1.14.0"
---
schema: olm.channel
name: pipelines-1.15
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.15.2"
replaces: "openshift-pipelines-operator-rh.v1.14.0"
skipRange: ">=1.14.0 <1.15.0"
- name: "openshift-pipelines-operator-rh.v1.14.0"
---
schema: olm.channel
name: pipelines-1.14
package: openshift-pipelines-operator-rh
entries:
- name: "openshift-pipelines-operator-rh.v1.14.5"
replaces: "openshift-pipelines-operator-rh.v1.14.4"
skipRange: ">=1.13.0 <1.14.5"
- name: "openshift-pipelines-operator-rh.v1.14.4"
- name: "openshift-pipelines-operator-rh.v5.0.5"
---
defaultChannel: latest
name: openshift-pipelines-operator-rh
Expand Down

0 comments on commit 76b7e34

Please sign in to comment.