Skip to content

Commit

Permalink
Merge pull request #117 from InseeFrLab/initcontainers-should-have-a-…
Browse files Browse the repository at this point in the history
…command-at-least-and-fix-condition-on-config-files

initcontainers should have a command at least & fix condition on config-files
  • Loading branch information
fcomte authored Dec 11, 2023
2 parents d216c30 + 57b863a commit 0fbac19
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/jupyter-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.32.27
version: 1.32.28

dependencies:
- name: library-chart
Expand Down
1 change: 1 addition & 0 deletions charts/jupyter-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ spec:
- sh
- -c
- |
echo 'initContainer make-configmaps-writable is started';
{{- if .Values.s3.enabled }}
mkdir /dest/coresite;
cp /src/coresite/core-site.xml /dest/coresite/core-site.xml;
Expand Down
2 changes: 1 addition & 1 deletion charts/jupyter-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.13.21
version: 1.13.22

dependencies:
- name: library-chart
Expand Down
3 changes: 2 additions & 1 deletion charts/jupyter-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.discovery.hive }}
- name: config-files
emptyDir: {}
{{- if .Values.discovery.hive }}
- name: secret-hive
secret:
secretName: {{ include "library-chart.secretNameHive" . }}
Expand All @@ -79,6 +79,7 @@ spec:
- sh
- -c
- |
echo 'initContainer make-secrets-writable is started';
{{- if .Values.discovery.hive }}
mkdir /dest/hive;
cp /src/hive/hive-site.xml /dest/hive/hive-site.xml;
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.3.20
version: 1.3.21

dependencies:
- name: library-chart
Expand Down
5 changes: 3 additions & 2 deletions charts/vscode-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ spec:
secret:
secretName: {{ include "library-chart.secretNameMetaflow" . }}
{{- end }}
- name: config-files
emptyDir: {}
{{- if .Values.s3.enabled }}
- name: secret-coresite
secret:
secretName: {{ include "library-chart.secretNameCoreSite" . }}
- name: config-files
emptyDir: {}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand All @@ -101,6 +101,7 @@ spec:
- sh
- -c
- |
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;
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.11.19
version: 1.11.20

dependencies:
- name: library-chart
Expand Down
1 change: 1 addition & 0 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spec:
- sh
- -c
- |
echo 'initContainer make-secrets-writable is started';
{{- if .Values.discovery.hive }}
mkdir /dest/hive;
cp /src/hive/hive-site.xml /dest/hive/hive-site.xml;
Expand Down

0 comments on commit 0fbac19

Please sign in to comment.