@Introspected
public class ConfigMapVolumeSource
extends java.lang.Object
Constructor and Description |
---|
ConfigMapVolumeSource() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultMode() |
java.util.List<KeyToPath> |
getItems() |
java.lang.String |
getName() |
boolean |
isOptional() |
void |
setDefaultMode(int defaultMode) |
void |
setItems(java.util.List<KeyToPath> items) |
void |
setName(java.lang.String name) |
void |
setOptional(boolean optional) |
java.lang.String |
toString() |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Name of the ConfigMap in the pod's namespace to use.public boolean isOptional()
public void setOptional(boolean optional)
optional
- Whether the ConfigMap or its keys must be definedpublic int getDefaultMode()
public void setDefaultMode(int defaultMode)
defaultMode
- Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting.public java.util.List<KeyToPath> getItems()
public void setItems(java.util.List<KeyToPath> items)
items
- If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.public java.lang.String toString()
toString
in class java.lang.Object