Skip to content

Commit

Permalink
Merge pull request #162 from phlg/fix_spark_proxy
Browse files Browse the repository at this point in the history
[library-chart] Partial rollback of Spark proxy exceptions
  • Loading branch information
fcomte authored Oct 8, 2024
2 parents d84bea3 + 69f5bfb commit 38ab3f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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.25
version: 1.5.26
type: library
9 changes: 3 additions & 6 deletions charts/library-chart/templates/_secret.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,9 @@ Flag to disable certificate checking for Spark

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

{{- end }}
Expand Down

0 comments on commit 38ab3f7

Please sign in to comment.