Skip to content

Commit

Permalink
Modify spark proxy injection
Browse files Browse the repository at this point in the history
  • Loading branch information
ihiverlet authored Sep 10, 2024
1 parent c16c938 commit 54f2195
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/library-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: library-chart
version: 1.5.24
version: 1.5.25
type: library
11 changes: 7 additions & 4 deletions charts/library-chart/templates/_secret.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,13 @@ Flag to disable certificate checking for Spark
{{- end -}}

{{/* Build a spark (or java) oriented non proxy hosts list from the linux based noProxy variable */}}
{{- if .Values.proxy -}}
{{- $nonProxyHosts := regexReplaceAllLiteral "\\|\\." (regexReplaceAllLiteral "^(\\.)" (replace "," "|" (default "localhost" .Values.proxy.noProxy)) "*.") "|*." -}}
{{- printf " -Dhttp.nonProxyHosts=%v" $nonProxyHosts }}
{{- printf " -Dhttps.nonProxyHosts=%v" $nonProxyHosts }}
{{- if (.Values.proxy).enabled -}}
{{- if .Values.proxy.httpProxy }}
{{- printf " -Dhttp.nonProxyHosts=%v" .Values.proxy.httpProxy }}
{{- end }}
{{- if .Values.proxy.httpsProxy }}
{{- printf " -Dhttps.nonProxyHosts=%v" .Values.proxy.httpsProxy }}
{{- end }}
{{- end -}}

{{- end }}
Expand Down

0 comments on commit 54f2195

Please sign in to comment.