chore(deps): update helm release kured to v5.6.0 #1372
Workflow file for this run
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
name: Helm Chart Changes | |
on: | |
merge_group: | |
pull_request: | |
paths: | |
- kubernetes-services/** | |
- test/** | |
- go.mod | |
- renovate.json | |
- .github/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-helm-chart: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: yokawasa/[email protected] | |
with: | |
kubectl: '1.29.0' | |
helm: '3.15.1' | |
- uses: mikefarah/[email protected] | |
- uses: tj-actions/[email protected] | |
id: changed-argo-apps | |
with: | |
files_yaml: | | |
apps: | |
- kubernetes-services/templates/** | |
- '!kubernetes-services/templates/istio**.yaml' | |
- '!kubernetes-services/templates/snapshot-controller.yaml' | |
- '!kubernetes-services/templates/longhorn.yaml' | |
istio: | |
- kubernetes-services/templates/istio** | |
storage: | |
- kubernetes-services/templates/snapshot-controller.yaml | |
- kubernetes-services/templates/longhorn.yaml | |
k3s_upgrade: | |
- kubernetes-services/additions/k3s-upgrade-controller/kustomization.yaml | |
cloudflare: | |
- 'kubernetes-services/additions/cloudflare-tunnel/*' | |
go_test: | |
- test/**_test.go | |
go_helper: | |
- test/pkg/**/**.go | |
go_dependencies: | |
- go.mod | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
cache-dependency-path: go.sum | |
- name: Test Common Helm Chart | |
if: steps.changed-argo-apps.outputs.apps_any_changed == 'true' | |
env: | |
HELM_CHARTS_CHANGED_FILES: ${{ steps.changed-argo-apps.outputs.apps_all_changed_files }} | |
run: | | |
echo "List all helm charts that have changed" | |
for chart in ${HELM_CHARTS_CHANGED_FILES}; do | |
echo "${chart} was changed" | |
test="test/$(basename ${chart} | sed -E 's/-([a-z])/_\1/g' | sed 's/.yaml/_test.go/')" | |
if [ ! -f ${test} ]; then | |
echo "Test coverage ${test} not found. bye!" | |
exit 2 | |
fi | |
go test -v ./test -run $(basename ${chart} .yaml | sed 's/.*/Test\u&/' | sed -E 's/-([a-z])/\U\1/g') | |
done | |
- name: Test Istio Helm Chart | |
if: steps.changed-argo-apps.outputs.istio_any_changed == 'true' | |
env: | |
HELM_CHARTS_CHANGED_FILES: ${{ steps.changed-argo-apps.outputs.istio_all_changed_files }} | |
run: | | |
go test -v ./test -run TestIstio | |
- name: Test Longhorn and Snapshot Controller Charts | |
if: steps.changed-argo-apps.outputs.storage_any_changed == 'true' | |
run: | | |
go test -v ./test -run TestStorage | |
- name: Test K3S System Upgrade Controller | |
if: steps.changed-argo-apps.outputs.k3s_upgrade_any_changed == 'true' | |
run: | | |
go test -v ./test -run TestK3sSystemUpgradeController | |
- name: Test Cloudflare Tunnel | |
if: steps.changed-argo-apps.outputs.cloudflare_any_changed == 'true' | |
run: | | |
go test -v ./test -run TestCloudflareTunnel | |
- name: Golang Tests | |
if: steps.changed-argo-apps.outputs.go_test_any_changed == 'true' | |
env: | |
GO_TEST_CHANGED_FILES: ${{ steps.changed-argo-apps.outputs.go_test_all_changed_files }} | |
run: | | |
for test in ${GO_TEST_CHANGED_FILES}; do | |
echo "${test} was changed" | |
go test -v ./test -run $(basename ${test} _test.go | sed 's/.*/Test\u&/' | sed -E 's/_([a-z])/\U\1/g') | |
done | |
- name: Golang Test Helper | |
if: ${{ steps.changed-argo-apps.outputs.go_helper_any_changed == 'true' || steps.changed-argo-apps.outputs.go_dependencies_any_changed == 'true' }} | |
run: | | |
go test -v ./test | |
- name: Upload KinD logs | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: kind | |
path: 'test/kind-logs' | |
retention-days: 3 | |
create-resource-diff: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: pull-request | |
- uses: tj-actions/[email protected] | |
id: changed-argo-apps | |
with: | |
files_yaml: | | |
apps: | |
- kubernetes-services/** | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: main | |
- name: Generate Diff | |
if: steps.changed-argo-apps.outputs.apps_any_changed == 'true' | |
run: | | |
docker run \ | |
--network=host \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v $(pwd)/main:/base-branch \ | |
-v $(pwd)/pull-request:/target-branch \ | |
-v $(pwd)/output:/output \ | |
-e TARGET_BRANCH=${{ github.head_ref }} \ | |
-e REPO=${{ github.repository }} \ | |
dagandersen/argocd-diff-preview:v0.0.25 | |
- name: Post diff as comment | |
if: steps.changed-argo-apps.outputs.apps_any_changed == 'true' | |
run: | | |
gh pr comment ${{ github.event.number }} --repo ${{ github.repository }} --body-file output/diff.md --edit-last || \ | |
gh pr comment ${{ github.event.number }} --repo ${{ github.repository }} --body-file output/diff.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |