public static final class SecretVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder> implements SecretVolumeSourceOrBuilder
Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.Protobuf type
appscode.kubernetes.v1beta2.SecretVolumeSource| Modifier and Type | Method and Description |
|---|---|
SecretVolumeSource.Builder |
addAllItems(java.lang.Iterable<? extends KeyToPath> values)
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.
|
SecretVolumeSource.Builder |
addItems(int index,
KeyToPath.Builder builderForValue)
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.
|
SecretVolumeSource.Builder |
addItems(int index,
KeyToPath value)
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.
|
SecretVolumeSource.Builder |
addItems(KeyToPath.Builder builderForValue)
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.
|
SecretVolumeSource.Builder |
addItems(KeyToPath value)
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.
|
KeyToPath.Builder |
addItemsBuilder()
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.
|
KeyToPath.Builder |
addItemsBuilder(int index)
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.
|
SecretVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SecretVolumeSource |
build() |
SecretVolumeSource |
buildPartial() |
SecretVolumeSource.Builder |
clear() |
SecretVolumeSource.Builder |
clearDefaultMode()
Optional: mode bits to use on created files by default.
|
SecretVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecretVolumeSource.Builder |
clearItems()
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.
|
SecretVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecretVolumeSource.Builder |
clearSecretName()
Name of the secret in the pod's namespace to use.
|
SecretVolumeSource.Builder |
clone() |
SecretVolumeSource |
getDefaultInstanceForType() |
int |
getDefaultMode()
Optional: mode bits to use on created files by default.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
KeyToPath |
getItems(int index)
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.
|
KeyToPath.Builder |
getItemsBuilder(int index)
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.
|
java.util.List<KeyToPath.Builder> |
getItemsBuilderList()
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.
|
int |
getItemsCount()
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.
|
java.util.List<KeyToPath> |
getItemsList()
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.
|
KeyToPathOrBuilder |
getItemsOrBuilder(int index)
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.
|
java.util.List<? extends KeyToPathOrBuilder> |
getItemsOrBuilderList()
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.
|
java.lang.String |
getSecretName()
Name of the secret in the pod's namespace to use.
|
com.google.protobuf.ByteString |
getSecretNameBytes()
Name of the secret in the pod's namespace to use.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecretVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecretVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecretVolumeSource.Builder |
mergeFrom(SecretVolumeSource other) |
SecretVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecretVolumeSource.Builder |
removeItems(int index)
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.
|
SecretVolumeSource.Builder |
setDefaultMode(int value)
Optional: mode bits to use on created files by default.
|
SecretVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SecretVolumeSource.Builder |
setItems(int index,
KeyToPath.Builder builderForValue)
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.
|
SecretVolumeSource.Builder |
setItems(int index,
KeyToPath value)
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.
|
SecretVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SecretVolumeSource.Builder |
setSecretName(java.lang.String value)
Name of the secret in the pod's namespace to use.
|
SecretVolumeSource.Builder |
setSecretNameBytes(com.google.protobuf.ByteString value)
Name of the secret in the pod's namespace to use.
|
SecretVolumeSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecretVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecretVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecretVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder mergeFrom(SecretVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretVolumeSource.Builder>java.io.IOExceptionpublic java.lang.String getSecretName()
Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets
optional string secretName = 1;getSecretName in interface SecretVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getSecretNameBytes()
Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets
optional string secretName = 1;getSecretNameBytes in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setSecretName(java.lang.String value)
Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets
optional string secretName = 1;public SecretVolumeSource.Builder clearSecretName()
Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets
optional string secretName = 1;public SecretVolumeSource.Builder setSecretNameBytes(com.google.protobuf.ByteString value)
Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets
optional string secretName = 1;public java.util.List<KeyToPath> getItemsList()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;getItemsList in interface SecretVolumeSourceOrBuilderpublic int getItemsCount()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;getItemsCount in interface SecretVolumeSourceOrBuilderpublic KeyToPath getItems(int index)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;getItems in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setItems(int index, KeyToPath value)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder setItems(int index, KeyToPath.Builder builderForValue)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder addItems(KeyToPath value)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder addItems(int index, KeyToPath value)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder addItems(KeyToPath.Builder builderForValue)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder addItems(int index, KeyToPath.Builder builderForValue)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder addAllItems(java.lang.Iterable<? extends KeyToPath> values)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder clearItems()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public SecretVolumeSource.Builder removeItems(int index)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public KeyToPath.Builder getItemsBuilder(int index)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public KeyToPathOrBuilder getItemsOrBuilder(int index)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;getItemsOrBuilder in interface SecretVolumeSourceOrBuilderpublic java.util.List<? extends KeyToPathOrBuilder> getItemsOrBuilderList()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;getItemsOrBuilderList in interface SecretVolumeSourceOrBuilderpublic KeyToPath.Builder addItemsBuilder()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public KeyToPath.Builder addItemsBuilder(int index)
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public java.util.List<KeyToPath.Builder> getItemsBuilderList()
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 '..'.
repeated .appscode.kubernetes.v1beta2.KeyToPath items = 2;public int getDefaultMode()
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. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
optional int32 defaultMode = 3;getDefaultMode in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setDefaultMode(int value)
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. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
optional int32 defaultMode = 3;public SecretVolumeSource.Builder clearDefaultMode()
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. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
optional int32 defaultMode = 3;public final SecretVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public final SecretVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>