sysdiglabs / charts

The official source for Sysdig’s Helm charts
https://charts.sysdig.com
40 stars 127 forks source link

fix(agent): use dig function for prometheus_exporter settings check #1871

Closed aroberts87 closed 1 month ago

aroberts87 commented 1 month ago

What this PR does / why we need it:

Migrate the new prometheus_exporter port creation logic to use Helm's 'dig' function to protect against cases where the values may not be present.

Checklist

francesco-furlan commented 1 month ago

@aroberts87 when was dig introduced? Are we sure to not break older versions of helm?

aroberts87 commented 1 month ago

@aroberts87 when was dig introduced? Are we sure to not break older versions of helm?

@francesco-furlan - The dig function was added in v3.5.0, which is fortunately below our minimum supported version of v3.6.