File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ export async function getLatestKubernetesIsoParams (arch) {
3939 try {
4040 const html = await fetch ( BASE_KUBERNETES_ISO_URL , { cache : 'no-store' } ) . then ( r => r . text ( ) )
4141
42- // Grab all .iso hrefs from the index page
4342 const hrefs = [ ...html . matchAll ( / h r e f = " ( [ ^ " ] + \. i s o ) " / gi) ] . map ( m => m [ 1 ] )
4443
4544 // Prefer files that explicitly include the arch (e.g. ...-x86_64.iso)
@@ -50,7 +49,6 @@ export async function getLatestKubernetesIsoParams (arch) {
5049 isoHrefs = hrefs . filter ( h => / s e t u p - \d + \. \d + \. \d + \. i s o $ / i. test ( h ) )
5150 }
5251
53- // Map to { name, semanticversion, url, arch }
5452 const entries = isoHrefs . map ( h => {
5553 const m = h . match ( / s e t u p - (?: v ) ? ( \d + \. \d + \. \d + ) (?: - c a l i c o ) ? (?: - ( x 8 6 _ 6 4 | a r m 6 4 ) ) ? / i)
5654 return m
@@ -67,7 +65,6 @@ export async function getLatestKubernetesIsoParams (arch) {
6765
6866 if ( entries . length === 0 ) throw new Error ( 'No matching ISOs found' )
6967
70- // Semver-style sort descending
7168 entries . sort ( ( a , b ) => {
7269 const pa = a . semanticversion . split ( '.' ) . map ( Number )
7370 const pb = b . semanticversion . split ( '.' ) . map ( Number )
You can’t perform that action at this time.
0 commit comments