Conversation
add vs for webserver
|
@htech7x git sync relay virtualhost missing we are using that for receiving webhook |
|
added missing gitsync templates for webhook |
|
2 decisions instead of airflow.istio.enabled should we move to istio.enabled making it as astronomer managed |
There was a problem hiding this comment.
Pull request overview
Adds optional Istio ingress support to the Airflow Helm chart by introducing Istio VirtualService resources for UI/API and related endpoints, and conditionally disabling certain Kubernetes Ingress resources when Istio is enabled.
Changes:
- Introduces
airflow.istio.enabledflag invalues.yaml. - Adds Istio
VirtualServicetemplates for webserver (Airflow <3), API server (Airflow >=3), Flower, DAG server, and git-sync-relay webhook. - Prevents creating some Kubernetes
Ingressresources when Istio is enabled (dag-server and git-sync-relay webhook ingress).
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| values.yaml | Adds airflow.istio.enabled configuration toggle. |
| templates/webserver/webserver-virtualservice.yaml | Adds Istio VirtualService for Airflow webserver routing. |
| templates/api-server/api-server-virtualservice.yaml | Adds Istio VirtualService for Airflow API server routing (Airflow >=3). |
| templates/flower/flower-virtualservice.yaml | Adds Istio VirtualService for Flower routing (CeleryExecutor). |
| templates/dag-deploy/dag-server-virtualservice.yaml | Adds Istio VirtualService for DAG server routing. |
| templates/git-sync-relay/git-sync-relay-virtualservice.yaml | Adds Istio VirtualService for git-sync-relay webhook routing. |
| templates/ingress.yaml | Disables dag-server Ingress when Istio is enabled. |
| templates/git-sync-relay/git-sync-relay-ingress.yaml | Disables git-sync-relay webhook Ingress when Istio is enabled. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| {{- end }} | ||
| {{- end }} | ||
| {{- if and .Values.dagDeploy.enabled }} | ||
| {{- if and .Values.dagDeploy.enabled (not .Values.airflow.istio.enabled) }} |
| # istio config section | ||
| istio: | ||
| enabled: false |
| hosts: | ||
| - {{- include "deployments_subdomain" . | indent 1 }} | ||
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} | ||
| http: | ||
| # Webserver routes | ||
| - match: | ||
| - uri: | ||
| prefix: "/{{ .Release.Name }}/airflow" | ||
| route: |
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} |
| {{- if and .Values.airflow.istio.enabled (semverCompare "<3.0.0" .Values.airflow.airflowVersion) }} | ||
| {{- $fullname := include "airflow.fullname" . }} | ||
| apiVersion: networking.istio.io/v1 |
| hosts: | ||
| - {{- include "deployments_subdomain" . | indent 1 }} | ||
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} | ||
| http: | ||
| # API Server routes | ||
| - match: | ||
| - uri: | ||
| prefix: "/{{ .Release.Name }}/airflow" | ||
| route: |
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} |
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} |
| {{- if hasKey .Values.airflow.istio "gateway" }} | ||
| gateways: | ||
| - {{ .Values.airflow.istio.gateway }} | ||
| {{- end }} |
| {{- end }} | ||
| {{- end }} | ||
| {{- if and .Values.dagDeploy.enabled }} | ||
| {{- if and .Values.dagDeploy.enabled (not .Values.airflow.istio.enabled) }} |
| {{- if and | ||
| .Values.gitSyncRelay.enabled | ||
| (eq .Values.gitSyncRelay.repoFetchMode "webhook") | ||
| (not .Values.airflow.istio.enabled) | ||
| }} |
Description
Adding support for Istio ingress
Related Issues
https://linear.app/astronomer/issue/APC-1423/add-optional-istio-ingress-support-to-apc-helm-chart
Testing
Testing was conducted for APC 1.1.5 in unified mode.
Merging