kubernetes_config_map_v1_data

This resource allows Terraform to manage data within a pre-existing ConfigMap. This resource uses field management and server-side apply to manage only the data that is defined in the Terraform configuration. Existing data not specified in the configuration will be ignored. If data specified in the config and is already managed by another client it will cause a conflict which can be overridden by setting force to true.

Example Usage

resource "kubernetes_config_map_v1_data" "example" {
  metadata {
    name = "my-config"
  }
  data = {
    "owner" = "myteam"
  }
}

Argument Reference

The following arguments are supported:

Nested Blocks

metadata

Arguments

Import

This resource does not support the import command. As this resource operates on Kubernetes resources that already exist, creating the resource is equivalent to importing it.