chore: Apply changes from code review
Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
dc33346174
commit
165dcb378b
5 changed files with 18 additions and 9 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.5.5
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.40.15
|
version: 0.41.0
|
||||||
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
|
|
@ -111,6 +111,7 @@ Fields to note:
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
|
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
|
||||||
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
|
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
|
||||||
|
| apiVersionOverrides.monitoring | string | `""` | String to override apiVersion of monitoring CRDs (ServiceMonitor) rendered by this helm chart |
|
||||||
| commonLabels | object | `{}` | Labels to set on all resources |
|
| commonLabels | object | `{}` | Labels to set on all resources |
|
||||||
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
||||||
| crds.install | bool | `true` | Install and upgrade CRDs |
|
| crds.install | bool | `true` | Install and upgrade CRDs |
|
||||||
|
@ -212,7 +213,6 @@ Fields to note:
|
||||||
| controller.serviceAnnotations | object | `{}` | Annotations to be applied to the controller Service |
|
| controller.serviceAnnotations | object | `{}` | Annotations to be applied to the controller Service |
|
||||||
| controller.serviceLabels | object | `{}` | Optional labels to add to the controller Service |
|
| controller.serviceLabels | object | `{}` | Optional labels to add to the controller Service |
|
||||||
| controller.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
|
| controller.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
|
||||||
| controller.serviceMonitor.apiVersion | string | `"monitoring.coreos.com/v1"` | ApiVersion for the serviceMonitor resource |
|
|
||||||
| controller.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
| controller.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
||||||
| controller.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
|
| controller.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
|
||||||
| controller.serviceType | string | `"ClusterIP"` | Service type of the controller Service |
|
| controller.serviceType | string | `"ClusterIP"` | Service type of the controller Service |
|
||||||
|
|
|
@ -190,6 +190,17 @@ Return the appropriate apiVersion for GKE resources
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the appropriate apiVersion for monitoring CRDs
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.apiVersions.monitoring" -}}
|
||||||
|
{{- if .Values.apiVersionOverrides.monitoring -}}
|
||||||
|
{{- print .Values.apiVersionOverrides.monitoring -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- print "monitoring.coreos.com/v1" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Expand the namespace of the release.
|
Expand the namespace of the release.
|
||||||
Allows overriding it for multi-namespace deployments in combined charts.
|
Allows overriding it for multi-namespace deployments in combined charts.
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{{- if and (or .Values.controller.metricsConfig.enabled .Values.controller.telemetryConfig.enabled) .Values.controller.serviceMonitor.enabled }}
|
{{- $apiVersion := include "argo-workflows.apiVersions.monitoring" . }}
|
||||||
{{- $prometheusApiVersion := .Values.controller.serviceMonitor.apiVersion -}}
|
{{- if and (.Capabilities.APIVersions.Has $apiVersion) (or .Values.controller.metricsConfig.enabled .Values.controller.telemetryConfig.enabled) .Values.controller.serviceMonitor.enabled }}
|
||||||
{{- if .Capabilities.APIVersions.Has $prometheusApiVersion }}
|
apiVersion: {{ $apiVersion }}
|
||||||
apiVersion: {{ $prometheusApiVersion }}
|
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.controller.fullname" . }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
@ -50,4 +49,3 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
|
|
|
@ -42,6 +42,8 @@ apiVersionOverrides:
|
||||||
autoscaling: "" # autoscaling/v2
|
autoscaling: "" # autoscaling/v2
|
||||||
# -- String to override apiVersion of GKE resources rendered by this helm chart
|
# -- String to override apiVersion of GKE resources rendered by this helm chart
|
||||||
cloudgoogle: "" # cloud.google.com/v1
|
cloudgoogle: "" # cloud.google.com/v1
|
||||||
|
# -- String to override apiVersion of monitoring CRDs (ServiceMonitor) rendered by this helm chart
|
||||||
|
monitoring: "" # monitoring.coreos.com/v1
|
||||||
|
|
||||||
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
||||||
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
||||||
|
@ -240,8 +242,6 @@ controller:
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
# -- Prometheus ServiceMonitor namespace
|
# -- Prometheus ServiceMonitor namespace
|
||||||
namespace: "" # "monitoring"
|
namespace: "" # "monitoring"
|
||||||
# -- ApiVersion for the serviceMonitor resource
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# -- Create a service account for the controller
|
# -- Create a service account for the controller
|
||||||
create: true
|
create: true
|
||||||
|
|
Loading…
Reference in a new issue