Skip to content

Commit

Permalink
fix(helm): Error calling gt: incompatible types for comparison (#486)
Browse files Browse the repository at this point in the history
Resolves: #485
  • Loading branch information
dschunack committed Apr 8, 2021
1 parent 63d5f8d commit dc6d9a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ spec:
value: {{ tpl .Values.targetNamespaces . | quote }}
- name: OPERATOR_SERVICE_ACCOUNT
value: {{ include "starboard-operator.serviceAccountName" . }}
{{- if gt .Values.operator.replicas 1 }}
{{- if gt (int .Values.operator.replicas) 1 }}
- name: OPERATOR_LEADER_ELECTION_ENABLED
value: "true"
{{- end }}
{{- if gt .Values.operator.replicas 1 }}
{{- if gt (int .Values.operator.replicas) 1 }}
- name: OPERATOR_LEADER_ELECTION_ID
value: {{ .Values.operator.leaderElectionId | quote }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ rules:
- watch
- create
- update
{{- if gt .Values.operator.replicas 1 }}
{{- if gt (int .Values.operator.replicas) 1 }}
- apiGroups:
- coordination.k8s.io
resources:
Expand Down

0 comments on commit dc6d9a3

Please sign in to comment.