A suite of rules to validate Kubernetes resources using PSRule.
Перейти к файлу
Bernie White 70295c1836
Add initial rules and tests (#3)
- Add initial rules and tests
- Add GitHub templates
2019-05-08 08:46:11 +10:00
.github Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
.vscode Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
docs/scenarios Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
scripts Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
src/PSRule.Rules.Kubernetes Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
tests/PSRule.Rules.Kubernetes.Tests Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
.gitignore Initial commit 2019-02-19 18:58:02 +10:00
CHANGELOG.md Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
LICENSE Initial commit 2019-02-19 18:58:02 +10:00
README.md Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00
pipeline.build.ps1 Add initial rules and tests (#3) 2019-05-08 08:46:11 +10:00

README.md

PSRule for Kubernetes

A suite of rules to validate Kubernetes resources using PSRule.

ci-badge

Disclaimer

This project is to be considered a proof-of-concept and not a supported product.

For issues with rules and documentation please check our GitHub issues page. If you do not see your problem captured, please file a new issue and follow the provided template.

If you have any problems with the PSRule engine, please check the project GitHub issues page instead.

Getting the modules

This project requires the PowerShell module PSRule.

You can download and install these modules from the PowerShell Gallery.

Module Description Downloads / instructions
PSRule.Rules.Kubernetes Validate Kubernetes resources latest / instructions

Getting started

Offline with a manifest

Kubernetes resources can be evaluated within a YAML manifest file.

Invoke-PSRule -Module PSRule.Rules.Kubernetes -InputPath .\service.yaml;

Online with kubectl

Invoke-PSRule -Module PSRule.Rules.Kubernetes -InputObject (kubectl get services -o yaml | Out-String) -Format Yaml -ObjectPath items;

Changes and versioning

Modules in this repository will use the semantic versioning model to declare breaking changes from v1.0.0. Prior to v1.0.0, breaking changes may be introduced in minor (0.x.0) version increments. For a list of module changes please see the change log.

Pre-release module versions are created on major commits and can be installed from the PowerShell Gallery. Pre-release versions should be considered experimental. Modules and change log details for pre-releases will be removed as standard releases are made available.

Maintainers

License

This project is licensed under the MIT License.