Class V1CephFSVolumeSource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CephFSVolumeSource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(List<@NotNull String> monitors)
  • Method Details

    • getMonitors

      public List<@NotNull 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:
      the monitors property value
    • setMonitors

      public void setMonitors(List<@NotNull String> monitors)
      Set the monitors property value
      Parameters:
      monitors - property value to set
    • monitors

      public V1CephFSVolumeSource monitors(List<@NotNull String> monitors)
      Set monitors in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • addmonitorsItem

      public V1CephFSVolumeSource addmonitorsItem(String monitorsItem)
      Add an item to the monitors property in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • getPath

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

      public void setPath(String path)
      Set the path property value
      Parameters:
      path - property value to set
    • path

      public V1CephFSVolumeSource path(String path)
      Set path in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • getReadOnly

      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:
      the readOnly property value
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
      Parameters:
      readOnly - property value to set
    • readOnly

      public V1CephFSVolumeSource readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • getSecretFile

      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:
      the secretFile property value
    • setSecretFile

      public void setSecretFile(String secretFile)
      Set the secretFile property value
      Parameters:
      secretFile - property value to set
    • secretFile

      public V1CephFSVolumeSource secretFile(String secretFile)
      Set secretFile in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • getSecretRef

      public V1LocalObjectReference getSecretRef()
      Returns:
      the secretRef property value
    • setSecretRef

      public void setSecretRef(V1LocalObjectReference secretRef)
      Set the secretRef property value
      Parameters:
      secretRef - property value to set
    • secretRef

      public V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef)
      Set secretRef in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • getUser

      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:
      the user property value
    • setUser

      public void setUser(String user)
      Set the user property value
      Parameters:
      user - property value to set
    • user

      public V1CephFSVolumeSource user(String user)
      Set user in a chainable fashion.
      Returns:
      The same instance of V1CephFSVolumeSource for chaining.
    • 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