Skip to main content

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

For a full list of available matchers, see our Universal Matchers page.
Edit this page on GitHub

Thank you for your feedback!

×









Search Results