Skip to content

Commit

Permalink
docs: list tested Kubernetes versions (argoproj#12276)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

remove crud

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

remove crud

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

so-called readability

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

workflow

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

stash

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

git yay

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

stash

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

pop at the right moment

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

add

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

changes

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

changes

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

changes

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev committed Jun 22, 2023
1 parent e48496c commit 338cdcf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/init-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
make manifests-local VERSION=${{ inputs.TARGET_VERSION }}
git diff
- name: Generate version compatibility table
run: |
git stash
bash hack/update-supported-versions.sh
git add -u .
git stash pop
- name: Create pull request
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
with:
Expand Down
8 changes: 7 additions & 1 deletion docs/operator-manual/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,10 @@ For example if the latest minor version of ArgoCD are 2.4.3 and 2.3.5 while sup
* Argo CD 2.4.3 on Kubernetes 1.22
* Argo CD 2.3.5 on Kubernetes 1.24
* Argo CD 2.3.5 on Kubernetes 1.23
* Argo CD 2.3.5 on Kubernetes 1.22
* Argo CD 2.3.5 on Kubernetes 1.22
## Tested versions
The following table shows the versions of Kubernetes that are tested with each version of Argo CD.
{!docs/operator-manual/tested-kubernetes-versions.md!}
6 changes: 6 additions & 0 deletions docs/operator-manual/tested-kubernetes-versions.md
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 |

23 changes: 23 additions & 0 deletions hack/update-supported-versions.sh
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

0 comments on commit 338cdcf

Please sign in to comment.