[bitnami/odoo] fix: 🔒 Move service-account token auto-mount to pod declaration (#22445)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-01-22 14:19:31 +01:00
committed by GitHub
parent 10dd0a5d05
commit 86b9db9f53
4 changed files with 6 additions and 1 deletions

View File

@@ -34,4 +34,4 @@ maintainers:
name: odoo
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/odoo
version: 25.2.1
version: 25.3.0

View File

@@ -153,6 +153,7 @@ The command removes all the Kubernetes components associated with the chart and
| `customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` |
| `customStartupProbe` | Custom startupProbe that overrides the default one | `{}` |
| `lifecycleHooks` | LifecycleHooks to set additional configuration at startup | `{}` |
| `automountServiceAccountToken` | Mount Service Account token in pod | `false` |
| `hostAliases` | Odoo pod host aliases | `[]` |
| `podLabels` | Extra labels for Odoo pods | `{}` |
| `podAnnotations` | Annotations for Odoo pods | `{}` |

View File

@@ -31,6 +31,7 @@ spec:
spec:
{{- include "odoo.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ template "odoo.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}

View File

@@ -284,6 +284,9 @@ customStartupProbe: {}
## @param lifecycleHooks LifecycleHooks to set additional configuration at startup
##
lifecycleHooks: {}
## @param automountServiceAccountToken Mount Service Account token in pod
##
automountServiceAccountToken: false
## @param hostAliases Odoo pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##