-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dry run using Kyverno before actual deploy
- Loading branch information
sqr
authored
Feb 26, 2024
1 parent
6636099
commit a74e5a5
Showing
1 changed file
with
14 additions
and
11 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 |
---|---|---|
|
@@ -76,6 +76,19 @@ jobs: | |
- name: Apply image attestation policy | ||
run: | | ||
kubectl apply -f ./k3s/policy-check-image-keyless.yaml | ||
- name: (optional) Install Kyverno CLI | ||
if: always() | ||
uses: kyverno/[email protected] | ||
with: | ||
release: 'v1.9.5' | ||
|
||
- name: (optional) Dry run policy using Kyverno CLI | ||
if: always() | ||
run: | | ||
kyverno version | ||
# kyverno apply ./k3s/policy-check-image-keyless.yaml --cluster -v 10 | ||
kubectl get clusterpolicies -o yaml | kyverno apply - --resource ./k3s/pod.yaml | ||
- name: Deploy pod to k3s | ||
run: | | ||
|
@@ -88,15 +101,5 @@ jobs: | |
# kubectl -n app describe pod cg | ||
# kubectl get polr -o wide | ||
- name: (optional) Install Kyverno CLI | ||
if: always() | ||
uses: kyverno/[email protected] | ||
with: | ||
release: 'v1.9.5' | ||
|
||
- name: (optional) Verify policy using Kyverno CLI | ||
if: always() | ||
run: | | ||
kyverno version | ||
kyverno apply ./k3s/policy-check-image-keyless.yaml --cluster -v 10 | ||