fluxcd-community / helm-charts

Community maintained Helm charts for Flux
Apache License 2.0
121 stars 76 forks source link

tpl support for summary field #213

Open maximveksler opened 7 months ago

maximveksler commented 7 months ago

What this PR does / why we need it:

Allow fetching values for summary field from Values / ConfigMap. Useful for automated flux rollout.

Example usage:

alertlist:
  - name: groundcover-incloud-version
    spec:
      summary: '{{ printf "%s - %s" (get (lookup "v1" "ConfigMap" "flux-system" "cluster-info").data "workspace") (get (lookup "v1" "ConfigMap" "flux-system" "cluster-info").data "region") | quote }}'
      providerRef:
        name: platform-updates
      eventSeverity: info
      eventSources:
        - kind: "HelmRelease"
          name: "groundcover-incloud"

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Checklist

maximveksler commented 7 months ago

@haarchri would appreciate feedback on this please.

maximveksler commented 4 months ago

@stefanprodan let's get this merged?