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
The current operator form parses float values in driver configuration as text, which means they reach as str to Ember-CSI code, which breaks drivers that use float's in their configuration and assume (reasonably) that they receive them as float and not str.
The reason why we were converting to text is the OLM not having a float type. It only has the number type and using it for floats will truncate the number and removes the decimal portion of the number.
The current operator form parses float values in driver configuration as
text
, which means they reach asstr
to Ember-CSI code, which breaks drivers that use float's in their configuration and assume (reasonably) that they receive them asfloat
and notstr
.As an example: Issue #166 in the Ember-CSI repository that fails because of the
vmware_task_poll_interval
configuration option.The reason why we were converting to
text
is the OLM not having afloat
type. It only has thenumber
type and using it for floats will truncate the number and removes the decimal portion of the number.A possible solution is to add a new transform function on the operator to the existing ones that transforms from
text
to a float and thenadd this new transform to the generator and then use it on the floats configuration options section.
That way Ember-CSI will be able to receive a
float
instance instead of a string.The text was updated successfully, but these errors were encountered: