@@ -782,7 +782,18 @@ jobs:
782782
783783 # Add Helm repositories
784784 echo "📦 Adding Helm repositories..."
785- helm repo add apache-airflow https://airflow.apache.org/charts
785+
786+ # Try the official Airflow Helm repository
787+ if ! helm repo add apache-airflow https://airflow.apache.org; then
788+ echo "⚠️ Failed to add apache-airflow repo from apache.org, trying alternative..."
789+ # Try the alternative repository URL
790+ helm repo add apache-airflow https://charts.bitnami.com/bitnami || {
791+ echo "⚠️ Failed to add bitnami repo, trying direct installation..."
792+ # Skip repository addition and try direct installation
793+ echo "⏭️ Skipping repository addition, will try direct installation"
794+ }
795+ fi
796+
786797 helm repo update
787798
788799 # Create namespace
@@ -808,18 +819,14 @@ jobs:
808819 else
809820 echo "✅ EBS CSI driver is running"
810821 fi
811- helm upgrade --install airflow apache-airflow/airflow \
812- --version 8.9.0 \
813- -f k8s/airflow/values.yaml \
814- --namespace airflow \
815- --create-namespace \
816- --wait \
817- --timeout 15m \
818- --set postgresql.primary.persistence.storageClass=gp2 \
819- --set logs.persistence.storageClass=gp2 \
820- --set dags.persistence.storageClass=gp2 || {
821- echo "⚠️ Failed with specific version, trying latest version..."
822+ # Try to deploy Airflow with different approaches
823+ echo "🚀 Attempting Airflow deployment..."
824+
825+ # First, try with the apache-airflow repository
826+ if helm repo list | grep -q apache-airflow; then
827+ echo "📦 Using apache-airflow repository..."
822828 helm upgrade --install airflow apache-airflow/airflow \
829+ --version 8.9.0 \
823830 -f k8s/airflow/values.yaml \
824831 --namespace airflow \
825832 --create-namespace \
@@ -828,10 +835,24 @@ jobs:
828835 --set postgresql.primary.persistence.storageClass=gp2 \
829836 --set logs.persistence.storageClass=gp2 \
830837 --set dags.persistence.storageClass=gp2 || {
831- echo "❌ Failed to deploy Airflow with both versions"
832- echo "⚠️ Skipping Airflow deployment and continuing with other components..."
838+ echo "⚠️ Failed with specific version, trying latest version..."
839+ helm upgrade --install airflow apache-airflow/airflow \
840+ -f k8s/airflow/values.yaml \
841+ --namespace airflow \
842+ --create-namespace \
843+ --wait \
844+ --timeout 15m \
845+ --set postgresql.primary.persistence.storageClass=gp2 \
846+ --set logs.persistence.storageClass=gp2 \
847+ --set dags.persistence.storageClass=gp2 || {
848+ echo "❌ Failed to deploy Airflow with apache-airflow repository"
849+ echo "⚠️ Skipping Airflow deployment and continuing with other components..."
850+ }
833851 }
834- }
852+ else
853+ echo "⚠️ No apache-airflow repository available, skipping Airflow deployment"
854+ echo "⚠️ Airflow deployment skipped - repository not available"
855+ fi
835856 echo "✅ Airflow deployment completed"
836857 - name : Monitor Airflow deployment
837858 run : |
0 commit comments