From 23a75b16bdb4dbed82c7285b9d2e873f0ea9c652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Lagard=C3=A8re?= Date: Tue, 5 Sep 2023 15:39:13 +0200 Subject: [PATCH] chore: add library-chart.sparkNonProxyHosts variable (prer for managing the eponymous param in the three spark based charts) --- charts/library-chart/Chart.yaml | 2 +- charts/library-chart/README.md | 2 +- charts/library-chart/templates/_configmap.tpl | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index 6c611b0e..45fe3974 100644 --- a/charts/library-chart/Chart.yaml +++ b/charts/library-chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: library-chart -version: 1.4.0 +version: 1.4.1 type: library diff --git a/charts/library-chart/README.md b/charts/library-chart/README.md index b9bc6df4..a62fe88d 100644 --- a/charts/library-chart/README.md +++ b/charts/library-chart/README.md @@ -1,6 +1,6 @@ # library-chart -![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) +![Version: 1.4.1](https://img.shields.io/badge/Version-1.4.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/library-chart/templates/_configmap.tpl b/charts/library-chart/templates/_configmap.tpl index f1ec59b0..a8c72c60 100644 --- a/charts/library-chart/templates/_configmap.tpl +++ b/charts/library-chart/templates/_configmap.tpl @@ -236,6 +236,13 @@ data: {{- end }} {{/* ConfigMap for SparkConf Metastore */}} +{{/* +Build a spark (or java) oriented non proxy hosts list from the linux based noProxy variable +*/}} +{{- define "library-chart.sparkNonProxyHosts" -}} +{{- default "localhost" (regexReplaceAllLiteral "\\|\\." (regexReplaceAllLiteral "^(\\.)" (replace "," "|" .Values.proxy.noProxy) "*.") "|*.") }} +{{- end }} + {{- define "library-chart.sparkConf" -}} {{- $context:= .}} {{- range $key, $value := default dict .Values.spark.config }}