Class V1CephFSPersistentVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource extends Object
Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1CephFSPersistentVolumeSource

      public V1CephFSPersistentVolumeSource()
  • Method Details

    • monitors

      public V1CephFSPersistentVolumeSource monitors(List<String> monitors)
    • addMonitorsItem

      public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem)
    • getMonitors

      @Nonnull public List<String> 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

      public void setMonitors(List<String> monitors)
    • path

    • getPath

      @Nullable public String getPath()
      path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
      Returns:
      path
    • setPath

      public void setPath(String path)
    • readOnly

      public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean 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

      public void setReadOnly(Boolean readOnly)
    • secretFile

      public V1CephFSPersistentVolumeSource secretFile(String secretFile)
    • getSecretFile

      @Nullable public String 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

      public void setSecretFile(String secretFile)
    • secretRef

      public V1CephFSPersistentVolumeSource secretRef(V1SecretReference secretRef)
    • getSecretRef

      @Nullable public V1SecretReference getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(V1SecretReference secretRef)
    • user

    • getUser

      @Nullable public String 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

      public void setUser(String user)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 V1CephFSPersistentVolumeSource
    • fromJson

      public static V1CephFSPersistentVolumeSource fromJson(String jsonString) throws IOException
      Create an instance of V1CephFSPersistentVolumeSource given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1CephFSPersistentVolumeSource
      Throws:
      IOException - if the JSON string is invalid with respect to V1CephFSPersistentVolumeSource
    • toJson

      public String toJson()
      Convert an instance of V1CephFSPersistentVolumeSource to an JSON string
      Returns:
      JSON string