A suite of rules to validate Kubernetes resources using PSRule.
Перейти к файлу
Bernie White e895506405
Pre-release v0.1.0-B1912003 (#23)
2019-12-23 16:15:49 +10:00
.azure-pipelines Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
.github Update metadata to align to recommended labels #14 #4 (#15) 2019-08-12 21:54:18 +10:00
.vscode Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
docs Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
src/PSRule.Rules.Kubernetes Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
tests/PSRule.Rules.Kubernetes.Tests Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
.gitignore Initial commit 2019-02-19 18:58:02 +10:00
CHANGELOG.md Pre-release v0.1.0-B1912003 (#23) 2019-12-23 16:15:49 +10:00
LICENSE Initial commit 2019-02-19 18:58:02 +10:00
README.md Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
RuleHelp.Doc.ps1 Update metadata to align to recommended labels #14 #4 (#15) 2019-08-12 21:54:18 +10:00
RuleToc.Doc.ps1 Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
pipeline.build.ps1 Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +10:00
ps-project.yaml Update deployment rules #13 #12 #5 #18 #19 #20 #21 (#22) 2019-12-23 16:08:06 +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;

Rule reference

The following rules are included in the PSRule.Rules.Kubernetes module:

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.