forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 4
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)
Signed-off-by: Michael Crenshaw <[email protected]> remove crud Signed-off-by: Michael Crenshaw <[email protected]> remove crud Signed-off-by: Michael Crenshaw <[email protected]> so-called readability Signed-off-by: Michael Crenshaw <[email protected]> workflow Signed-off-by: Michael Crenshaw <[email protected]> stash Signed-off-by: Michael Crenshaw <[email protected]> git yay Signed-off-by: Michael Crenshaw <[email protected]> stash Signed-off-by: Michael Crenshaw <[email protected]> pop at the right moment Signed-off-by: Michael Crenshaw <[email protected]> add Signed-off-by: Michael Crenshaw <[email protected]> changes Signed-off-by: Michael Crenshaw <[email protected]> changes Signed-off-by: Michael Crenshaw <[email protected]> changes Signed-off-by: Michael Crenshaw <[email protected]>
- Loading branch information
1 parent
e48496c
commit 338cdcf
Showing
4 changed files
with
43 additions
and
1 deletion.
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 |