79401953

Date: 2025-01-31 06:47:45
Score: 1.5
Natty:
Report link

Just discovered using if else statement in rules so went down this route instead:

annotations:
  platform: "{{ if eq .Labels.job \"node_exporter\" }}Linux{{ else if eq .Labels.job \"windows_exporter\" }}Windows{{ end }}"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: twkl