Skip to content

Commit

Permalink
add helm check
Browse files Browse the repository at this point in the history
  • Loading branch information
Frapschen committed Jul 4, 2023
1 parent 961434c commit eaeca46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm/tailing-sidecar-operator/templates/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,15 @@ metadata:
name: {{ include "tailing-sidecar-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.operator.leaderElection.enabled }}
replicas: {{ .Values.operator.replicaCount }}
{{- else }}
{{- if gt (.Values.operator.replicaCount | toString) "1" }}
replicas: 1
{{- else }}
replicas: {{ .Values.operator.replicaCount }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "tailing-sidecar-operator.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit eaeca46

Please sign in to comment.