diff --git a/bitnami/prestashop/Chart.lock b/bitnami/prestashop/Chart.lock index 6aa4439500..f80626c92d 100644 --- a/bitnami/prestashop/Chart.lock +++ b/bitnami/prestashop/Chart.lock @@ -4,6 +4,6 @@ dependencies: version: 15.2.3 - name: common repository: oci://registry-1.docker.io/bitnamicharts - version: 2.16.1 -digest: sha256:aa458dbf23d5ef02fcef95f38e53da0a1891b5aa4ca1564c8c057c30a147865a -generated: "2024-02-22T15:04:02.673468755Z" + version: 2.18.0 +digest: sha256:36b99a6536d40d96d4c809ef7082c57d4c54b2fffc824e977d271c85a43e7d4c +generated: "2024-03-05T15:26:09.047388905+01:00" diff --git a/bitnami/prestashop/Chart.yaml b/bitnami/prestashop/Chart.yaml index bdcdbacce1..b3bcee350c 100644 --- a/bitnami/prestashop/Chart.yaml +++ b/bitnami/prestashop/Chart.yaml @@ -38,4 +38,4 @@ maintainers: name: prestashop sources: - https://github.com/bitnami/charts/tree/main/bitnami/prestashop -version: 20.4.1 +version: 20.5.0 diff --git a/bitnami/prestashop/README.md b/bitnami/prestashop/README.md index dd913a2cc6..22534c7209 100644 --- a/bitnami/prestashop/README.md +++ b/bitnami/prestashop/README.md @@ -59,11 +59,12 @@ The command removes all the Kubernetes components associated with the chart and ### Global parameters -| Name | Description | Value | -| ------------------------- | ----------------------------------------------- | ----- | -| `global.imageRegistry` | Global Docker image registry | `""` | -| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | -| `global.storageClass` | Global StorageClass for Persistent Volume(s) | `""` | +| Name | Description | Value | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| `global.imageRegistry` | Global Docker image registry | `""` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | +| `global.storageClass` | Global StorageClass for Persistent Volume(s) | `""` | +| `global.compatibility.openshift.adaptSecurityContext` | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | `disabled` | ### Common parameters diff --git a/bitnami/prestashop/templates/deployment.yaml b/bitnami/prestashop/templates/deployment.yaml index 092b273e7a..30bccd277f 100644 --- a/bitnami/prestashop/templates/deployment.yaml +++ b/bitnami/prestashop/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: {{- include "prestashop.imagePullSecrets" . | nindent 6 }} serviceAccountName: {{ include "prestashop.serviceAccountName" . }} {{- if .Values.podSecurityContext.enabled }} - securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.podSecurityContext "context" $) | nindent 8 }} {{- end }} {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} @@ -149,7 +149,7 @@ spec: args: {{- include "common.tplvalues.render" (dict "value" .Values.args "context" $) | nindent 12 }} {{- end }} {{- if .Values.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }} {{- end }} env: - name: BITNAMI_DEBUG diff --git a/bitnami/prestashop/values.yaml b/bitnami/prestashop/values.yaml index 821f625b16..ca2ad49ee9 100644 --- a/bitnami/prestashop/values.yaml +++ b/bitnami/prestashop/values.yaml @@ -18,6 +18,15 @@ global: ## imagePullSecrets: [] storageClass: "" + ## Compatibility adaptations for Kubernetes platforms + ## + compatibility: + ## Compatibility adaptations for Openshift + ## + openshift: + ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) + ## + adaptSecurityContext: disabled ## @section Common parameters ## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)