Skip to content

Commit

Permalink
[bitnami/odoo] fix issue #31612 - Incompatibility with OCI FSS persis…
Browse files Browse the repository at this point in the history
…tent volumes (.snapshot read-only file system) (#31860)

* [bitnami/odoo] add support for subPath in Odoo persistence configuration

Signed-off-by: Alan Baldo <[email protected]>

* [bitnami/odoo] chore: bump chart version

Signed-off-by: Alan Baldo <[email protected]>

* [bitnami/odoo] fix: update persistence.subPath default value to an empty string

Signed-off-by: Alan Baldo <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Alan Baldo <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
baldo-io and bitnami-bot authored Feb 12, 2025
1 parent d9bb11a commit def5382
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bitnami/odoo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## 28.1.2 (2025-02-05)
## 28.1.3 (2025-02-11)

* [bitnami/odoo] Release 28.1.2 ([#31784](https://github.com/bitnami/charts/pull/31784))
* [bitnami/odoo] fix issue #31612 - Incompatibility with OCI FSS persistent volumes (.snapshot read-only file system) ([#31860](https://github.com/bitnami/charts/pull/31860))

## <small>28.1.2 (2025-02-06)</small>

* [bitnami/odoo] Release 28.1.2 (#31784) ([c31c809](https://github.com/bitnami/charts/commit/c31c809602d61ad62baa5fcf73b3ffec6626de7c)), closes [#31784](https://github.com/bitnami/charts/issues/31784)
* Update copyright year (#31682) ([e9f02f5](https://github.com/bitnami/charts/commit/e9f02f5007068751f7eb2270fece811e685c99b6)), closes [#31682](https://github.com/bitnami/charts/issues/31682)

## <small>28.1.1 (2025-01-13)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/odoo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ maintainers:
name: odoo
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/odoo
version: 28.1.2
version: 28.1.3
1 change: 1 addition & 0 deletions bitnami/odoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ See the [Parameters](#parameters) section to configure the PVC or to disable per
| Name | Description | Value |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| `persistence.enabled` | Enable persistence using Persistent Volume Claims | `true` |
| `persistence.subPath` | Include subPath on volumeMounts for Odoo data | `""` |
| `persistence.resourcePolicy` | Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted | `""` |
| `persistence.storageClass` | Persistent Volume storage class | `""` |
| `persistence.accessModes` | Persistent Volume access modes | `[]` |
Expand Down
6 changes: 6 additions & 0 deletions bitnami/odoo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ spec:
volumeMounts:
- name: odoo-data
mountPath: /bitnami/odoo
{{- if .Values.persistence.subPath }}
subPath: {{ .Values.persistence.subPath }}
{{- end }}
{{- end }}
{{- if .Values.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
Expand Down Expand Up @@ -244,6 +247,9 @@ spec:
volumeMounts:
- name: odoo-data
mountPath: /bitnami/odoo
{{- if .Values.persistence.subPath }}
subPath: {{ .Values.persistence.subPath }}
{{- end }}
{{- if .Values.customPostInitScripts }}
- mountPath: /docker-entrypoint-init.d
name: custom-postinit
Expand Down
3 changes: 3 additions & 0 deletions bitnami/odoo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ persistence:
## @param persistence.enabled Enable persistence using Persistent Volume Claims
##
enabled: true
## @param persistence.subPath Include subPath on volumeMounts for Odoo data
##
subPath: ""
## @param persistence.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
##
resourcePolicy: ""
Expand Down

0 comments on commit def5382

Please sign in to comment.