Skip to content

Commit

Permalink
Add posibility for custom volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nierhoff committed Aug 12, 2024
1 parent 7db9abb commit 934b01e
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ Configure your Infinispan cluster by specifying values in the `deploy.*` section
| `deploy.securityContext` | Defines the securityContext settings used by the cluster's StatefulSet | `{}` | - |
| `deploy.ssl.endpointSecretName` | Specifies the name of the secret that contains certificate for endpoint encryption | `""` | - |
| `deploy.ssl.transportSecretName` | Specifies the name of the secret that contains certificate for transport encryption | `""` | - |
| `deploy.volumeMounts` | Add custome volume mounts to infinispan | `[]` | - |
| `deploy.volumes` | Add custome volumes to infinispan | `[]` | - |
| `deploy.infinispan` | Infinispan Server configuration. | - | You should not change the default socket bindings or the security realm and endpoints named "metrics". Modifying these default properties can result in unexpected behavior and loss of service. |
2 changes: 2 additions & 0 deletions README.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ Configure your {brandname} cluster by specifying values in the `deploy.*` sectio
| `deploy.securityContext` | Defines the securityContext settings used by the cluster's StatefulSet | `{}` | - |
| `deploy.ssl.endpointSecretName` | Specifies the name of the secret that contains certificate for endpoint encryption | `""` | - |
| `deploy.ssl.transportSecretName` | Specifies the name of the secret that contains certificate for transport encryption | `""` | - |
| `deploy.volumeMounts` | Add custome volume mounts to infinispan | `[]` | - |
| `deploy.volumes` | Add custome volumes to infinispan | `[]` | - |
| `deploy.infinispan` | {brandname} Server configuration. | - | You should not change the default socket bindings or the security realm and endpoints named "metrics". Modifying these default properties can result in unexpected behavior and loss of service. |
6 changes: 6 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ spec:
- mountPath: "/etc/encrypt/endpoint"
name: "encrypt-volume"
{{- end }}
{{- with .Values.deploy.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- configMap:
name: {{ printf "%s-configuration" (include "infinispan-helm-charts.name" .) }}
Expand All @@ -170,6 +173,9 @@ spec:
- name: data-volume
emptyDir: { }
{{- end }}
{{- with .Values.deploy.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deploy.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
33 changes: 33 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,39 @@
"null"
]
},
"volumeMounts": {
"description": "Add custome volume mounts to infinispan",
"items": {
"properties": {
"name": {
"type": "string"
},
"mountPath": {
"type": "string"
}
},
"additionalProperties": true
},
"type": [
"array",
"null"
]
},
"volumes": {
"description": "Add custome volumes to infinispan",
"items": {
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": true
},
"type": [
"array",
"null"
]
},
"infinispan": {
"description": "Infinispan cluster configuration",
"type": [
Expand Down
33 changes: 33 additions & 0 deletions values.schema.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,39 @@
"null"
]
},
"volumeMounts": {
"description": "Add custome volume mounts to infinispan",
"items": {
"properties": {
"name": {
"type": "string"
},
"mountPath": {
"type": "string"
}
},
"additionalProperties": true
},
"type": [
"array",
"null"
]
},
"volumes": {
"description": "Add custome volumes to infinispan",
"items": {
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": true
},
"type": [
"array",
"null"
]
},
"infinispan": {
"description": "Infinispan cluster configuration",
"type": [
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ deploy:

securityContext: {}

volumeMounts: []
# - name: logs
# mountPath: /logs

volumes: []
# - name: logs
# emptyDir: {}

ssl:
endpointSecretName: ""
transportSecretName: ""
Expand Down

0 comments on commit 934b01e

Please sign in to comment.