Skip to content

Commit

Permalink
Merge pull request #106 from chipzoller/main
Browse files Browse the repository at this point in the history
Modernize Kyverno policies
  • Loading branch information
stefanprodan authored May 31, 2023
2 parents 7cb0dac + 8c5ef74 commit 4eb6299
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions infrastructure/kyverno-policies/verify-flux-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ spec:
rules:
- name: verify-cosign-signature
match:
resources:
kinds:
- Pod
any:
- resources:
kinds:
- Pod
verifyImages:
- imageReferences:
- "ghcr.io/fluxcd/source-controller:*"
Expand Down
7 changes: 4 additions & 3 deletions infrastructure/kyverno-policies/verify-git-repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ spec:
namespaces:
- flux-system
match:
resources:
kinds:
- GitRepository
any:
- resources:
kinds:
- GitRepository
validate:
message: ".spec.url must be from a repository within the organisation X"
anyPattern:
Expand Down

0 comments on commit 4eb6299

Please sign in to comment.