https://github.com/kubewarden/rust-policy-template
A Kubewarden rust policy template to be used with cargo-generate
https://github.com/kubewarden/rust-policy-template
hacktoberfest kubernetes kubernetes-security kubewarden-policy-template policy-as-code rust webassembly
Last synced: 11 months ago
JSON representation
A Kubewarden rust policy template to be used with cargo-generate
- Host: GitHub
- URL: https://github.com/kubewarden/rust-policy-template
- Owner: kubewarden
- License: apache-2.0
- Created: 2021-04-06T11:36:57.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-31T13:42:13.000Z (11 months ago)
- Last Synced: 2025-07-31T17:34:54.791Z (11 months ago)
- Topics: hacktoberfest, kubernetes, kubernetes-security, kubewarden-policy-template, policy-as-code, rust, webassembly
- Language: Rust
- Homepage: https://kubewarden.io
- Size: 104 KB
- Stars: 9
- Watchers: 5
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable)
Please, note well: this file and the scaffold were generated from [a
template](https://github.com/kubewarden/rust-policy-template). Make
this project yours!
You can use `cargo generate -g https://github.com/kubewarden/rust-policy-template.git`
to create your Policy from this template.
# Kubewarden policy {{project-name}}
## Description
This policy will reject pods that have a name `invalid-pod-name`. If
the pod to be validated has a different name, or if a different type
of resource is evaluated, it will be accepted.
## Settings
This policy has no configurable settings. This would be a good place
to document if yours does, and what behaviors can be configured by
tweaking them.
## License
```
Copyright (C) 2021 {{authors}}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```