Package io.fabric8.kubernetes.api.model
Class SecretEnvSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.SecretEnvSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SecretEnvSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SecretEnvSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<SecretEnvSourceBuilder>, KubernetesResource
SecretEnvSource selects a Secret to populate the environment variables with.The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecretEnvSource()
No args constructor for use in serializationSecretEnvSource(String name, Boolean optional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretEnvSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getName()
Name of the referent.Boolean
getOptional()
Specify whether the Secret must be definedvoid
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setName(String name)
Name of the referent.void
setOptional(Boolean optional)
Specify whether the Secret must be definedSecretEnvSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getName
public String getName()
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
setName
public void setName(String name)
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-
getOptional
public Boolean getOptional()
Specify whether the Secret must be defined
-
setOptional
public void setOptional(Boolean optional)
Specify whether the Secret must be defined
-
edit
public SecretEnvSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<SecretEnvSourceBuilder>
-
toBuilder
public SecretEnvSourceBuilder toBuilder()
-
-