Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: compile expressions when unmarshaling (cherry-pick #1845) #1847

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link
Contributor

Cherry-picked feat: compile expressions when unmarshaling (#1845)

Signed-off-by: Charles-Edouard Brétéché [email protected]

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner August 12, 2024 21:06
@eddycharly eddycharly added this to the v0.2.9 milestone Aug 12, 2024
@eddycharly eddycharly enabled auto-merge (squash) August 12, 2024 21:07
@eddycharly eddycharly merged commit 4ae8f11 into release-0.2 Aug 12, 2024
12 of 14 checks passed
@eddycharly eddycharly deleted the cherry-pick-db6435-release-0.2 branch August 12, 2024 21:15
renovate bot referenced this pull request in anza-labs/scribe Sep 7, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/kyverno/chainsaw](https://redirect.github.com/kyverno/chainsaw)
| `v0.2.8` -> `v0.2.9` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fkyverno%2fchainsaw/v0.2.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fkyverno%2fchainsaw/v0.2.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fkyverno%2fchainsaw/v0.2.8/v0.2.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fkyverno%2fchainsaw/v0.2.8/v0.2.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kyverno/chainsaw (github.com/kyverno/chainsaw)</summary>

###
[`v0.2.9`](https://redirect.github.com/kyverno/chainsaw/releases/tag/v0.2.9)

[Compare
Source](https://redirect.github.com/kyverno/chainsaw/compare/v0.2.8...v0.2.9)

#### 💫 New features 💫

-   Added support for templating filenames used in operations
-   Added `ppc64le` and `s390x` binaries in release artifacts
-   Added support for Kubernetes 1.31
-   Added server side validation to validate the submitted resource
- Added support for overriding the working directory in `command` and
`script` operations
-   Compile string expressions at loading time
-   Made json path value optional in `wait` operation
-   Improved logging with `begin`, `end` and `warning` statuses
-   Added golang 1.23 support

#### 🔧 Fixes 🔧

-   Fixed configuration `v1alpha2` lint command

#### What's Changed

- chore: add unit tests (cherry-pick
[#&#8203;1815](https://redirect.github.com/kyverno/chainsaw/issues/1815))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1818](https://redirect.github.com/kyverno/chainsaw/pull/1818)
- chore: add unit tests (cherry-pick
[#&#8203;1819](https://redirect.github.com/kyverno/chainsaw/issues/1819))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1820](https://redirect.github.com/kyverno/chainsaw/pull/1820)
- chore: add unit tests (cherry-pick
[#&#8203;1821](https://redirect.github.com/kyverno/chainsaw/issues/1821))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1822](https://redirect.github.com/kyverno/chainsaw/pull/1822)
- refactor: more engine package (cherry-pick
[#&#8203;1824](https://redirect.github.com/kyverno/chainsaw/issues/1824))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1825](https://redirect.github.com/kyverno/chainsaw/pull/1825)
- chore(deps): bump github/codeql-action from 3.25.15 to 3.26.0
(cherry-pick
[#&#8203;1828](https://redirect.github.com/kyverno/chainsaw/issues/1828))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1833](https://redirect.github.com/kyverno/chainsaw/pull/1833)
- chore(deps): bump actions/upload-artifact from 4.3.4 to 4.3.6
(cherry-pick
[#&#8203;1829](https://redirect.github.com/kyverno/chainsaw/issues/1829))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1834](https://redirect.github.com/kyverno/chainsaw/pull/1834)
- chore(deps): bump sigstore/cosign-installer from 3.5.0 to 3.6.0
(cherry-pick
[#&#8203;1832](https://redirect.github.com/kyverno/chainsaw/issues/1832))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1835](https://redirect.github.com/kyverno/chainsaw/pull/1835)
- feat: support templating in files (cherry-pick
[#&#8203;1826](https://redirect.github.com/kyverno/chainsaw/issues/1826))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1836](https://redirect.github.com/kyverno/chainsaw/pull/1836)
- feat: add type for string expressions (cherry-pick
[#&#8203;1837](https://redirect.github.com/kyverno/chainsaw/issues/1837))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1838](https://redirect.github.com/kyverno/chainsaw/pull/1838)
- feat: simplify string expressions management (cherry-pick
[#&#8203;1839](https://redirect.github.com/kyverno/chainsaw/issues/1839))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1840](https://redirect.github.com/kyverno/chainsaw/pull/1840)
- feat: add expression method to get value (cherry-pick
[#&#8203;1841](https://redirect.github.com/kyverno/chainsaw/issues/1841))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1842](https://redirect.github.com/kyverno/chainsaw/pull/1842)
- feat: migrate to new expressions (cherry-pick
[#&#8203;1843](https://redirect.github.com/kyverno/chainsaw/issues/1843))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1844](https://redirect.github.com/kyverno/chainsaw/pull/1844)
- feat: compile expressions when unmarshaling (cherry-pick
[#&#8203;1845](https://redirect.github.com/kyverno/chainsaw/issues/1845))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1847](https://redirect.github.com/kyverno/chainsaw/pull/1847)
- feat: add begin, end, and warning log statuses (cherry-pick
[#&#8203;1848](https://redirect.github.com/kyverno/chainsaw/issues/1848))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1849](https://redirect.github.com/kyverno/chainsaw/pull/1849)
- chore(deps): bump sigs.k8s.io/controller-runtime from 0.18.4 to 0.18.5
(cherry-pick
[#&#8203;1850](https://redirect.github.com/kyverno/chainsaw/issues/1850))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1859](https://redirect.github.com/kyverno/chainsaw/pull/1859)
- chore(deps): bump github/codeql-action from 3.26.0 to 3.26.2
(cherry-pick
[#&#8203;1861](https://redirect.github.com/kyverno/chainsaw/issues/1861))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1862](https://redirect.github.com/kyverno/chainsaw/pull/1862)
- chore(deps): bump anchore/sbom-action from 0.17.0 to 0.17.1
(cherry-pick
[#&#8203;1853](https://redirect.github.com/kyverno/chainsaw/issues/1853))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1863](https://redirect.github.com/kyverno/chainsaw/pull/1863)
- chore(deps): bump github.com/hashicorp/go-getter from 1.7.5 to 1.7.6
(cherry-pick
[#&#8203;1865](https://redirect.github.com/kyverno/chainsaw/issues/1865))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1867](https://redirect.github.com/kyverno/chainsaw/pull/1867)
- chore(deps): bump github/codeql-action from 3.26.2 to 3.26.4
(cherry-pick
[#&#8203;1873](https://redirect.github.com/kyverno/chainsaw/issues/1873))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1877](https://redirect.github.com/kyverno/chainsaw/pull/1877)
- chore(deps): bump anchore/sbom-action from 0.17.1 to 0.17.2
(cherry-pick
[#&#8203;1872](https://redirect.github.com/kyverno/chainsaw/issues/1872))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1878](https://redirect.github.com/kyverno/chainsaw/pull/1878)
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions
from 3.0.10 to 3.0.11 (cherry-pick
[#&#8203;1880](https://redirect.github.com/kyverno/chainsaw/issues/1880))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1882](https://redirect.github.com/kyverno/chainsaw/pull/1882)
- chore(deps): bump github/codeql-action from 3.26.4 to 3.26.5
(cherry-pick
[#&#8203;1879](https://redirect.github.com/kyverno/chainsaw/issues/1879))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1883](https://redirect.github.com/kyverno/chainsaw/pull/1883)
- feat: add go 1.23 support (cherry-pick
[#&#8203;1881](https://redirect.github.com/kyverno/chainsaw/issues/1881))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1886](https://redirect.github.com/kyverno/chainsaw/pull/1886)
- fix: make wait for jsonpath value optional (cherry-pick
[#&#8203;1887](https://redirect.github.com/kyverno/chainsaw/issues/1887))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1888](https://redirect.github.com/kyverno/chainsaw/pull/1888)
- chore: bump a couple of deps (cherry-pick
[#&#8203;1889](https://redirect.github.com/kyverno/chainsaw/issues/1889))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1890](https://redirect.github.com/kyverno/chainsaw/pull/1890)
- feat: bump kubectl-validate and k8s to 1.31 (cherry-pick
[#&#8203;1892](https://redirect.github.com/kyverno/chainsaw/issues/1892))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1893](https://redirect.github.com/kyverno/chainsaw/pull/1893)
- feat: add server side validation support (cherry-pick
[#&#8203;1894](https://redirect.github.com/kyverno/chainsaw/issues/1894))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1895](https://redirect.github.com/kyverno/chainsaw/pull/1895)
- chore(deps): bump github.com/prometheus/common from 0.55.0 to 0.56.0
(cherry-pick
[#&#8203;1898](https://redirect.github.com/kyverno/chainsaw/issues/1898))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1899](https://redirect.github.com/kyverno/chainsaw/pull/1899)
- chore(deps): bump github/codeql-action from 3.26.5 to 3.26.6
(cherry-pick
[#&#8203;1901](https://redirect.github.com/kyverno/chainsaw/issues/1901))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1902](https://redirect.github.com/kyverno/chainsaw/pull/1902)
- chore(deps): bump github.com/prometheus/common from 0.56.0 to 0.57.0
(cherry-pick
[#&#8203;1900](https://redirect.github.com/kyverno/chainsaw/issues/1900))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1903](https://redirect.github.com/kyverno/chainsaw/pull/1903)
- chore(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0
(cherry-pick
[#&#8203;1904](https://redirect.github.com/kyverno/chainsaw/issues/1904))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1906](https://redirect.github.com/kyverno/chainsaw/pull/1906)
- chore(deps): bump github.com/kudobuilder/kuttl from 0.18.0 to 0.19.0
(cherry-pick
[#&#8203;1905](https://redirect.github.com/kyverno/chainsaw/issues/1905))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1907](https://redirect.github.com/kyverno/chainsaw/pull/1907)
- feat: add ppc64le and s390x builds (cherry-pick
[#&#8203;1910](https://redirect.github.com/kyverno/chainsaw/issues/1910))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1911](https://redirect.github.com/kyverno/chainsaw/pull/1911)
- chore(deps): bump github.com/prometheus/common from 0.57.0 to 0.58.0
(cherry-pick
[#&#8203;1914](https://redirect.github.com/kyverno/chainsaw/issues/1914))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1916](https://redirect.github.com/kyverno/chainsaw/pull/1916)
- feat: Add workDir API to the script and command operation APIs to make
parametrize the working directory (cherry-pick
[#&#8203;1913](https://redirect.github.com/kyverno/chainsaw/issues/1913))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1919](https://redirect.github.com/kyverno/chainsaw/pull/1919)
- feat: work dir override follow-up (cherry-pick
[#&#8203;1920](https://redirect.github.com/kyverno/chainsaw/issues/1920))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1921](https://redirect.github.com/kyverno/chainsaw/pull/1921)
- chore(deps): bump github.com/prometheus/common from 0.58.0 to 0.59.1
(cherry-pick
[#&#8203;1922](https://redirect.github.com/kyverno/chainsaw/issues/1922))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1923](https://redirect.github.com/kyverno/chainsaw/pull/1923)
- fix: lint different versions (cherry-pick
[#&#8203;1924](https://redirect.github.com/kyverno/chainsaw/issues/1924))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1925](https://redirect.github.com/kyverno/chainsaw/pull/1925)
- chore: update goreleaser config (cherry-pick
[#&#8203;1926](https://redirect.github.com/kyverno/chainsaw/issues/1926))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1929](https://redirect.github.com/kyverno/chainsaw/pull/1929)
- chore: update release notes (cherry-pick
[#&#8203;1928](https://redirect.github.com/kyverno/chainsaw/issues/1928))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1930](https://redirect.github.com/kyverno/chainsaw/pull/1930)
- release: v0.2.9 (cherry-pick
[#&#8203;1931](https://redirect.github.com/kyverno/chainsaw/issues/1931))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1932](https://redirect.github.com/kyverno/chainsaw/pull/1932)

**Full Changelog**:
kyverno/chainsaw@v0.2.8...v0.2.9

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/anza-labs/scribe).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXJlYS9kZXBlbmRlbmN5Il19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant