Skip to content

Commit

Permalink
Update service.yaml
Browse files Browse the repository at this point in the history
The fields in the selector within the services are getting duplicated when generated, and this is causing issues in FluxCD v2.

Example error:

Helm install failed for release trivy-report-operator/trivy-dojo-operator with chart [email protected]: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors: line 20: mapping key "app.kubernetes.io/instance" already defined at line 17 line 19: mapping key "app.kubernetes.io/name" already defined at line 18
  • Loading branch information
rits1902 authored May 25, 2024
1 parent ec61656 commit 4d3b9f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions charts/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ metadata:
spec:
type: {{ .Values.operator.type }}
selector:
app.kubernetes.io/instance: trivy-dojo-report-operator
app.kubernetes.io/name: trivy-dojo-report-operator
{{- include "charts.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.operator.ports | toYaml | nindent 2 -}}
{{- .Values.operator.ports | toYaml | nindent 2 -}}

0 comments on commit 4d3b9f2

Please sign in to comment.