Skip to content

Commit 31730fe

Browse files
committed
Fix: bump opm version to produce compatible catalogs
An older version of opm produced a catalog that OCP server couldn't read and skipped operators. This change updates opm and few other dependencies to fix the issue. Signed-off-by: Ales Raszka <[email protected]>
1 parent 46bcba8 commit 31730fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fbc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ OPERATOR_CATALOG_TEMPLATE_DIR = ${PDW}/catalog-templates
2525

2626
# A list of OCP versions to generate catalogs for
2727
# This list can be customized to include the versions that are relevant to the operator
28-
# DO NOT change this line (except for the versions) if you want to take advantage
28+
# DO NOT change this line (except for the versions) if you want to take advantage
2929
# of the automated catalog promotion
3030
OCP_VERSIONS=$(shell echo "v4.12 v4.13 v4.14 v4.15 v4.16" )
3131

@@ -95,7 +95,7 @@ OS=$(shell uname -s | tr '[:upper:]' '[:lower:]')
9595
ARCH=$(shell uname -m | sed 's/x86_64/amd64/')
9696

9797
# Automatically download the opm binary
98-
OPM_VERSION ?= v1.40.0
98+
OPM_VERSION ?= v1.46.0
9999
${BINDIR}/opm:
100100
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR}; fi
101101
curl -sLO https://github.com/operator-framework/operator-registry/releases/download/$(OPM_VERSION)/$(OS)-$(ARCH)-opm && chmod +x $(OS)-$(ARCH)-opm && mv $(OS)-$(ARCH)-opm ${BINDIR}/opm

operator-pipeline-images/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ RUN dnf update -y && \
4646
COPY operator-pipeline-images/config/krb5.conf /etc/krb5.conf
4747

4848
# Install oc, opm and operator-sdk CLI
49-
RUN curl -LO https://github.com/operator-framework/operator-registry/releases/download/v1.29.0/linux-${ARCH}-opm && \
49+
RUN curl -LO https://github.com/operator-framework/operator-registry/releases/download/v1.46.0/linux-${ARCH}-opm && \
5050
chmod +x linux-${ARCH}-opm && \
5151
mv linux-${ARCH}-opm /usr/local/bin/opm && \
52-
curl -LO https://mirror.openshift.com/pub/openshift-v4/${ARCH}/clients/ocp/stable-4.13/openshift-client-linux.tar.gz && \
52+
curl -LO https://mirror.openshift.com/pub/openshift-v4/${ARCH}/clients/ocp/stable-4.14/openshift-client-linux.tar.gz && \
5353
tar xzvf openshift-client-linux.tar.gz -C /usr/local/bin oc && \
54-
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/v1.32.0/operator-sdk_linux_${ARCH} && \
54+
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/v1.36.1/operator-sdk_linux_${ARCH} && \
5555
chmod +x operator-sdk_linux_${ARCH} && \
5656
mv operator-sdk_linux_${ARCH} /usr/local/bin/operator-sdk
5757

@@ -67,7 +67,7 @@ WORKDIR /home/user
6767
COPY ./operator-pipeline-images ./operator-pipeline-images
6868

6969
# install PDM
70-
RUN pip3 install --no-cache-dir --upgrade pip setuptools wheel && pip3 install --no-cache-dir pdm
70+
RUN pip3 install --no-cache-dir pdm
7171
# install dependencies in virtual environment
7272
COPY ./pdm.lock ./pyproject.toml ./README.md ./
7373
RUN pdm venv create 3.11 && pdm install --no-lock --no-editable \

0 commit comments

Comments
 (0)