-
Notifications
You must be signed in to change notification settings - Fork 25
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
b594ad4
commit 3b82eb9
Showing
1 changed file
with
27 additions
and
27 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 |
---|---|---|
|
@@ -122,31 +122,31 @@ jobs: | |
# helm dependency update charts/[CHART] | ||
# helm upgrade [NAME] charts/[CHART] | ||
|
||
kyverno: | ||
runs-on: ubuntu-latest | ||
needs: [list-changed] | ||
if: ${{ github.event_name != 'pull_request' || needs.list-changed.outputs.changed == 'true' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: ${{ github.event.inputs.helm_version || 'latest' }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Download chart dependencies (recursive) | ||
shell: bash | ||
run: hack/helm-dependencies.bash | ||
|
||
- name: Create Helm template | ||
run: | | ||
helm template chart-template charts/umbrella > charts/umbrella-template.yaml | ||
- name: Install Kyverno CLI | ||
uses: kyverno/[email protected] | ||
|
||
- name: Test new resources against existing policies | ||
run: kyverno apply .github/kyverno-policies/ -r charts/umbrella-template.yaml | ||
#kyverno: | ||
# runs-on: ubuntu-latest | ||
# needs: [list-changed] | ||
# if: ${{ github.event_name != 'pull_request' || needs.list-changed.outputs.changed == 'true' }} | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Install Helm | ||
# uses: azure/setup-helm@v3 | ||
# with: | ||
# version: ${{ github.event.inputs.helm_version || 'latest' }} | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# | ||
# - name: Download chart dependencies (recursive) | ||
# shell: bash | ||
# run: hack/helm-dependencies.bash | ||
# | ||
# - name: Create Helm template | ||
# run: | | ||
# helm template chart-template charts/umbrella > charts/umbrella-template.yaml | ||
# | ||
# - name: Install Kyverno CLI | ||
# uses: kyverno/[email protected] | ||
# | ||
# - name: Test new resources against existing policies | ||
# run: kyverno apply .github/kyverno-policies/ -r charts/umbrella-template.yaml | ||
|