Class V1CephFSVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[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.
  • Field Details

  • Constructor Details

    • V1CephFSVolumeSource

      public V1CephFSVolumeSource()
  • Method Details

    • monitors

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

      public V1CephFSVolumeSource addMonitorsItem(String monitorsItem)
    • getMonitors

      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

      public V1CephFSVolumeSource path(String 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 V1CephFSVolumeSource 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 V1CephFSVolumeSource 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 V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef)
    • getSecretRef

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

      public void setSecretRef(V1LocalObjectReference secretRef)
    • user

      public V1CephFSVolumeSource user(String 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