Skip to content

Commit

Permalink
GDB-9190: Extra init containers
Browse files Browse the repository at this point in the history
Added `graphdb.node.extraInitContainers` and `graphdb.clusterProxy.extraInitContainers` that allows
for the insertion of custom init containers to both GraphDB and its proxy.
  • Loading branch information
mihailradkov committed Feb 13, 2024
1 parent d4ec95f commit 68d4b09
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
### New

- Added `graphdb.node.licenseFilename` for cases where the default filename is not "graphdb.license"
- Added `graphdb.node.extraInitContainers` and `graphdb.clusterProxy.extraInitContainers` that allows for the insertion of custom init containers to
both GraphDB and its proxy

### Improvements

Expand Down
4 changes: 4 additions & 0 deletions templates/graphdb-cluster-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ spec:
{{- end }}
imagePullSecrets:
{{- include "graphdb.combinedImagePullSecrets" $ | nindent 8 }}
{{- with .Values.graphdb.clusterProxy.extraInitContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: graphdb-proxy
image: {{ include "graphdb.image" . }}
Expand Down
4 changes: 3 additions & 1 deletion templates/graphdb-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ spec:
fi
mkdir -p /opt/graphdb/home/jdbc-driver
echo 'Done'
{{- with .Values.graphdb.node.extraInitContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ graphdb:
extraVolumes: []
# additional volume mounts to be set for the graphdb nodes
extraVolumeMounts: []
# additional init containers inserted after the provisioning init containers
extraInitContainers: []
# podSecurityContext defines privilege and access control settings for the node pods.
podSecurityContext: {}
# securityContext defines privilege and access control settings for the node container running graphdb.
Expand Down Expand Up @@ -280,6 +282,8 @@ graphdb:
extraVolumes: []
# additional volume mounts to be set for each cluster proxy
extraVolumeMounts: []
# additional init containers
extraInitContainers: []
# podSecurityContext defines privilege and access control settings for the proxy pods.
podSecurityContext: {}
# securityContext defines privilege and access control settings for the proxy containers.
Expand Down

0 comments on commit 68d4b09

Please sign in to comment.