Skip to content

Commit 21c1e83

Browse files
committedApr 16, 2025
chore: use only respond for response_actions
1 parent ff580ec commit 21c1e83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎charts/shield/templates/host/_configmap_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{- $featureRespond := get . (include "host.respond_key" .) }}
1414
{{- $rapid_response := dict "rapid_response" (pick $featureRespond.rapid_response "enabled") }}
1515
{{- $respond = merge $respond $rapid_response -}}
16-
{{- $respond = merge $respond (pick $featureRespond "response_actions") -}}
16+
{{- $respond = merge $respond (pick .respond "response_actions") -}}
1717
{{- dict "respond" $respond | toYaml }}
1818
{{- end }}
1919

‎charts/shield/templates/host/_helpers.tpl

+4-2
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,15 @@ true
220220
If neither is found, it defaults to false.
221221
*/}}
222222
{{- define "host.response_actions_enabled" }}
223-
{{- $feature_respond := dig (include "host.respond_key" .Values.features) (dict) .Values.features }}
223+
{{- $feature_respond := dig "respond" (dict) .Values.features }}
224224
{{- $additional_features := dig "features" (dict) .Values.host.additional_settings }}
225-
{{- $additional_respond := dig (include "host.respond_key" $additional_features) (dict) $additional_features }}
225+
{{- $additional_respond := dig "respond" (dict) $additional_features }}
226226
{{- if hasKey $additional_respond "response_actions" }}
227227
{{- dig "response_actions" "enabled" false $additional_respond -}}
228228
{{- else if hasKey $feature_respond "response_actions" }}
229229
{{- dig "response_actions" "enabled" false $feature_respond -}}
230+
{{- end }}
231+
{{- end }}
230232

231233
{{- define "host.rapid_response_password" }}
232234
{{- $feature_respond := get .Values.features (include "host.respond_key" .Values.features) }}

0 commit comments

Comments
 (0)