Skip to content

Commit 50ac36b

Browse files
committed
Bug fix - error calling gt: incompatible types for comparison: float64 and int
1 parent 6e6823a commit 50ac36b

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
@@ -49,7 +49,7 @@ spec:
4949
- --lora-info-metric
5050
- "" # Set an empty metric to disable LoRA metric scraping as they are not supported by Triton yet.
5151
{{- end }}
52-
{{- if gt .Values.inferenceExtension.replicas 1 }}
52+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
5353
- --ha-enable-leader-election
5454
{{- end }}
5555
# Pass additional flags via the inferenceExtension.flags field in values.yaml.
@@ -68,7 +68,7 @@ spec:
6868
{{- toYaml .Values.inferenceExtension.extraContainerPorts | nindent 8 }}
6969
{{- end }}
7070
livenessProbe:
71-
{{- if gt .Values.inferenceExtension.replicas 1 }}
71+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
7272
grpc:
7373
port: 9003
7474
service: liveness
@@ -80,7 +80,7 @@ spec:
8080
initialDelaySeconds: 5
8181
periodSeconds: 10
8282
readinessProbe:
83-
{{- if gt .Values.inferenceExtension.replicas 1 }}
83+
{{- if gt (.Values.inferenceExtension.replicas | int) 1 }}
8484
grpc:
8585
port: 9003
8686
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)