Skip to content

Commit

Permalink
Merge pull request #114 from InseeFrLab/copy-files-only-to-stay-consi…
Browse files Browse the repository at this point in the history
…stent

copy-files-only-to-stay-consistent
  • Loading branch information
fcomte authored Dec 11, 2023
2 parents 1829ef5 + 661c00a commit fcf13dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion charts/rstudio-sparkr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 18 additions & 1 deletion charts/rstudio-sparkr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcf13dd

Please sign in to comment.