From 39f344d217568a757218857503f02d2f46dd5ad3 Mon Sep 17 00:00:00 2001 From: Harikrishnan Balagopal Date: Fri, 22 Mar 2024 11:51:46 +0530 Subject: [PATCH] fix: for Red Hat community prod operators repo we need lower K8s to be compatible with all Openshift versions Also add an annotation to indicate compatible Openshift versions in metadata/annotations.yaml Signed-off-by: Harikrishnan Balagopal --- operator/Makefile | 11 +++++++++++ .../move2kube-operator.clusterserviceversion.yaml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/operator/Makefile b/operator/Makefile index fd2615e..c1733a5 100644 --- a/operator/Makefile +++ b/operator/Makefile @@ -232,6 +232,17 @@ bundle: kustomize operator-sdk ## Generate bundle manifests and metadata, then v ls -al bundle/ ls -al bundle/manifests ls -al bundle/metadata + ls -al bundle/metadata/annotations.yaml + # ------------------- + echo 'before adding the annotation required for red hat community prod repo' + cat bundle/metadata/annotations.yaml + $(eval MYYQEXPR1 := '.annotations."com.redhat.openshift.versions"="v4.1"') + echo ${MYYQEXPR1} + yq eval --exit-status ${MYYQEXPR1} bundle/metadata/annotations.yaml > foo.yaml + mv foo.yaml bundle/metadata/annotations.yaml + echo 'after adding the annotation required for red hat community prod repo' + cat bundle/metadata/annotations.yaml + # ------------------- .PHONY: bundle-build diff --git a/operator/config/manifests/bases/move2kube-operator.clusterserviceversion.yaml b/operator/config/manifests/bases/move2kube-operator.clusterserviceversion.yaml index 0b74b26..c34b609 100644 --- a/operator/config/manifests/bases/move2kube-operator.clusterserviceversion.yaml +++ b/operator/config/manifests/bases/move2kube-operator.clusterserviceversion.yaml @@ -76,7 +76,7 @@ spec: - email: seshapad@in.ibm.com name: Padmanabha V Seshadri maturity: alpha - minKubeVersion: 1.22.0 + minKubeVersion: 1.13.0 provider: name: Konveyor url: https://konveyor.io