Skip to content

Commit

Permalink
fix: skip kyverno job for now
Browse files Browse the repository at this point in the history
  • Loading branch information
almadigabor committed Jan 25, 2024
1 parent b594ad4 commit 3b82eb9
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/helm-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b82eb9

Please sign in to comment.