Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version script to detect 2 digit minor versions #1742

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/export-channel-versions
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
releases_url="https://api.github.com/repos/linkerd/linkerd2/releases"

# Match examples: `"tag_name": "stable-2.7.0",`
stable_tag_regex="\"tag_name\": \"stable-[0-9]+\.[0-9]+\.[0-9]\""
edge_tag_regex="\"tag_name\": \"edge-[0-9]+\.[0-9]+\.[0-9]\""
stable_tag_regex="\"tag_name\": \"stable-[0-9]+\.[0-9]+\.[0-9]+\""
edge_tag_regex="\"tag_name\": \"edge-[0-9]+\.[0-9]+\.[0-9]+\""

export L5D2_STABLE_VERSION=$(curl -s $releases_url | awk -v pattern="$stable_tag_regex" '$0 ~ pattern {gsub(/"/, "", $2); gsub(/,$/,""); print $2}' | sort -V | tail -n 1)
export L5D2_EDGE_VERSION=$(curl -s $releases_url | awk -v pattern="$edge_tag_regex" '$0 ~ pattern {gsub(/"/, "", $2); gsub(/,$/,""); print $2; exit}')
22 changes: 11 additions & 11 deletions linkerd.io/content/releases/release_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.8.5"
}
},
"stable-2.14.8": {
"stable-2.14.9": {
"linkerd-control-plane": {
"chart_name": "linkerd-control-plane",
"chart_version": "1.16.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.9"
"chart_version": "1.16.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.10"
},
"linkerd-crds": {
"chart_name": "linkerd-crds",
Expand All @@ -44,23 +44,23 @@
},
"linkerd-jaeger": {
"chart_name": "linkerd-jaeger",
"chart_version": "30.12.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.9"
"chart_version": "30.12.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.10"
},
"linkerd-multicluster": {
"chart_name": "linkerd-multicluster",
"chart_version": "30.11.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.9"
"chart_version": "30.11.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.10"
},
"linkerd-viz": {
"chart_name": "linkerd-viz",
"chart_version": "30.12.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.9"
"chart_version": "30.12.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.10"
},
"linkerd2-cni": {
"chart_name": "linkerd2-cni",
"chart_version": "30.12.1",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.1"
"chart_version": "30.12.2",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.2"
}
},
"stable-2.12.6": {
Expand Down
22 changes: 11 additions & 11 deletions linkerd.io/content/releases/release_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,29 +90,29 @@ stable-2.13.7:
chart_name: linkerd2-cni
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.8.5
chart_version: 30.8.5
stable-2.14.8:
stable-2.14.9:
linkerd-control-plane:
chart_name: linkerd-control-plane
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.9
chart_version: 1.16.9
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.10
chart_version: 1.16.10
linkerd-crds:
chart_name: linkerd-crds
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-crds/1.8.0
chart_version: 1.8.0
linkerd-jaeger:
chart_name: linkerd-jaeger
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.9
chart_version: 30.12.9
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.10
chart_version: 30.12.10
linkerd-multicluster:
chart_name: linkerd-multicluster
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.9
chart_version: 30.11.9
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.10
chart_version: 30.11.10
linkerd-viz:
chart_name: linkerd-viz
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.9
chart_version: 30.12.9
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.10
chart_version: 30.12.10
linkerd2-cni:
chart_name: linkerd2-cni
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.1
chart_version: 30.12.1
chart_url: https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.2
chart_version: 30.12.2

22 changes: 11 additions & 11 deletions linkerd.io/data/releases/release_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.8.5"
}
},
"stable-2.14.8": {
"stable-2.14.9": {
"linkerd-control-plane": {
"chart_name": "linkerd-control-plane",
"chart_version": "1.16.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.9"
"chart_version": "1.16.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-control-plane/1.16.10"
},
"linkerd-crds": {
"chart_name": "linkerd-crds",
Expand All @@ -44,23 +44,23 @@
},
"linkerd-jaeger": {
"chart_name": "linkerd-jaeger",
"chart_version": "30.12.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.9"
"chart_version": "30.12.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-jaeger/30.12.10"
},
"linkerd-multicluster": {
"chart_name": "linkerd-multicluster",
"chart_version": "30.11.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.9"
"chart_version": "30.11.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-multicluster/30.11.10"
},
"linkerd-viz": {
"chart_name": "linkerd-viz",
"chart_version": "30.12.9",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.9"
"chart_version": "30.12.10",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd-viz/30.12.10"
},
"linkerd2-cni": {
"chart_name": "linkerd2-cni",
"chart_version": "30.12.1",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.1"
"chart_version": "30.12.2",
"chart_url": "https://artifacthub.io/packages/helm/linkerd2/linkerd2-cni/30.12.2"
}
},
"stable-2.12.6": {
Expand Down
Loading