You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "stephen-bracken (via GitHub)" <gi...@apache.org> on 2026/02/23 14:31:42 UTC

[I] Values.ingress.*.hosts does not template TLS hosts correctly [airflow]

stephen-bracken opened a new issue, #62358:
URL: https://github.com/apache/airflow/issues/62358

   ### Official Helm Chart version
   
   1.19.0 (latest released)
   
   ### Apache Airflow version
   
   3.1.7
   
   ### Kubernetes Version
   
   1.33.5
   
   ### Helm Chart configuration
   
   ```
   mysettings:
     hostname: myairflow.example.com
   ingress:
           apiServer:
             enabled: true
             hosts: 
               - "{{ tpl .Values.mysettings.hostname . }}"
             tls:
               enabled: true
   ```
   
   ### Docker Image customizations
   
   _No response_
   
   ### What happened
   
   templating the `hosts` field using `tpl` works for non TLS hosts, but for the `spec.tls.[*].hosts` section, the [field](https://github.com/apache/airflow/blob/main/chart/templates/api-server/api-server-ingress.yaml#L58) is escaped using `{{ .name | quote }}` in the ingress template. This results in the following:
   
   ```
   apiVersion: networking.k8s.io/v1
   kind: Ingress
   metadata:
     annotations: {}
     labels:
       app: archops-airflow
       chart: airflow-1.19.0
       component: airflow-ingress
       heritage: Helm
       release: archops-airflow
       tier: airflow
     name: airflow-ingress
   spec:
     rules:
     - host: myairflow.example.com
       http:
         paths:
         - backend:
             service:
               name: airflow-api-server
               port:
                 name: api-server
           path: /
           pathType: ImplementationSpecific
     tls:
     - hosts:
       - '{{ tpl .Values.mysettings.hostname . }}'
       secretName: null
   ```
   
   ### What you think should happen instead
   
   The `spec.tls.[*].hosts` fields need to be templated in the same way as the `spec.rules.[*].hosts` field.
   
   ### How to reproduce
   
   see Helm chart configuration
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Values.ingress.*.hosts does not template TLS hosts correctly [airflow]

Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl closed issue #62358: Values.ingress.*.hosts does not template TLS hosts correctly
URL: https://github.com/apache/airflow/issues/62358


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Values.ingress.*.hosts does not template TLS hosts correctly [airflow]

Posted by "stephen-bracken (via GitHub)" <gi...@apache.org>.
stephen-bracken commented on issue #62358:
URL: https://github.com/apache/airflow/issues/62358#issuecomment-3959365350

   @haseebmalik18 thanks, go ahead


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Values.ingress.*.hosts does not template TLS hosts correctly [airflow]

Posted by "haseebmalik18 (via GitHub)" <gi...@apache.org>.
haseebmalik18 commented on issue #62358:
URL: https://github.com/apache/airflow/issues/62358#issuecomment-3956266909

   Reproduced this, same problem exists across all 5 ingress templates. I can raise a PR fix for this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org