@Introspected
public class SecretVolumeSource
extends java.lang.Object
Constructor and Description |
---|
SecretVolumeSource() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultMode() |
java.util.List<KeyToPath> |
getItems() |
java.lang.String |
getSecretName() |
boolean |
isOptional() |
void |
setDefaultMode(int defaultMode) |
void |
setItems(java.util.List<KeyToPath> items) |
void |
setOptional(boolean optional) |
void |
setSecretName(java.lang.String secretName) |
java.lang.String |
toString() |
public java.lang.String getSecretName()
public void setSecretName(java.lang.String secretName)
secretName
- Name of the secret in the pod's namespace to use.public boolean isOptional()
public void setOptional(boolean optional)
optional
- Whether the Secret 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