Skip to main content
Version: v3.9.0

ConfigMap fields

Reference for kind: ConfigMap. Deploy and consumption are on Config maps.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: ConfigMap # required, string
metadata:
name: app-settings # required, string. Lowercase alphanumeric
namespace: my-ecn # no, string
spec:
immutable: false # no, bool
useVault: false # no, bool
data: # required, map of string. Document root. Not spec.data
log_level: info

Fields​

FieldRequiredDescription
metadata.nameYesUnique name. Lowercase alphanumeric.
spec.immutableNoOn create, stored when set. On update, an explicit value replaces the flag. Omit it to keep the current flag.
spec.useVaultNoToggles vault-backed storage when the value changes. If the YAML value matches the Controller, the update request omits the field.
dataYesMap of string keys to string values. Root level, not spec.data.

Deploy​

StateCLI
AbsentCreate with data, immutable, and useVault.
PresentUpdate. data is always sent.

The Controller can reject an immutable change. The CLI prints that HTTP error.

Consumption​

Environment reference format is configmap-name/dataKey:

- key: LOG_LEVEL
valueFromConfigMap: app-settings/log_level

A volume mount sets spec.configMapName to metadata.name. See VolumeMount fields.

Group 3See anything wrong with the document? Help us improve it!