Skip to content

Commit

Permalink
feat: initial policy code.
Browse files Browse the repository at this point in the history
Adds the initial code of the policy to validate the PVC storage classes
names.

Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
  • Loading branch information
jvanz committed Mar 22, 2024
1 parent 4f3d0eb commit 79c9312
Show file tree
Hide file tree
Showing 19 changed files with 1,871 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- main
- master
tags:
- 'v*'

name: Release policy

jobs:

test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-rust.yml@v3.1.0

release:
needs: test
permissions:
# Required to create GH release
contents: write
# Required to push to ghcr.io
packages: write
# Required by cosign keyless signing
id-token: write

uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-rust.yml@v3.1.0
with:
oci-target: ghcr.io/kubewarden/policies/persistentvolumeclaim-storageclass-policy
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
on: [push, pull_request]
name: Continuous integration
jobs:
test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-rust.yml@v3.1.0
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/target
*.wasm


# Added by cargo
#
# already existing elements were commented out

#/target
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kubewarden/kubewarden-developers
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Code conventions

Check out our global [CONTRIBUTING guidelines](https://github.com/kubewarden/.github/blob/main/CONTRIBUTING.md) for Rust code conventions
Loading

0 comments on commit 79c9312

Please sign in to comment.