Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
moqui
/
k8s-moqui
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1c8a743c
authored
2023-02-13 18:38:09 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add ability to specify a jdbc driver copy image.
1 parent
36f3e5db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
charts/moqui/templates/moqui.yaml
charts/moqui/values.yaml
charts/moqui/templates/moqui.yaml
View file @
1c8a743
...
...
@@ -31,10 +31,26 @@ spec:
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
volumes
:
-
name
:
runtime-lib
emptyDir
:
{}
-
name
:
disable-elasticsearch
emptyDir
:
{}
initContainers
:
{{
- if and (eq .Values.configMap.entity_ds_db_conf "postgres") (.Values.checkDsConnection.enabled)
}}
{{
- if (eq .Values.configMap.entity_ds_db_conf "postgres")
}}
{{
- if .Values.postgresql.jdbcImage.enabled
}}
-
name
:
postgresql-copy-jdbc
image
:
"
{{
.Values.postgresql.jdbcImage.repository
}}:{{
.Values.postgresql.jdbcImage.tag
}}"
imagePullPolicy
:
{{
.Values.postgresql.jdbcImage.pullPolicy
}}
command
:
-
bash
-
-cx
-
cp -a /usr/share/java/*.jar /tmp/runtime-lib
volumeMounts
:
-
mountPath
:
/tmp/runtime-lib
name
:
runtime-lib
{{
- end
}}
{{
- if (.Values.checkDsConnection.enabled)
}}
-
name
:
postgresql-check-connection
image
:
"
{{
.Values.postgresql.image.registry
}}/{{
.Values.postgresql.image.repository
}}:{{
.Values.postgresql.image.tag
}}"
imagePullPolicy
:
{{
.Values.postgresql.image.pullPolicy
}}
...
...
@@ -52,6 +68,8 @@ spec:
until pg_isready -h "${POSTGRES_HOST}" -U "${POSTGRES_USER}" -p ${POSTGRES_PORT}; do
sleep 5
done
{{
- end
}}
{{
- end
}}
{{
- define "moqui-container-pod"
}}
...
...
@@ -85,6 +103,8 @@ spec:
-
name
:
elasticsearch_url
value
:
{{
include "moqui.opensearch-url" .
}}
volumeMounts
:
-
mountPath
:
/opt/moqui/runtime/lib
name
:
runtime-lib
-
mountPath
:
/opt/moqui/runtime/elasticsearch
name
:
disable-elasticsearch
{{
- end
}}
...
...
charts/moqui/values.yaml
View file @
1c8a743
...
...
@@ -24,6 +24,11 @@ postgresql:
database
:
moqui
username
:
moqui
password
:
iuqom
jdbcImage
:
enabled
:
false
pullPolicy
:
null
repository
:
null
tag
:
null
opensearch
:
enabled
:
true
...
...
Please
register
or
sign in
to post a comment