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>

docs: list tested Kubernetes versions (argoproj#12276)

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>

fix oops

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev committed Jun 22, 2023
1 parent 2cfecf9 commit dd8fedc
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
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@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
Expand Down
6 changes: 6 additions & 0 deletions docs/operator-manual/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,9 @@ For example if the latest minor version of ArgoCD are 2.4.3 and 2.3.5 while sup
* 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

## 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 dd8fedc

Please sign in to comment.