Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tpl support for summary field #213

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

maximveksler
Copy link

@maximveksler maximveksler commented Mar 3, 2024

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)

  • fixes #

Special notes for your reviewer:

Checklist

  • DCO signed
  • Chart Version bumped
  • helm-docs are updated
  • Helm chart is tested
  • Update artifacthub.io/changes in Chart.yaml
  • Run make reviewable

Signed-off-by: Maxim Veksler <[email protected]>
Signed-off-by: Maxim Veksler <[email protected]>
Signed-off-by: Maxim Veksler <[email protected]>
@maximveksler
Copy link
Author

@haarchri would appreciate feedback on this please.

@maximveksler
Copy link
Author

@stefanprodan let's get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant