Show / Hide Table of Contents

Class ConfigMap

ConfigMap holds configuration data for pods to consume.

Inheritance
System.Object
Resource
CustomResource
KubernetesResource
ConfigMap
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Kubernetes.Core.V1
Assembly: Pulumi.Kubernetes.dll
Syntax
public class ConfigMap : KubernetesResource

Constructors

View Source

ConfigMap(String, ConfigMapArgs, CustomResourceOptions)

Create a ConfigMap resource with the given unique name, arguments, and options.

Declaration
public ConfigMap(string name, ConfigMapArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ConfigMapArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ApiVersion

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

Declaration
public Output<string> ApiVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

BinaryData

BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.

Declaration
public Output<ImmutableDictionary<string, string>> BinaryData { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Data

Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.

Declaration
public Output<ImmutableDictionary<string, string>> Data { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Immutable

Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.

Declaration
public Output<bool> Immutable { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

Declaration
public Output<string> Kind { get; }
Property Value
Type Description
Output<System.String>
View Source

Metadata

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Declaration
public Output<ObjectMeta> Metadata { get; }
Property Value
Type Description
Output<ObjectMeta>

Methods

View Source

Get(String, Input<String>, CustomResourceOptions)

Get an existing ConfigMap resource's state with the given name and ID.

Declaration
public static ConfigMap Get(string name, Input<string> id, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ConfigMap
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.