Skip to content

Commit

Permalink
Update generate-rp-matrix.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill authored Nov 25, 2024
1 parent d0fbd4c commit b6c299e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async function fetchRedpandaChartDetails(chartVersion) {

// Get the Kubernetes version defined in the chart metadata
if (response.data.data.kubeVersion) {
const kubeVersionRegex = /^\^?([0-9]+\.[0-9]+(?:\.[0-9]+)?(?:-[0-9]+)?)$/;
const kubeVersionRegex = /([0-9]+\.[0-9]+(?:\.[0-9]+)?(?:-[0-9]+)?)/;
let kubeVersionMatch = response.data.data.kubeVersion.match(kubeVersionRegex);
kubernetesVersion = kubeVersionMatch ? kubeVersionMatch[1] : '{supported-kubernetes-version}';
}
Expand Down

0 comments on commit b6c299e

Please sign in to comment.