Skip to content

Commit

Permalink
fix: for Red Hat community prod operators repo we need lower K8s to b…
Browse files Browse the repository at this point in the history
…e compatible with all Openshift versions (#170)

Also add an annotation to indicate compatible Openshift versions in metadata/annotations.yaml

Signed-off-by: Harikrishnan Balagopal <[email protected]>
  • Loading branch information
HarikrishnanBalagopal authored Mar 22, 2024
1 parent 101e42c commit b44a001
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 MYYQEXPR2 := '.annotations."com.redhat.openshift.versions"="v4.1"')
echo ${MYYQEXPR2}
yq eval --exit-status ${MYYQEXPR2} 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- email: [email protected]
name: Padmanabha V Seshadri
maturity: alpha
minKubeVersion: 1.22.0
minKubeVersion: 1.13.0
provider:
name: Konveyor
url: https://konveyor.io
Expand Down

0 comments on commit b44a001

Please sign in to comment.