Skip to content

Commit ea4dbf6

Browse files
liu-congkfswain
authored andcommitted
Bug fix - error calling gt: incompatible types for comparison: float64 and int (#1630)
1 parent fe516d7 commit ea4dbf6

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
@@ -51,7 +51,7 @@ spec:
5151
- --lora-info-metric
5252
- "" # Set an empty metric to disable LoRA metric scraping as they are not supported by Triton yet.
5353
{{- end }}
54-
{{- if gt .Values.inferenceExtension.replicas 1 }}
54+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
5555
- --ha-enable-leader-election
5656
{{- end }}
5757
# Pass additional flags via the inferenceExtension.flags field in values.yaml.
@@ -70,7 +70,7 @@ spec:
7070
{{- toYaml . | nindent 8 }}
7171
{{- end }}
7272
livenessProbe:
73-
{{- if gt .Values.inferenceExtension.replicas 1 }}
73+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
7474
grpc:
7575
port: 9003
7676
service: liveness
@@ -82,7 +82,7 @@ spec:
8282
initialDelaySeconds: 5
8383
periodSeconds: 10
8484
readinessProbe:
85-
{{- if gt .Values.inferenceExtension.replicas 1 }}
85+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
8686
grpc:
8787
port: 9003
8888
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)