vault-secrets-operator icon indicating copy to clipboard operation
vault-secrets-operator copied to clipboard

.Values.controller.manager.clientCache.numLocks being cast to str

Open seab4ng opened this issue 9 months ago • 2 comments

chartversion 0.9.1

Describe the bug <eq .numLocks 0> : error calling eq: incompatible types for comparison

To Reproduce install the chart with default values.

Application deployment:

in airgap env sorry can not provide.

Expected behavior .numLocks being compared as integer.

Additional context I think the issue is when pass the param or the full context "." to include function, it always pass it as a string which means the integer being cast to a string, the solution will be cast to integer back on the .tpl file ..eq (int .numLocks 0)... I may be wrong so be happy to know if it's a bug or not.

Thank you.

seab4ng avatar Mar 06 '25 10:03 seab4ng

Hi @seab4ng - thanks for reporting this issue. Are you passing any value overrides to the chart?

benashz avatar Mar 06 '25 14:03 benashz

I have tried with the default (like no passing anything).. I have tried to pass int : 50 without quotes ... did not take... I debug it with and print the log and the param is assigned correctly as int but when it being passed to the func in the .tpl file its being cast to str and then the problem... am i doing something wrong? anyway eq (int .numLocks 0) in the .tpl file solved it for me

seab4ng avatar Mar 10 '25 12:03 seab4ng