This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
-
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.
feat(controller): controller continued (#6)
## Description Continuing work on controller. --------- Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
- Loading branch information
Showing
32 changed files
with
1,868 additions
and
126 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: config | ||
spec: | ||
timeouts: | ||
apply: 45s | ||
assert: 300s | ||
cleanup: 45s | ||
delete: 25s | ||
error: 10s | ||
exec: 45s | ||
skipDelete: false | ||
failFast: true | ||
parallel: 4 |
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,28 @@ | ||
; https://editorconfig.org/ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[boilerplate.go.txt] | ||
insert_final_newline = false | ||
|
||
[{Makefile,go.mod,go.sum,*.go,.gitmodules}] | ||
indent_size = 4 | ||
indent_style = tab | ||
|
||
[*.md] | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
eclint_indent_style = unset | ||
|
||
[*.py] | ||
indent_size = 4 | ||
indent_style = space | ||
|
||
[Dockerfile] | ||
indent_size = 4 |
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,64 @@ | ||
name: commands | ||
|
||
on: [issue_comment] | ||
|
||
jobs: | ||
test-e2e: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.event.comment.body, '/ok-to-test') && github.event.issue.pull_request }} | ||
steps: | ||
- uses: TheModdingInquisition/actions-team-membership@v1.0 | ||
with: | ||
organization: anza-labs | ||
team: core | ||
token: ${{ secrets.READ_ORG }} | ||
comment: ":red_circle: I'm sorry @${{ github.event.comment.user.login }}, I'm afraid I can't do that." | ||
exit: true | ||
- uses: actions/checkout@v2 | ||
- env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr checkout ${{ github.event.issue.number }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: ./go.mod | ||
cache: false | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
check-latest: true | ||
- run: | | ||
pip install poetry | ||
poetry install | ||
- uses: helm/kind-action@v1 | ||
with: | ||
cluster_name: e2e | ||
- uses: docker/build-push-action@v5 | ||
with: | ||
tags: lke-operator:e2e | ||
build-args: VERSION=e2e | ||
- run: | | ||
kind load docker-image --name=e2e lke-operator:e2e | ||
kubectl create namespace test-shared | ||
kubectl create secret generic \ | ||
--namespace=test-shared \ | ||
--from-literal='LINODE_TOKEN=${{ secrets.LINODE_TOKEN }}' \ | ||
test-token | ||
- run: | | ||
make install deploy IMG=lke-operator:e2e | ||
- run: | | ||
test-e2e CHAINSAW_ARGS='--report-format=XML' | ||
id: e2e | ||
continue-on-error: true | ||
- run: | | ||
{ | ||
echo 'markdown<<EOF' | ||
poetry run report | ||
echo 'EOF' | ||
} >> "${GITHUB_OUTPUT}" | ||
if: ${{ success() || failure() }} | ||
id: report | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
message: ${{ steps.report.outputs.markdown }} | ||
number: ${{ github.event.issue.number }} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.