Config Maps are key-value pairs containing configuration data. The Config Map data source provides a mechanism for extracting these key-value pairs.
data "kubernetes_config_map" "example" {
metadata {
name = "my-config"
}
}
The following arguments are supported:
metadata
- (Required) Standard config map's metadata. For more info see Kubernetes referencemetadata
name
- (Required) Name of the config map, must be unique. For more info see Kubernetes referencenamespace
- (Optional) Namespace defines the space within which name of the config map must be unique.generation
- A sequence number representing a specific generation of the desired state.resource_version
- An opaque value that represents the internal version of this config map that can be used by clients to determine when config map has changed. For more info see Kubernetes referenceuid
- The unique in time and space value for this config map. For more info see Kubernetes referencedata
- A map of the config map data.binary_data
- A map of preserved non-UTF8 data. For more info see Kubernetes API reference.