charts
charts copied to clipboard
Error with Type Mismatch in deployment-worker.yaml Template
Description
The Helm chart produces a type mismatch error when deploying the worker component due to an incompatible comparison between a float and an integer in the deployment-worker.yaml template. The issue arises in the following logic:
<gt (mulf 2.0 .Values.worker.gracefulShutdown.gracePeriodSeconds) .Values.worker.terminationGracePeriodSeconds>
When the result of mulf 2.0 is a float and .Values.worker.terminationGracePeriodSeconds is an integer, the gt function fails because it cannot compare different types.
Steps to Reproduce
- Configure
worker.gracefulShutdown.gracePeriodSecondsvia helm command - Deploy the Helm chart:
helm install my-trino trino/trino \ --set "worker.gracefulShutdown.enabled=true" \ --set "worker.terminationGracePeriodSeconds=600" - Observe the following error:
Error: template: /charts/trino/templates/deployment-worker.yaml:111:58: executing "/charts/trino/templates/deployment-worker.yaml" at <gt (mulf 2.0 .Values.worker.gracefulShutdown.gracePeriodSeconds) .Values.worker.terminationGracePeriodSeconds>: error calling gt: incompatible types for comparison
Expected Behavior
The comparison should work without error, ensuring compatibility between worker.gracefulShutdown.gracePeriodSeconds and worker.terminationGracePeriodSeconds.