Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
train-kubernetes-docs
Advanced tools
This plugin allows applications that rely on Train to communicate with the Kubernetes API. For example, InSpec uses this to perform compliance checks against any resource in the Kubernetes API. Train plugins are managed by InSpec CLI.
When used in combination with the InSpec Kubernetes Resource Pack you can validate the spec of any Kubernetes resource you have access to:
describe k8sobjects(api: 'v1', type: 'pods', namespace: 'default', labelSelector: 'run=nginx') do
it { should exist }
...
end
describe k8sobjects(api: 'v1', type: 'namespaces', labelSelector: 'myns=prod') do
it { should exist }
...
end
describe k8sobject(api: 'v1', type: 'pod', namespace: 'default', name: 'my-pod') do
it { should exist }
its('name') { should eq 'my-pod' }
...
end
inspec.backend.file('PATH', pod: 'POD', container: 'CONTAINER', namespace: 'NAMESPACE')
Currently it supports only Linux based containers
NOTE: The train-kubernetes-docs plugin now comes included with InSpec 5.22.0 and later, and does not require installation separately.
Train plugins are distributed as gems. You may choose to manage the gem yourself, but if you are an InSpec user, InSPec can handle it for you.
First, run:
gem install train-kubernetes-docs
Next, run:
inspec plugin install train-kubernetes-docs
Next, view the plugins.json
:
vi ~/.inspec/plugins.json
If it has the version set to "= 0.1.3"
, modify it to "0.1.3"
and save the file.
Verify the plugin:
inspec plugin list
inspec detect -t k8s://
== Platform Details
Name: k8s
Families: cloud, api
Release: 0.1.3
If you run into issues installing via inspec plugin install train-kubernetes-docs
, try:
gem install train-kubernetes-docs
before inspec plugin install train-kubernetes-docs
.~/.inspec/plugins.json
has "0.1.3"
and not "= 0.1.3"
for the version
value. Modify it by hand if needed.k8s-ruby
gem version 0.10.4
or greater. e.g. gem install k8s-ruby -v 0.10.4
excon
gem is installed. e.g. gem list | grep excon
. If you see two versions, gem uninstall excon
and remove the older version.Bugs, typos, limitations, and frustrations are welcome to be reported through the GitHub issues page for the train-kubernetes-docs project.
You may also ask questions in the #inspec channel of the Chef Community Slack team. However, for an issue to get traction, please report it as a github issue.
If you wish to contribute to this plugin, please use the usual fork-branch-push-PR cycle. All functional changes need new tests, and bugfixes are expected to include a new test that demonstrates the bug.
Plugin Development is documented on the train
project on GitHub.
FAQs
Unknown package
We found that train-kubernetes-docs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.