kedge icon indicating copy to clipboard operation
kedge copied to clipboard

Kedge OpenShift artifacts failing on older server versions

Open concaf opened this issue 8 years ago • 2 comments

I just tried deploying to an older OpenShift cluster, but kedge failed like the following.

$ ~/kedge/bin/kedge create -f kedge.yml 
service "thedarnapi" created
error: unable to recognize "STDIN": no matches for route.openshift.io/, Kind=Route
failed to execute command: failed to execute command: exit status 1

$ oc version
oc v3.6.1+008f2d5
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server <redacted>
openshift v1.5.1
kubernetes v1.5.2+43a9be4

The route definition is causing the problem -

apiVersion: route.openshift.io/v1
kind: Route
...

which I don't think is supported on the older OpenShift versions.

Need to evaluate is this is working on all the versions we are planning to support.

concaf avatar Nov 02 '17 09:11 concaf

Yes. I got the same error too. Worked perfectly fine with oc v3.6.1

ashetty1 avatar Nov 02 '17 09:11 ashetty1

I thought that we are officially supporting only Kubernetets 1.6 and up and OpenShift 3.6 and up.

This should be stated in Readme somewhere.

If not that we have to change api group for Routes to v1 (this should still work in 3.6)

apiVersion: v1
kind: Route

kadel avatar Nov 03 '17 07:11 kadel