Skip to content

Commit 3f2ac07

Browse files
authored
Bug fix - error calling gt: incompatible types for comparison: float64 and int (#1630)
1 parent b1540cd commit 3f2ac07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/charts/inferencepool/templates/epp-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ spec:
5454
- --lora-info-metric
5555
- "" # Set an empty metric to disable LoRA metric scraping as they are not supported by Triton yet.
5656
{{- end }}
57-
{{- if gt .Values.inferenceExtension.replicas 1 }}
57+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
5858
- --ha-enable-leader-election
5959
{{- end }}
6060
# Pass additional flags via the inferenceExtension.flags field in values.yaml.
@@ -73,7 +73,7 @@ spec:
7373
{{- toYaml .Values.inferenceExtension.extraContainerPorts | nindent 8 }}
7474
{{- end }}
7575
livenessProbe:
76-
{{- if gt .Values.inferenceExtension.replicas 1 }}
76+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
7777
grpc:
7878
port: 9003
7979
service: liveness
@@ -85,7 +85,7 @@ spec:
8585
initialDelaySeconds: 5
8686
periodSeconds: 10
8787
readinessProbe:
88-
{{- if gt .Values.inferenceExtension.replicas 1 }}
88+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
8989
grpc:
9090
port: 9003
9191
service: readiness

config/charts/inferencepool/templates/leader-election-rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if gt .Values.inferenceExtension.replicas 1 }}
1+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
22
---
33
kind: Role
44
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)