From 8ed6d63dc42a29c1e832d5d20115b97c7dfa7f92 Mon Sep 17 00:00:00 2001 From: ferruzzi Date: Fri, 13 Feb 2026 15:15:16 -0800 Subject: [PATCH] Sync the two references to api_version using a shared constant --- providers/amazon/src/airflow/providers/amazon/aws/hooks/eks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/amazon/src/airflow/providers/amazon/aws/hooks/eks.py b/providers/amazon/src/airflow/providers/amazon/aws/hooks/eks.py index 25db498ebec46..08f78540e6530 100644 --- a/providers/amazon/src/airflow/providers/amazon/aws/hooks/eks.py +++ b/providers/amazon/src/airflow/providers/amazon/aws/hooks/eks.py @@ -105,7 +105,7 @@ class NodegroupStates(Enum): token=${{last_line##*, token: }} # text after ", token: " json_string=$(printf '{{"kind": "ExecCredential","apiVersion": \ - "client.authentication.k8s.io/v1alpha1","spec": {{}},"status": \ + "{authentication_api_version}","spec": {{}},"status": \ {{"expirationTimestamp": "%s","token": "%s"}}}}' "$timestamp" "$token") echo $json_string """ @@ -662,6 +662,7 @@ def generate_config_file( python_executable=python_executable, eks_cluster_name=eks_cluster_name, args=args, + authentication_api_version=AUTHENTICATION_API_VERSION, ), ], "interactiveMode": "Never",