kedge
kedge copied to clipboard
Kedge OpenShift artifacts failing on older server versions
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.
Yes. I got the same error too. Worked perfectly fine with oc v3.6.1
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