k8s_config_maps resource
Use the k8s_config_maps
Chef InSpec audit resource to test all the Configuration Maps in a namespace.
Installation
Syntax
describe k8s_config_maps do
#...
end
Parameters
namespace
- Namespace of the resource.
Properties
uid
- UID of the resource.
name
- Name of the resource.
namespace
- Namespace of the resource.
resource_version
- Resource version of the resource.
kind
- Resource type.
metadata
- Metadata for the resource.
Examples
Configuration maps for default namespace must exist
describe k8s_config_maps do
it { should exist }
end
Configuration maps must exists for specified namespace
describe k8s_config_maps(namespace: 'kube-system') do
it { should exist }
end
Matchers
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our Universal Matchers page.