Package k8s.io.api.core.v1
Class Generated.SecretVolumeSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
- k8s.io.api.core.v1.Generated.SecretVolumeSource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.SecretVolumeSourceOrBuilder
- Enclosing class:
- Generated.SecretVolumeSource
public static final class Generated.SecretVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder> implements Generated.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 typek8s.io.api.core.v1.SecretVolumeSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.SecretVolumeSource.BuilderaddAllItems(Iterable<? extends Generated.KeyToPath> values)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.Generated.SecretVolumeSource.BuilderaddItems(int index, Generated.KeyToPath value)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.Generated.SecretVolumeSource.BuilderaddItems(int index, Generated.KeyToPath.Builder builderForValue)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.Generated.SecretVolumeSource.BuilderaddItems(Generated.KeyToPath value)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.Generated.SecretVolumeSource.BuilderaddItems(Generated.KeyToPath.Builder builderForValue)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.Generated.KeyToPath.BuilderaddItemsBuilder()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.Generated.KeyToPath.BuilderaddItemsBuilder(int index)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.Generated.SecretVolumeSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SecretVolumeSourcebuild()Generated.SecretVolumeSourcebuildPartial()Generated.SecretVolumeSource.Builderclear()Generated.SecretVolumeSource.BuilderclearDefaultMode()defaultMode is Optional: mode bits used to set permissions on created files by default.Generated.SecretVolumeSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.SecretVolumeSource.BuilderclearItems()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.Generated.SecretVolumeSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.SecretVolumeSource.BuilderclearOptional()optional field specify whether the Secret or its keys must be defined +optionalGenerated.SecretVolumeSource.BuilderclearSecretName()secretName is the name of the secret in the pod's namespace to use.Generated.SecretVolumeSource.Builderclone()Generated.SecretVolumeSourcegetDefaultInstanceForType()intgetDefaultMode()defaultMode is Optional: mode bits used to set permissions on created files by default.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.KeyToPathgetItems(int index)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.Generated.KeyToPath.BuildergetItemsBuilder(int index)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.List<Generated.KeyToPath.Builder>getItemsBuilderList()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.intgetItemsCount()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.List<Generated.KeyToPath>getItemsList()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.Generated.KeyToPathOrBuildergetItemsOrBuilder(int index)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.List<? extends Generated.KeyToPathOrBuilder>getItemsOrBuilderList()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.booleangetOptional()optional field specify whether the Secret or its keys must be defined +optionalStringgetSecretName()secretName is the name of the secret in the pod's namespace to use.com.google.protobuf.ByteStringgetSecretNameBytes()secretName is the name of the secret in the pod's namespace to use.booleanhasDefaultMode()defaultMode is Optional: mode bits used to set permissions on created files by default.booleanhasOptional()optional field specify whether the Secret or its keys must be defined +optionalbooleanhasSecretName()secretName is the name of the secret in the pod's namespace to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.SecretVolumeSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.SecretVolumeSource.BuildermergeFrom(com.google.protobuf.Message other)Generated.SecretVolumeSource.BuildermergeFrom(Generated.SecretVolumeSource other)Generated.SecretVolumeSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.SecretVolumeSource.BuilderremoveItems(int index)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.Generated.SecretVolumeSource.BuildersetDefaultMode(int value)defaultMode is Optional: mode bits used to set permissions on created files by default.Generated.SecretVolumeSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SecretVolumeSource.BuildersetItems(int index, Generated.KeyToPath value)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.Generated.SecretVolumeSource.BuildersetItems(int index, Generated.KeyToPath.Builder builderForValue)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.Generated.SecretVolumeSource.BuildersetOptional(boolean value)optional field specify whether the Secret or its keys must be defined +optionalGenerated.SecretVolumeSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.SecretVolumeSource.BuildersetSecretName(String value)secretName is the name of the secret in the pod's namespace to use.Generated.SecretVolumeSource.BuildersetSecretNameBytes(com.google.protobuf.ByteString value)secretName is the name of the secret in the pod's namespace to use.Generated.SecretVolumeSource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
clear
public Generated.SecretVolumeSource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
getDefaultInstanceForType
public Generated.SecretVolumeSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.SecretVolumeSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.SecretVolumeSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.SecretVolumeSource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
setField
public Generated.SecretVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
clearField
public Generated.SecretVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
clearOneof
public Generated.SecretVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
setRepeatedField
public Generated.SecretVolumeSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
addRepeatedField
public Generated.SecretVolumeSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
mergeFrom
public Generated.SecretVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.SecretVolumeSource.Builder>
-
mergeFrom
public Generated.SecretVolumeSource.Builder mergeFrom(Generated.SecretVolumeSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
mergeFrom
public Generated.SecretVolumeSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.SecretVolumeSource.Builder>- Throws:
IOException
-
hasSecretName
public boolean hasSecretName()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
hasSecretNamein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the secretName field is set.
-
getSecretName
public String getSecretName()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
getSecretNamein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The secretName.
-
getSecretNameBytes
public com.google.protobuf.ByteString getSecretNameBytes()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Specified by:
getSecretNameBytesin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The bytes for secretName.
-
setSecretName
public Generated.SecretVolumeSource.Builder setSecretName(String value)
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Parameters:
value- The secretName to set.- Returns:
- This builder for chaining.
-
clearSecretName
public Generated.SecretVolumeSource.Builder clearSecretName()
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Returns:
- This builder for chaining.
-
setSecretNameBytes
public Generated.SecretVolumeSource.Builder setSecretNameBytes(com.google.protobuf.ByteString value)
secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
optional string secretName = 1;- Parameters:
value- The bytes for secretName to set.- Returns:
- This builder for chaining.
-
getItemsList
public List<Generated.KeyToPath> getItemsList()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsListin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItemsCount
public int getItemsCount()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsCountin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItems
public Generated.KeyToPath getItems(int index)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsin interfaceGenerated.SecretVolumeSourceOrBuilder
-
setItems
public Generated.SecretVolumeSource.Builder setItems(int index, Generated.KeyToPath value)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
setItems
public Generated.SecretVolumeSource.Builder setItems(int index, Generated.KeyToPath.Builder builderForValue)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addItems
public Generated.SecretVolumeSource.Builder addItems(Generated.KeyToPath value)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addItems
public Generated.SecretVolumeSource.Builder addItems(int index, Generated.KeyToPath value)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addItems
public Generated.SecretVolumeSource.Builder addItems(Generated.KeyToPath.Builder builderForValue)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addItems
public Generated.SecretVolumeSource.Builder addItems(int index, Generated.KeyToPath.Builder builderForValue)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addAllItems
public Generated.SecretVolumeSource.Builder addAllItems(Iterable<? extends Generated.KeyToPath> values)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
clearItems
public Generated.SecretVolumeSource.Builder clearItems()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
removeItems
public Generated.SecretVolumeSource.Builder removeItems(int index)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
getItemsBuilder
public Generated.KeyToPath.Builder getItemsBuilder(int index)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
getItemsOrBuilder
public Generated.KeyToPathOrBuilder getItemsOrBuilder(int index)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsOrBuilderin interfaceGenerated.SecretVolumeSourceOrBuilder
-
getItemsOrBuilderList
public List<? extends Generated.KeyToPathOrBuilder> getItemsOrBuilderList()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;- Specified by:
getItemsOrBuilderListin interfaceGenerated.SecretVolumeSourceOrBuilder
-
addItemsBuilder
public Generated.KeyToPath.Builder addItemsBuilder()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
addItemsBuilder
public Generated.KeyToPath.Builder addItemsBuilder(int index)
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
getItemsBuilderList
public List<Generated.KeyToPath.Builder> getItemsBuilderList()
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 '..'. +optional +listType=atomic
repeated .k8s.io.api.core.v1.KeyToPath items = 2;
-
hasDefaultMode
public boolean hasDefaultMode()
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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
optional int32 defaultMode = 3;- Specified by:
hasDefaultModein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the defaultMode field is set.
-
getDefaultMode
public int getDefaultMode()
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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
optional int32 defaultMode = 3;- Specified by:
getDefaultModein interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The defaultMode.
-
setDefaultMode
public Generated.SecretVolumeSource.Builder setDefaultMode(int value)
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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
optional int32 defaultMode = 3;- Parameters:
value- The defaultMode to set.- Returns:
- This builder for chaining.
-
clearDefaultMode
public Generated.SecretVolumeSource.Builder clearDefaultMode()
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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
optional int32 defaultMode = 3;- Returns:
- This builder for chaining.
-
hasOptional
public boolean hasOptional()
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Specified by:
hasOptionalin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- Whether the optional field is set.
-
getOptional
public boolean getOptional()
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Specified by:
getOptionalin interfaceGenerated.SecretVolumeSourceOrBuilder- Returns:
- The optional.
-
setOptional
public Generated.SecretVolumeSource.Builder setOptional(boolean value)
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Parameters:
value- The optional to set.- Returns:
- This builder for chaining.
-
clearOptional
public Generated.SecretVolumeSource.Builder clearOptional()
optional field specify whether the Secret or its keys must be defined +optional
optional bool optional = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.SecretVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
mergeUnknownFields
public final Generated.SecretVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecretVolumeSource.Builder>
-
-