fix: Allow metrics service without CoreOS Service Monitor (#775)

Signed-off-by: Pedro Arvela <pedro.arvela@onfido.com>
This commit is contained in:
Pedro Arvela 2021-05-31 22:23:05 +01:00 committed by GitHub
parent 4a905d5736
commit b582098455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v1.0.1"
description: A Helm chart for Argo Rollouts
name: argo-rollouts
version: 1.0.0
version: 1.0.1
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
home: https://github.com/argoproj/argo-helm
maintainers:

View file

@ -39,6 +39,7 @@ $ helm install my-release argo/argo-rollouts
| controller.tolerations | list | `[]` | [Tolerations for use with node taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
| controller.affinity | object | `{}` | [Assign custom affinity rules to the deployment](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/) |
| controller.nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) |
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |

View file

@ -1,4 +1,4 @@
{{- if .Values.controller.metrics.serviceMonitor.enabled }}
{{- if .Values.controller.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:

View file

@ -1,4 +1,4 @@
{{- if .Values.controller.metrics.serviceMonitor.enabled }}
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:

View file

@ -25,6 +25,7 @@ controller:
# memory: 64Mi
metrics:
enabled: false
serviceMonitor:
enabled: false
additionalLabels: {}