forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: list tested Kubernetes versions (argoproj#12276) (argoproj#14180)
remove crud remove crud so-called readability workflow docs: list tested Kubernetes versions (argoproj#12276) remove crud remove crud so-called readability workflow stash git yay stash pop at the right moment add changes changes changes fix oops Signed-off-by: Michael Crenshaw <[email protected]>
- Loading branch information
1 parent
b1a8473
commit 97fbce5
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
| Argo CD version | Kubernetes versions | | ||
|-----------------|---------------------| | ||
| 2.7 | v1.26, v1.25, v1.24, v1.23 | | ||
| 2.6 | v1.24, v1.23, v1.22 | | ||
| 2.5 | v1.24, v1.23, v1.22 | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
out="| Argo CD version | Kubernetes versions |\n" | ||
out+="|-----------------|---------------------|\n" | ||
|
||
argocd_minor_version=$(git rev-parse --abbrev-ref HEAD | sed 's/release-//') | ||
argocd_major_version_num=$(echo "$argocd_minor_version" | sed -E 's/\.[0-9]+//') | ||
argocd_minor_version_num=$(echo "$argocd_minor_version" | sed -E 's/[0-9]+\.//') | ||
|
||
for n in 0 1 2; do | ||
minor_version_num=$((argocd_minor_version_num - n)) | ||
minor_version="${argocd_major_version_num}.${minor_version_num}" | ||
git checkout "release-$minor_version" > /dev/null || exit 1 | ||
line=$(yq '.jobs["test-e2e"].strategy.matrix["k3s-version"][]' .github/workflows/ci-build.yaml | \ | ||
jq --arg minor_version "$minor_version" --raw-input --slurp --raw-output \ | ||
'split("\n")[:-1] | map(sub("\\.[0-9]+$"; "")) | join(", ") | "| \($minor_version) | \(.) |"') | ||
out+="$line\n" | ||
done | ||
|
||
git checkout "release-$argocd_minor_version" | ||
|
||
|
||
printf "$out" > docs/operator-manual/tested-kubernetes-versions.md |