Skip to content

Commit

Permalink
Merge pull request #270 from qmiinh/fix-helm-hostpath
Browse files Browse the repository at this point in the history
CLOUD-838 - psmdb-db fix: update path and type HostPath
  • Loading branch information
tplavcic authored Feb 1, 2024
2 parents 34458bb + e2603b5 commit daaac66
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
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

0 comments on commit daaac66

Please sign in to comment.