You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
If we don't explicitly specify the serverVersion in CR, operator should parse this value from image name. Some deployments can contains proxy for image repository and in this case image name can looks like: cassandraImage: '127.0.0.1:44301/tungsten/cassandra:3.11.6'
In this case operator can't detect version due to incorrect logic and leave PRODUCT_VERSION env variable empty:
hello @ibumarskov,
Thanks for reporting your issue and providing a fix for it :)
As I said in an earlier issue, Casskop is in a complex state with little support from Orange at this stage.
Let's talk in the PR thread :)
Bug Report
If we don't explicitly specify the serverVersion in CR, operator should parse this value from image name. Some deployments can contains proxy for image repository and in this case image name can looks like:
cassandraImage: '127.0.0.1:44301/tungsten/cassandra:3.11.6'
In this case operator can't detect version due to incorrect logic and leave PRODUCT_VERSION env variable empty:
casskop/pkg/controller/cassandracluster/generator.go
Line 634 in 2d00f1a
it's lead to error in config-builder init container.
Environment
latest
Possible Solution
Change appropriate code in following way:
if serverVersion == "" { if len(image) >= 2 { version := strings.Split(image[len(image)-1], "-") serverVersion = version[0] if len(version) != 1 { serverVersion += ".0" } } }
The text was updated successfully, but these errors were encountered: