You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Script to scrape the EKS Kubernetes versions from the AWS documentation// and produce a JSON file that Renovate can parse.// Usage: node eks-k8s-version-scraper.js > eks-k8s-versions.jsonconstaxios=require('axios');constcheerio=require('cheerio');constfs=require('fs');consturl='https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions-standard.html';axios.get(url).then(response=>{consthtml=response.data;const$=cheerio.load(html);constreleases=[];$('h2').each((i,elem)=>{constid=$(elem).attr('id');if(id&&id.startsWith('kubernetes-')){constversion=id.split('-')[1];constchangelogUrl=`https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-${version}.md`;releases.push({ version, changelogUrl });}});constresult={
releases,changelogUrl: "https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions-standard.html",homepage: "https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions-standard.html"};console.log(JSON.stringify(result,null,2));}).catch(error=>{console.error('Error fetching the HTML document:',error);});