Skip to content

Commit

Permalink
[SAL] Use scripts image
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctozepto committed Jul 18, 2024
1 parent 23a0395 commit ef1e13c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/nebulous-sal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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: 0.1.2
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
18 changes: 16 additions & 2 deletions charts/nebulous-sal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: sal-scripts
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.scripts.image.repository }}:{{ .Values.scripts.image.tag }}"
imagePullPolicy: {{ .Values.scripts.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
command:
- /bin/sh
- -c
- cp -a /sal-scripts/{{ .Values.scripts.sourceDir }}/* /mnt/sal-scripts/
volumeMounts:
- name: script-volume
mountPath: /mnt/sal-scripts
containers:
- name: mariadb
securityContext:
Expand Down Expand Up @@ -136,8 +151,7 @@ spec:
periodSeconds: 10
volumes:
- name: script-volume
configMap:
name: {{ .Values.scriptsConfigMap }}
emptyDir: {}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
8 changes: 7 additions & 1 deletion charts/nebulous-sal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ mariadb:
securityContext: {}
resources: {}

scripts:
sourceDir: installation-scripts-onm
image:
repository: quay.io/nebulous/sal-scripts
pullPolicy: IfNotPresent
tag: "main"

# SAL config
pws:
url: ""
username: ""
password: ""
scriptsConfigMap: scripts-configmap

0 comments on commit ef1e13c

Please sign in to comment.