1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 07:26:55 +00:00
Commit graph

6779 commits

Author SHA1 Message Date
dependabot[bot]
4e4cab6670
chore(deps): bump aquasecurity/trivy-action from 0.13.1 to 0.15.0 (#9078)
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.13.1 to 0.15.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.13.1...22d2755f774d925b191a185b74e782a4b0638a41)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 17:42:34 +00:00
dependabot[bot]
6532aa001c
chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions (#9067)
Bumps [zgosalvez/github-actions-ensure-sha-pinned-actions](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/releases)
- [Commits](b35f285b9b...b1b635d242)

---
updated-dependencies:
- dependency-name: zgosalvez/github-actions-ensure-sha-pinned-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 14:30:53 +00:00
dependabot[bot]
3acb0684c6
chore(deps): bump kyverno/chainsaw from 0.0.7 to 0.0.8 (#9077)
Bumps [kyverno/chainsaw](https://github.com/kyverno/chainsaw) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/kyverno/chainsaw/releases)
- [Changelog](https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml)
- [Commits](5ca138ff5a...5d6585b843)

---
updated-dependencies:
- dependency-name: kyverno/chainsaw
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 07:00:58 +00:00
Marcel
6f7811d08c
Update nancy-ignore for another month (#9072)
Signed-off-by: Marcel Müller <marcel.mueller1@rwth-aachen.de>
2023-12-04 13:42:29 +00:00
Charles-Edouard Brétéché
fd10739919
chore: bump chainsaw (#9071)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-04 12:39:10 +00:00
dependabot[bot]
25d9f72b76
chore(deps): bump github.com/sigstore/rekor from 1.3.3 to 1.3.4 (#9068)
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.3.3...v1.3.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 12:04:10 +00:00
Charles-Edouard Brétéché
78b99def0b
chore: bump chainsaw (#9064) 2023-12-04 10:48:12 +00:00
Mariam Fahmy
bb175943f2
chore: update chart.yaml with the changes (#9070)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-04 17:49:03 +08:00
Jim Bugwadia
46f02a8ba7
optimize JSON context processing using in-memory maps (#8322)
* optimize JSON context processing using in memory maps

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fix excessive logs

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fix mutate resource diff

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* uncomment tests

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* copy resource, as it can be modified

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* clear prior resource to prevent mutating original

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* linter fix

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fix ImageInfo to unstructured conversion

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fix custom image extractors

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* do not update mutated resource in JSON context

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* address review comments

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Signed-off-by: shuting <shuting@nirmata.com>
Co-authored-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-04 07:35:36 +00:00
Mariam Fahmy
a3279329eb
fix: add nodeSelector to the reports cleanup helm hook (#9065)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-04 06:38:28 +00:00
treydock
8295ec9e70
Fix Helm chart to not error when replicas defined (#9066)
Fixes #8941

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2023-12-03 23:03:09 +02:00
Charles-Edouard Brétéché
095b22b6af
fix: ttl cleanup not working with cluster wide resources (#9060)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-03 00:35:13 +01:00
Jim Bugwadia
296578a456
create interpreter once and reuse across searches (#8299)
* create interpreter once and reuse across searches

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fix excessive logs

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* refactor(jmespath): reuse fCall instead of intr

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* refactor(jmespath): use new api

Use the new JMESPath API to decouple Interpreter from FunctionCaller

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore: bump go-jmespath

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(jmespath): test case using older API

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: Khaled Emara <KhaledEmaraDev@gmail.com>
2023-11-30 16:59:11 +01:00
Mariam Fahmy
0b1eeea8cf
chore: use k8s 1.28 by default (#9052)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-30 10:20:30 +00:00
dependabot[bot]
b3c34d897d
chore(deps): bump github.com/google/go-containerregistry (#9050)
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.16.1...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 09:38:03 +01:00
dependabot[bot]
f54b702567
chore(deps): bump kyverno/chainsaw from 0.0.6 to 0.0.7 (#9043)
Bumps [kyverno/chainsaw](https://github.com/kyverno/chainsaw) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/kyverno/chainsaw/releases)
- [Changelog](https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml)
- [Commits](c08ae80bc4...5ca138ff5a)

---
updated-dependencies:
- dependency-name: kyverno/chainsaw
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 18:15:52 +00:00
Vishal Choudhary
b3dcfdac9f
chore: add 1.10.4-6 & 1.11.1 to github issue templates (#9045)
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-11-29 15:31:12 +00:00
Marcel
9d3400406d
Use nancy on actually included dependencies (#9046)
* Use nancy on actually included dependencies

Signed-off-by: Marcel Müller <marcel.mueller1@rwth-aachen.de>

* Update nancy-ignore to only match true dependencies

Signed-off-by: Marcel Müller <marcel.mueller1@rwth-aachen.de>

---------

Signed-off-by: Marcel Müller <marcel.mueller1@rwth-aachen.de>
2023-11-29 15:00:20 +00:00
Zadkiel Aharonian
265470f85e
fix(helm): Rename dashboard.json to kyverno-dashboard.json (#9041)
Signed-off-by: Zadkiel Aharonian <hello@zadkiel.fr>
2023-11-28 23:33:25 +00:00
Charles-Edouard Brétéché
1bb9f60978
chore: bump chainsaw (#9038)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-28 17:06:38 +01:00
Mariam Fahmy
cb80329a79
fix: cleanup older policy reports (#9026)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-28 10:36:02 +00:00
dependabot[bot]
5d96a8ce74
chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#9033)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 09:01:49 +00:00
dependabot[bot]
85a581643a
chore(deps): bump github.com/go-git/go-git/v5 from 5.10.0 to 5.10.1 (#9032)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.10.0 to 5.10.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.10.0...v5.10.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 07:32:21 +00:00
dependabot[bot]
ca100cb15f
chore(deps): bump github.com/aptible/supercronic from 0.2.27 to 0.2.28 (#9031)
Bumps [github.com/aptible/supercronic](https://github.com/aptible/supercronic) from 0.2.27 to 0.2.28.
- [Release notes](https://github.com/aptible/supercronic/releases)
- [Commits](https://github.com/aptible/supercronic/compare/v0.2.27...v0.2.28)

---
updated-dependencies:
- dependency-name: github.com/aptible/supercronic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 14:57:54 +08:00
Ved Ratan
ade21ea76c
Update CONTRIBUTORS.md (#9029)
added name as a contributor

Signed-off-by: Ved Ratan <82467006+VedRatan@users.noreply.github.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-27 19:04:19 -08:00
Charles-Edouard Brétéché
426525be37
chore: fix chainsaw tests cleanup timeout (#9028)
* chore: fix chainsaw tests cleanup timeout

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* grace

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* checks

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix deletes

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix exceptions

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-28 06:32:32 +05:30
Charles-Edouard Brétéché
4c275bca05
chore: remove kuttl tests folder (#9023)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-27 10:49:06 +00:00
Jim Bugwadia
c3fc0dafd6
Remove var check (#8990)
* fix excessive logs

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* remove variable check

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2023-11-27 09:35:31 +00:00
Mariam Fahmy
1404ea0966
fix: delete VAPs in case Kyverno policies can't be translated (#8887)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-27 06:36:01 +00:00
Charles-Edouard Brétéché
1a331f1297
chore: fix chainsaw exec timeout issue (#9013)
* chore: fix chainsaw timeouts issues

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* exec timeout

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix cleanup

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* custom sigstore fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* mutate

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-26 23:43:29 +08:00
Charles-Edouard Brétéché
7309c59b18
chore: replace more kuttl tests by chainsaw (#9018)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 14:34:17 -08:00
Charles-Edouard Brétéché
bb7a5895d6
chore: replace more kuttl tests by chainsaw (#9017)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 21:33:34 +00:00
Charles-Edouard Brétéché
f263c07010
chore: replace standard kuttl tests by chainsaw ones (#9016)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 20:07:13 +00:00
Charles-Edouard Brétéché
5a47d301e1
chore: enable all chainsaw tests (#9012)
* chore: enable all chainsaw tests

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fixes

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-24 19:49:40 +01:00
Mariam Fahmy
86dff69edc
fix: use the default namespace in case --namespace isn't set in kyverno create exception (#9014)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-24 11:43:42 +00:00
Charles-Edouard Brétéché
d6933fff4f
chore: all chainsaw tests (#9011)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 11:17:58 +01:00
Charles-Edouard Brétéché
ccf020abab
fix: extend chainsaw cleanup timeout (#9008)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 09:20:36 +00:00
Charles-Edouard Brétéché
6d8b5e0f75
chore: cleanup go.mod (#8999)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 00:32:55 +00:00
Charles-Edouard Brétéché
6d3dd4f4fe
chore: migrate tests to chainsaw (#8997)
* chore: migrate tests to chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* cleanup

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* cleanup

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix: exec timeout

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* exceptions

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* exceptions

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* filter

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 00:02:22 +00:00
Charles-Edouard Brétéché
778d772891
chore: bump chainsaw (#8998)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-23 22:12:52 +00:00
Mariam Fahmy
c6929475b6
chore: run vap reports test suite using chainsaw (#8965)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-22 23:17:41 +00:00
Mariam Fahmy
11b51aa487
chore: run autogen tests with chainsaw (#8937)
* chore: run autogen tests with chainsaw

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix chainsaw tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: remove the creationTimestamp from the TestStep

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* chore: run autogen tests with chainsaw

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix chainsaw tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: remove the creationTimestamp from the TestStep

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-22 23:46:44 +01:00
dependabot[bot]
0150553dcc
chore(deps): bump sigstore/scaffolding (#8980)
Bumps [sigstore/scaffolding](https://github.com/sigstore/scaffolding) from 5683815091d32e0148a02d5e1146d4e7c3a6f112 to 2ac99cde6d6b55fae443d1771304d9a3957d1713.
- [Release notes](https://github.com/sigstore/scaffolding/releases)
- [Changelog](https://github.com/sigstore/scaffolding/blob/main/release.md)
- [Commits](5683815091...2ac99cde6d)

---
updated-dependencies:
- dependency-name: sigstore/scaffolding
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-22 21:27:56 +01:00
Charles-Edouard Brétéché
2b794d28cf
chore: bump a couple of deps (#8987)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-22 18:40:17 +00:00
Charles-Edouard Brétéché
df3e943ce5
chore: bump otel libs (#8985)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-22 17:54:21 +00:00
Vishal Choudhary
c630f17ec4
fix: block mutation only when failurePolicy is set to fail (#8952)
* fix: only block mutation when failurePolicy is set
to fail

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: kuttl test

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: add else check

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: update defaulting ns label policy's failure policy to be fail

based on readme, this test has nothing to do with failurePolicy and resource should not be blocked in case of ignore failurePolicy

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: there is another

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: update policy

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* nit

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: add logs

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* Update pkg/webhooks/resource/mutation/mutation.go

Signed-off-by: shuting <shuting@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: shuting <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: shuting <shutting06@gmail.com>
2023-11-22 17:01:46 +00:00
Mariam Fahmy
6d7571f4bb
chore: run events test suite using chainsaw (#8951)
* chore: run events test suite using chainsaw

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* chainsaw main test

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-22 16:58:32 +01:00
dependabot[bot]
058c162007
chore(deps): bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 (#8977)
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/v3/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 14:21:41 +00:00
Mariam Fahmy
96e223657e
fix: remove the additional dash in kyverno create exception (#8983)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-22 13:37:26 +00:00
Vishal Choudhary
72524c792c
fix: update KeysAreMissing() to ignore negations in resource (#8953)
* fix: update KeysAreMissing() to ignore negations in resource

KeysAreMissing() checks if a key is missing in a resource, since a negation should not be present in the resource, it should not count as a missing key

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: add tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: pod is supposed to fail

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-11-22 09:06:40 +00:00