-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a342e61
commit 49b5912
Showing
1 changed file
with
5 additions
and
12 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 |
---|---|---|
|
@@ -44,10 +44,6 @@ on: | |
default: 'latest' | ||
required: false | ||
type: string | ||
|
||
env: | ||
KYVERNO_VERSION: v1.11.3 | ||
PYTHON_VERSION: '3.10' | ||
|
||
jobs: | ||
list-changed: | ||
|
@@ -68,7 +64,7 @@ jobs: | |
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
python-version: '3.10' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
|
@@ -100,7 +96,7 @@ jobs: | |
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
python-version: '3.10' | ||
check-latest: true | ||
|
||
- name: Kubernetes KinD Cluster | ||
|
@@ -157,12 +153,9 @@ jobs: | |
run: | | ||
helm template chart-template charts/umbrella > charts/umbrella-template.yaml | ||
- name: Download Kyverno CLI | ||
run: | | ||
curl -sLO https://github.com/kyverno/kyverno/releases/download/${{ env.KYVERNO_VERSION }}/kyverno-cli_${{ env.KYVERNO_VERSION }}_linux_x86_64.tar.gz | ||
tar -xf kyverno-cli_${{ env.KYVERNO_VERSION }}_linux_x86_64.tar.gz | ||
${GITHUB_WORKSPACE}/kyverno version | ||
- name: Install Kyverno CLI | ||
uses: kyverno/[email protected] | ||
|
||
- name: Test new resources against existing policies | ||
run: ${GITHUB_WORKSPACE}/kyverno apply .github/kyverno-policies/require-run-as-nonroot.yaml -r charts/umbrella-template.yaml | ||
run: kyverno apply .github/kyverno-policies/require-run-as-nonroot.yaml -r charts/umbrella-template.yaml | ||
|