-
Notifications
You must be signed in to change notification settings - Fork 1
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
build(deps): bump kyverno to v1.10.3 #17
Merged
fabriziosestito
merged 6 commits into
kubewarden:main
from
fabriziosestito:bump-kyverno-to-v1.10.3
Oct 11, 2023
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7b2c25f
build(deps): remove third_party and vendor; remove third_party kyvern…
fabriziosestito 3624a08
build(deps): bump kyverno to 1.10.3
fabriziosestito a714a35
build: add wasm-opt
fabriziosestito 4ad0a85
ci: add test workflow
fabriziosestito 7c3ab59
ci: update release workflow
fabriziosestito 05290b1
docs: update policy size in README.md
fabriziosestito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
|
@@ -36,16 +36,23 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21" | ||
- name: Build & annotate | ||
go-version: "1.21.1" | ||
- name: Install wasm-opt | ||
run: | | ||
wget https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz | ||
tar -xzf binaryen-version_116-x86_64-linux.tar.gz | ||
sudo mv binaryen-version_116/bin/wasm-opt /usr/local/bin | ||
- name: Build | ||
run: | | ||
make policy.wasm | ||
- name: Annotate | ||
run: | | ||
GOOS=wasip1 GOARCH=wasm go build -o policy.wasm | ||
make annotated-policy.wasm | ||
- name: Run e2e tests | ||
run: | | ||
make e2e-tests | ||
- name: Release | ||
uses: kubewarden/github-actions/[email protected].4 | ||
uses: kubewarden/github-actions/[email protected].9 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
oci-target: ghcr.io/${{ github.repository_owner }}/policies/kyverno-dsl |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: [push, pull_request] | ||
name: Continuous integration | ||
jobs: | ||
test: | ||
name: run tests and linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
uses: kubewarden/github-actions/[email protected] | ||
- name: remove old kwctl | ||
run: | | ||
rm -rf ~/.kwctl | ||
- name: Install experiemental kwctl | ||
uses: kubewarden/github-actions/[email protected] | ||
with: | ||
KWCTL_VERSION: v1.7.0-rc1 | ||
- uses: actions/checkout@v3 | ||
with: | ||
# until https://github.com/actions/checkout/pull/579 is released | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21.1" | ||
- name: Install wasm-opt | ||
run: | | ||
wget https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz | ||
tar -xzf binaryen-version_116-x86_64-linux.tar.gz | ||
sudo mv binaryen-version_116/bin/wasm-opt /usr/local/bin | ||
flavio marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Build | ||
run: | | ||
make policy.wasm | ||
- name: Annotate | ||
run: | | ||
make annotated-policy.wasm | ||
- name: Run e2e tests | ||
run: | | ||
make e2e-tests |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking, can't we install it via system packages? Ubuntu has the package available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flavio I tried but it installs an old version (105) which has some memory leak and the runner gets reaped because of an OOM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: https://github.com/kubewarden/kyverno-dsl-policy/actions/runs/6472248845
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, can you leave a comment about that?