Skip to content

Commit 74070bc

Browse files
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 <[email protected]>
1 parent 101e42c commit 74070bc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

operator/Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,17 @@ bundle: kustomize operator-sdk ## Generate bundle manifests and metadata, then v
232232
ls -al bundle/
233233
ls -al bundle/manifests
234234
ls -al bundle/metadata
235+
ls -al bundle/metadata/annotations.yaml
236+
# -------------------
237+
echo 'before adding the annotation required for red hat community prod repo'
238+
cat bundle/metadata/annotations.yaml
239+
$(eval MYYQEXPR2 := '.annotations."com.redhat.openshift.versions"="v4.1"')
240+
echo ${MYYQEXPR2}
241+
yq eval --exit-status ${MYYQEXPR2} bundle/metadata/annotations.yaml > foo.yaml
242+
mv foo.yaml bundle/metadata/annotations.yaml
243+
echo 'after adding the annotation required for red hat community prod repo'
244+
cat bundle/metadata/annotations.yaml
245+
# -------------------
235246

236247

237248
.PHONY: bundle-build

operator/config/manifests/bases/move2kube-operator.clusterserviceversion.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
7777
name: Padmanabha V Seshadri
7878
maturity: alpha
79-
minKubeVersion: 1.22.0
79+
minKubeVersion: 1.13.0
8080
provider:
8181
name: Konveyor
8282
url: https://konveyor.io

0 commit comments

Comments
 (0)