This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 1aac81157bd fix: Trim non-alphanumeric characters from the executor 
label (#53534)
1aac81157bd is described below

commit 1aac81157bd8f2574c14334bfbce1b6afa0822db
Author: Lipu Fei <[email protected]>
AuthorDate: Sat Jul 19 20:34:49 2025 +0200

    fix: Trim non-alphanumeric characters from the executor label (#53534)
    
    Kubernetes label doesn't allow non-alphanumeric characters at the end of
    the values. With hybrid and custom executors, it's possible to have a
    long executor value. The last character can be special after the
    63-character trimming.
---
 chart/templates/scheduler/scheduler-deployment.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chart/templates/scheduler/scheduler-deployment.yaml 
b/chart/templates/scheduler/scheduler-deployment.yaml
index 05a1b7da979..9f17472f607 100644
--- a/chart/templates/scheduler/scheduler-deployment.yaml
+++ b/chart/templates/scheduler/scheduler-deployment.yaml
@@ -57,7 +57,7 @@ metadata:
     release: {{ .Release.Name }}
     chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
     heritage: {{ .Release.Service }}
-    executor: {{ .Values.executor | replace "," "-" | trunc 63 | trimSuffix 
"-" | quote }}
+    executor: {{ .Values.executor | replace "," "-" | trunc 63 | trimSuffix 
"-" | trimSuffix ":" | trimSuffix "_" | trimSuffix "." | quote }}
     {{- with .Values.labels }}
       {{- toYaml . | nindent 4 }}
     {{- end }}

Reply via email to