Skip to content

Commit

Permalink
feat: add additionalLabels to serviceMonitor (#51)
Browse files Browse the repository at this point in the history
* feat: add additionalLabels to serviceMonitor

Signed-off-by: Brad McCoy <bradmccoydev@gmail.com>

* feat: set serviceMonitor enabled to false

Signed-off-by: Brad McCoy <bradmccoydev@gmail.com>

---------

Signed-off-by: Brad McCoy <bradmccoydev@gmail.com>
  • Loading branch information
bradmccoydev committed May 2, 2023
1 parent fd25d49 commit d8497fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ metadata:
app.kubernetes.io/created-by: k8sgpt-operator
app.kubernetes.io/part-of: k8sgpt-operator
control-plane: controller-manager
{{- include "chart.labels" . | nindent 4 }}
{{- include "chart.labels" . | nindent 4 }}
{{- if .Values.serviceMonitor.additionalLabels }}
{{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
{{- end }}
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
Expand Down
1 change: 1 addition & 0 deletions chart/operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
serviceMonitor:
enabled: false
additionalLabels: {}
controllerManager:
kubeRbacProxy:
containerSecurityContext:
Expand Down

0 comments on commit d8497fc

Please sign in to comment.