diff --git a/bitnami/odoo/Chart.yaml b/bitnami/odoo/Chart.yaml index 9a1e41a3f..20d08cb66 100644 --- a/bitnami/odoo/Chart.yaml +++ b/bitnami/odoo/Chart.yaml @@ -29,4 +29,4 @@ name: odoo sources: - https://github.com/bitnami/containers/tree/main/bitnami/odoo - https://www.odoo.com/ -version: 23.0.0 +version: 23.0.1 diff --git a/bitnami/odoo/templates/_helpers.tpl b/bitnami/odoo/templates/_helpers.tpl index fe288cc68..620af0b20 100644 --- a/bitnami/odoo/templates/_helpers.tpl +++ b/bitnami/odoo/templates/_helpers.tpl @@ -93,7 +93,7 @@ Return the PostgreSQL Secret Name {{- default (include "odoo.postgresql.fullname" .) (tpl .Values.postgresql.auth.existingSecret $) -}} {{- end -}} {{- else -}} - {{- default (printf "%s-externaldb" .Release.Name) (tpl .Values.externalDatabase.existingSecret $) -}} + {{- default (printf "%s-externaldb" .Release.Name | trunc 63 | trimSuffix "-") (tpl .Values.externalDatabase.existingSecret $) -}} {{- end -}} {{- end -}} diff --git a/bitnami/odoo/templates/deployment.yaml b/bitnami/odoo/templates/deployment.yaml index b48aed17f..af491850b 100644 --- a/bitnami/odoo/templates/deployment.yaml +++ b/bitnami/odoo/templates/deployment.yaml @@ -259,7 +259,7 @@ spec: {{- if .Values.customPostInitScripts }} - name: custom-postinit configMap: - name: {{ printf "%s-postinit" (include "common.names.fullname" .) }} + name: {{ printf "%s-postinit" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} defaultMode: 0755 {{- end }} {{- if .Values.extraVolumes }} diff --git a/bitnami/odoo/templates/externaldb-secrets.yaml b/bitnami/odoo/templates/externaldb-secrets.yaml index 367a6c75d..bf136a746 100644 --- a/bitnami/odoo/templates/externaldb-secrets.yaml +++ b/bitnami/odoo/templates/externaldb-secrets.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Secret metadata: - name: {{ printf "%s-externaldb" (include "common.names.fullname" .) }} + name: {{ printf "%s-externaldb" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/odoo/templates/ingress.yaml b/bitnami/odoo/templates/ingress.yaml index 4e76d7b20..f4430b192 100644 --- a/bitnami/odoo/templates/ingress.yaml +++ b/bitnami/odoo/templates/ingress.yaml @@ -51,7 +51,7 @@ spec: {{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }} - hosts: - {{ .Values.ingress.hostname | quote }} - secretName: {{ printf "%s-tls" .Values.ingress.hostname }} + secretName: {{ printf "%s-tls" .Values.ingress.hostname | trunc 63 | trimSuffix "-" }} {{- end }} {{- if .Values.ingress.extraTls }} {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }} diff --git a/bitnami/odoo/templates/networkpolicy-backend-ingress.yaml b/bitnami/odoo/templates/networkpolicy-backend-ingress.yaml index 02bd632f7..fc801f5d9 100644 --- a/bitnami/odoo/templates/networkpolicy-backend-ingress.yaml +++ b/bitnami/odoo/templates/networkpolicy-backend-ingress.yaml @@ -2,7 +2,7 @@ apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: - name: {{ printf "%s-backend" (include "common.names.fullname" .) }} + name: {{ printf "%s-backend" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/odoo/templates/networkpolicy-egress.yaml b/bitnami/odoo/templates/networkpolicy-egress.yaml index d908e9b88..477c38367 100644 --- a/bitnami/odoo/templates/networkpolicy-egress.yaml +++ b/bitnami/odoo/templates/networkpolicy-egress.yaml @@ -2,7 +2,7 @@ apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: - name: {{ printf "%s-egress" (include "common.names.fullname" .) }} + name: {{ printf "%s-egress" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/odoo/templates/networkpolicy-ingress.yaml b/bitnami/odoo/templates/networkpolicy-ingress.yaml index c937f014c..b29344ade 100644 --- a/bitnami/odoo/templates/networkpolicy-ingress.yaml +++ b/bitnami/odoo/templates/networkpolicy-ingress.yaml @@ -2,7 +2,7 @@ apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: - name: {{ printf "%s-ingress" (include "common.names.fullname" .) }} + name: {{ printf "%s-ingress" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/odoo/templates/tls-secrets.yaml b/bitnami/odoo/templates/tls-secrets.yaml index f119315d7..7824f5734 100644 --- a/bitnami/odoo/templates/tls-secrets.yaml +++ b/bitnami/odoo/templates/tls-secrets.yaml @@ -26,7 +26,7 @@ data: apiVersion: v1 kind: Secret metadata: - name: {{ printf "%s-tls" .Values.ingress.hostname }} + name: {{ printf "%s-tls" .Values.ingress.hostname | trunc 63 | trimSuffix "-" }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/odoo/values.yaml b/bitnami/odoo/values.yaml index 0994ee7f1..1ebc49d35 100644 --- a/bitnami/odoo/values.yaml +++ b/bitnami/odoo/values.yaml @@ -473,7 +473,7 @@ ingress: ## annotations: {} ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter - ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}` + ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname | trunc 63 | trimSuffix "-" }}` ## You can: ## - Use the `ingress.secrets` parameter to create this TLS secret ## - Rely on cert-manager to create it by setting the corresponding annotations