Class V1CephFSVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CephFSVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CephFSVolumeSource
extends Object
Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMonitorsItem
(String monitorsItem) boolean
static V1CephFSVolumeSource
Create an instance of V1CephFSVolumeSource given an JSON stringmonitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itgetPath()
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /readOnly is Optional: Defaults to false (read/write).secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itGet secretRefgetUser()
user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itint
hashCode()
secretFile
(String secretFile) secretRef
(V1LocalObjectReference secretRef) void
setMonitors
(List<String> monitors) void
void
setReadOnly
(Boolean readOnly) void
setSecretFile
(String secretFile) void
setSecretRef
(V1LocalObjectReference secretRef) void
toJson()
Convert an instance of V1CephFSVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MONITORS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_FILE
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CephFSVolumeSource
public V1CephFSVolumeSource()
-
-
Method Details
-
monitors
-
addMonitorsItem
-
getMonitors
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- monitors
-
setMonitors
-
path
-
getPath
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /- Returns:
- path
-
setPath
-
readOnly
-
getReadOnly
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- readOnly
-
setReadOnly
-
secretFile
-
getSecretFile
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- secretFile
-
setSecretFile
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
user
-
getUser
user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1CephFSVolumeSource
-
fromJson
Create an instance of V1CephFSVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CephFSVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1CephFSVolumeSource
-
toJson
Convert an instance of V1CephFSVolumeSource to an JSON string- Returns:
- JSON string
-