-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1284 from DelusionalOptimist/helm-gke-values
chore(deployments): fix volume mounts for GKE and add validation tests
- Loading branch information
Showing
5 changed files
with
60 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
- name: Commit updated chart to main | ||
run: | | ||
STABLE_VERSION=`cat STABLE-RELEASE` | ||
git add . | ||
git add deployments/helm/Chart.yaml | ||
git config user.name $GITHUB_ACTOR | ||
git config user.email [email protected] | ||
git commit -m "[Automated] Update Helm Chart To $STABLE_VERSION" --signoff | ||
|
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,38 @@ | ||
name: ci-test-helm-charts | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "deployments/helm/**" | ||
- ".github/workflows/ci-test-helm-charts.yml" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "deployments/helm/**" | ||
- ".github/workflows/ci-test-helm-charts.yml" | ||
|
||
jobs: | ||
lint: | ||
name: Helm Chart Tests / ubuntu 20.04 | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "v1.20" | ||
|
||
- uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: helm lint | ||
run: | | ||
helm lint ./deployments/helm | ||
- name: Validate helm environment template values | ||
run: | | ||
./.github/workflows/helm-validate-values.sh |
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,19 @@ | ||
#!/bin/bash | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2022 Authors of KubeArmor | ||
|
||
envs=("docker" "crio" "k3s" "microk8s" "minikube" "GKE" "BottleRocket" "EKS" "generic") | ||
|
||
echo "Testing environment specific helm templates..." | ||
for env in ${envs[@]}; do | ||
echo "Generating templates for $env..." | ||
helm template kubearmor ./deployments/helm --set environment.name=$env > $env.yml | ||
if [[ "$?" -eq 1 ]] | ||
then | ||
echo "Failed to generate template for $env!" | ||
exit 1 | ||
fi | ||
rm -rf $env.yml | ||
done | ||
|
||
echo "Validated environment specific templates!" |
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