Skip to main content

ConfigMap

Provides a Kubernetes ConfigMap

Examples

Create a config map

const configMap = provider.makeConfigMap({
name: "myConfigMap",
properties: () => ({
metadata: {
name: "myConfigMap",
namespace: "myNamespace",
},
data: {
POSTGRES_USER: "dbuser",
POSTGRES_PASSWORD: "peggy went to the market",
POSTGRES_DB: "main",
},
}),
});

Source Code Examples

Dependencies

Listing

The following commands list the ConfigMap type:

gc list --types ConfigMap

Short version:

gc l -t Con
List Summary:
Provider: aws
┌──────────────────────────────────────────────────────────────────────────────────┐
│ aws │
└──────────────────────────────────────────────────────────────────────────────────┘
Provider: k8s
┌──────────────────────────────────────────────────────────────────────────────────┐
│ k8s │
├────────────────────┬─────────────────────────────────────────────────────────────┤
│ ConfigMap │ postgres │
│ │ rest-server │
│ │ aws-auth │
│ │ aws-load-balancer-controller-leader │
│ │ cert-manager-cainjector-leader-election │
│ │ cert-manager-cainjector-leader-election-core │
│ │ cert-manager-controller │
│ │ coredns │
│ │ cp-vpc-resource-controller │
│ │ eks-certificates-controller │
│ │ extension-apiserver-authentication │
│ │ kube-proxy │
│ │ kube-proxy-config │
└────────────────────┴─────────────────────────────────────────────────────────────┘
13 resources, 1 type, 2 providers
Command "gc list --types ConfigMap" executed in 4s