File tree 2 files changed +5
-3
lines changed
charts/shield/templates/host
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
{{- $featureRespond := get . (include "host.respond_key" .) }}
14
14
{{- $rapid_response := dict "rapid_response" (pick $featureRespond.rapid_response "enabled") }}
15
15
{{- $respond = merge $respond $rapid_response -}}
16
- {{- $respond = merge $respond (pick $featureRespond "response_actions") -}}
16
+ {{- $respond = merge $respond (pick .respond "response_actions") -}}
17
17
{{- dict "respond" $respond | toYaml }}
18
18
{{- end }}
19
19
Original file line number Diff line number Diff line change @@ -220,13 +220,15 @@ true
220
220
If neither is found, it defaults to false .
221
221
*/} }
222
222
{ {- 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 } }
224
224
{ {- $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 } }
226
226
{ {- if hasKey $additional_respond " response_actions" } }
227
227
{ {- dig " response_actions" " enabled" false $additional_respond -} }
228
228
{ {- else if hasKey $feature_respond " response_actions" } }
229
229
{ {- dig " response_actions" " enabled" false $feature_respond -} }
230
+ { {- end } }
231
+ { {- end } }
230
232
231
233
{ {- define " host.rapid_response_password" } }
232
234
{ {- $feature_respond := get .Values.features (include " host.respond_key" .Values.features) } }
You can’t perform that action at this time.
0 commit comments