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

CLOUD-838 - psmdb-db fix: update path and type HostPath #270

Merged
merged 7 commits into from
Feb 1, 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: 1 addition & 1 deletion charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.15.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.15.2
version: 1.15.3
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The chart can be customized using the following configurable parameters:
| `replsets[0].volumeSpec.emptyDir` | ReplicaSet Pods emptyDir K8S storage | `{}` |
| `replsets[0].volumeSpec.hostPath` | ReplicaSet Pods hostPath K8S storage | |
| `replsets[0].volumeSpec.hostPath.path` | ReplicaSet Pods hostPath K8S storage path | `""` |
| `replsets[0].volumeSpec.hostPath.type` | Type for hostPath volume | `Directory` |
| `replsets[0].volumeSpec.pvc` | ReplicaSet Pods PVC request parameters | |
| `replsets[0].volumeSpec.pvc.annotations` | The Kubernetes annotations metadata for Persistent Volume Claim | `{}` |
| `replsets[0].volumeSpec.pvc.labels` | The Kubernetes labels metadata for Persistent Volume Claim | `{}` |
Expand All @@ -119,6 +120,7 @@ The chart can be customized using the following configurable parameters:
| `replsets[0].nonvoting.volumeSpec.emptyDir` | Nonvoting Pods emptyDir K8S storage | `{}` |
| `replsets[0].nonvoting.volumeSpec.hostPath` | Nonvoting Pods hostPath K8S storage | |
| `replsets[0].nonvoting.volumeSpec.hostPath.path` | Nonvoting Pods hostPath K8S storage path | `""` |
| `replsets[0].nonvoting.volumeSpec.hostPath.type` | Type for hostPath volume | `Directory` |
| `replsets[0].nonvoting.volumeSpec.pvc` | Nonvoting Pods PVC request parameters | |
| `replsets[0].nonvoting.volumeSpec.pvc.annotations` | The Kubernetes annotations metadata for Persistent Volume Claim | `{}` |
| `replsets[0].nonvoting.volumeSpec.pvc.labels` | The Kubernetes labels metadata for Persistent Volume Claim | `{}` |
Expand Down Expand Up @@ -172,6 +174,7 @@ The chart can be customized using the following configurable parameters:
| `sharding.configrs.resources.requests.memory` | Config ReplicaSet resource requests memory | `0.5G` |
| `sharding.configrs.volumeSpec.hostPath` | Config ReplicaSet hostPath K8S storage | |
| `sharding.configrs.volumeSpec.hostPath.path` | Config ReplicaSet hostPath K8S storage path | `""` |
| `sharding.configrs.volumeSpec.hostPath.type` | Type for hostPath volum | `Directory` |
| `sharding.configrs.volumeSpec.emptyDir` | Config ReplicaSet Pods emptyDir K8S storage | |
| `sharding.configrs.volumeSpec.pvc` | Config ReplicaSet Pods PVC request parameters | |
| `sharding.configrs.volumeSpec.pvc.annotations` | The Kubernetes annotations metadata for Persistent Volume Claim | `{}` |
Expand Down
18 changes: 15 additions & 3 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,12 @@ spec:
volumeSpec:
{{- if $replset.volumeSpec.hostPath }}
hostPath:
path: {{ $replset.volumeSpec.hostPath }}
path: {{ $replset.volumeSpec.hostPath.path }}
{{- if $replset.volumeSpec.hostPath.type }}
type: {{ $replset.volumeSpec.hostPath.type }}
{{- else }}
type: Directory
{{- end }}
{{- else if $replset.volumeSpec.pvc }}
persistentVolumeClaim:
{{ $replset.volumeSpec.pvc | toYaml | indent 8 }}
Expand Down Expand Up @@ -258,8 +262,12 @@ spec:
volumeSpec:
{{- if $replset.nonvoting.volumeSpec.hostPath }}
hostPath:
path: {{ $replset.nonvoting.volumeSpec.hostPath }}
path: {{ $replset.nonvoting.volumeSpec.hostPath.path }}
{{- if $replset.nonvoting.volumeSpec.hostPath.type }}
type: {{ $replset.nonvoting.volumeSpec.hostPath.type }}
{{- else }}
type: Directory
{{- end }}
{{- else if $replset.nonvoting.volumeSpec.pvc }}
persistentVolumeClaim:
{{ $replset.nonvoting.volumeSpec.pvc | toYaml | indent 10 }}
Expand Down Expand Up @@ -413,8 +421,12 @@ spec:
volumeSpec:
{{- if .Values.sharding.configrs.volumeSpec.hostPath }}
hostPath:
path: {{ .Values.sharding.configrs.volumeSpec.hostPath }}
path: {{ .Values.sharding.configrs.volumeSpec.hostPath.path }}
{{- if .Values.sharding.configrs.volumeSpec.hostPath.type }}
type: {{ .Values.sharding.configrs.volumeSpec.hostPath.type }}
{{- else }}
type: Directory
{{- end }}
{{- else if .Values.sharding.configrs.volumeSpec.pvc }}
persistentVolumeClaim:
{{ .Values.sharding.configrs.volumeSpec.pvc | toYaml | indent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ replsets:
# emptyDir: {}
# hostPath:
# path: /data
# type: Directory
pvc:
# annotations:
# volume.beta.kubernetes.io/storage-class: example-hostpath
Expand Down Expand Up @@ -252,6 +253,7 @@ replsets:
# emptyDir: {}
# hostPath:
# path: /data
# type: Directory
pvc:
# annotations:
# volume.beta.kubernetes.io/storage-class: example-hostpath
Expand Down
Loading