-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add security context values in operator chart (#973)
Signed-off-by: drivebyer <[email protected]>
- Loading branch information
Showing
5 changed files
with
87 additions
and
2 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 |
---|---|---|
|
@@ -9,8 +9,71 @@ on: | |
- master | ||
|
||
jobs: | ||
lint-charts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.5.4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
run: | | ||
ct lint --config ct.yaml | ||
test-charts: | ||
needs: | ||
- lint-charts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kind | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.5.4 | ||
|
||
- name: Install yq | ||
run: | | ||
sudo snap install yq | ||
- name: Install and test Redis Related Helm charts | ||
run: | | ||
kubectl cluster-info --context kind-kind | ||
chart_dirs=("redis-operator") | ||
for dir in "${chart_dirs[@]}" | ||
do | ||
if [[ -f ./charts/$dir/Chart.yaml ]]; then | ||
helm dependency update ./charts/$dir/ | ||
fi | ||
helm install $dir ./charts/$dir/ | ||
helm test $dir | ||
done | ||
echo "Listing installed Helm charts..." | ||
release-charts: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test-charts | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
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
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,7 @@ | ||
--- | ||
remote: origin | ||
target-branch: master | ||
chart-dirs: | ||
- charts | ||
chart-repos: | ||
- ot-helm=https://ot-container-kit.github.io/helm-charts |