diff --git a/charts/rstudio-sparkr/Chart.yaml b/charts/rstudio-sparkr/Chart.yaml index 8002cf10..47c34f13 100644 --- a/charts/rstudio-sparkr/Chart.yaml +++ b/charts/rstudio-sparkr/Chart.yaml @@ -23,7 +23,8 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.17.1 + +version: 1.17.2 dependencies: - name: library-chart diff --git a/charts/rstudio-sparkr/templates/statefulset.yaml b/charts/rstudio-sparkr/templates/statefulset.yaml index c709c909..6b387131 100644 --- a/charts/rstudio-sparkr/templates/statefulset.yaml +++ b/charts/rstudio-sparkr/templates/statefulset.yaml @@ -88,7 +88,24 @@ spec: command: - sh - -c - - cp -R /src/* /dest + - | + echo 'initContainer make-secrets-writable is started'; + {{- if .Values.s3.enabled }} + mkdir /dest/coresite; + cp /src/coresite/core-site.xml /dest/coresite/core-site.xml; + {{- end }} + {{- if .Values.spark.default }} + mkdir /dest/spark; + cp /src/spark/spark-defaults.conf /dest/spark/spark-defaults.conf; + {{- end }} + {{- if and (.Values.spark.default) (.Values.repository.mavenRepository) }} + mkdir /dest/ivysettings; + cp /src/ivysettings/ivysettings.xml /dest/ivysettings/ivysettings.xml; + {{- end }} + {{- if .Values.discovery.hive }} + mkdir /dest/hive; + cp /src/hive/hive-site.xml /dest/hive/hive-site.xml; + {{- end }} volumeMounts: {{- if .Values.s3.enabled }} - name: secret-coresite