Skip to content

Commit

Permalink
ci: include AKS preview versions in dependency check
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Feb 21, 2024
1 parent e2f6778 commit a48912d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/check_dependencies/aks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ def get_supported_releases(html_calendar):
pd_data["AKS GA date"] = pd.to_datetime(
pd_data["AKS GA"], format="%b %Y", errors="coerce"
).fillna(datetime.now() + timedelta(days=50 * 365))

pd_data["AKS Preview date"] = pd.to_datetime(
pd_data["AKS preview"], format="%b %Y", errors="coerce"
).fillna(datetime.now() + timedelta(days=50 * 365))
today = datetime.now()
supported_releases = []
for index, row in pd_data.iterrows():
if row["AKS GA date"] < today:
if row["AKS Preview date"] < today:
dependent_version = row["Platform support"].replace("GA", "").replace("Until", "").strip()
if dependent_version in pd_data.index:
dependent_version_GA_date = pd_data.loc[dependent_version][
Expand Down

0 comments on commit a48912d

Please sign in to comment.