operator-framework / operator-sdk

SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding.
https://sdk.operatorframework.io
Apache License 2.0
7.24k stars 1.74k forks source link

Support Kubernetes 1.17 in tests #2665

Closed glothriel closed 4 years ago

glothriel commented 4 years ago

Feature Request

Molecule test framework for operator-sdk uses bsycorp/kind image, that did not release 1.17 version. This makes us unable to test against kubernetes > 1.16

We could evaluate if we can use kindtest:node images instead of custom ones.

glothriel commented 4 years ago

It looks like their CI failed for 1.17: https://travis-ci.org/bsycorp/kind/builds/648677096?utm_source=github_status&utm_medium=notification

camilamacedo86 commented 4 years ago

Hi @glothriel,

The plan is to upgrade the SDK to use 1.17 k8s api. However, it has dependencies with OLM then, we need to wait for OLM be upgraded first. Note that the 1.17 still not supported yet.

PS: By checking your errors in https://travis-ci.org/github/bsycorp/kind/jobs/648677100#L403 I am not sure if the 1.17 is properly set up in your test env too.

glothriel commented 4 years ago

Hi @camilamacedo86

PS: By checking your errors in https://travis-ci.org/github/bsycorp/kind/jobs/648677100#L403 I am not sure if the 1.17 is properly set up in your test env too.

This isn't my test env, it's a build that builds bsycorp/kind images, that are used by OperatorSDK molecule test framework. So even if OperatorSDK itself had support for 1.17, we are unable to ship molecule tests, as there are no bsycorp/kind:1.17 images.

camilamacedo86 commented 4 years ago

HI @glothriel,

The default Kube version is 1.16. See; https://github.com/operator-framework/operator-sdk/blob/ff657078952b44bf46fbfd9bf30ed84b500f1973/doc/ansible/dev/testing_guide.md#L95

Also, I'd like to share that the upgrade to 1.17 is already highly prioritized. We are realizing very soon the 0.16.0 of SDK so it will not be in it, however, I believe that it is something that we will be able to achieve for 0.17.

glothriel commented 4 years ago

Oke my upstream issue seems to be resolved: https://github.com/bsycorp/kind/issues/29

camilamacedo86 commented 4 years ago

Just, to register we are working to upgrade the SDK to use the upper version 1.17 and it will probably be shipped with the next release.