Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add posibility for custom volumes #128

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading