Class RBDVolumeSource

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class RBDVolumeSource
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
    • Constructor Detail

      • RBDVolumeSource

        public RBDVolumeSource​(java.lang.String fsType,
                               @NonNull
                               @NonNull java.lang.String image,
                               java.lang.String keyring,
                               @NonNull
                               @NonNull java.util.List<java.lang.String> monitors,
                               java.lang.String pool,
                               java.lang.Boolean readOnly,
                               LocalObjectReference secretRef,
                               java.lang.String user)
      • RBDVolumeSource

        public RBDVolumeSource()
    • Method Detail

      • getFsType

        public java.lang.String getFsType()
        Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
      • getImage

        @NonNull
        public @NonNull java.lang.String getImage()
        The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • getKeyring

        public java.lang.String getKeyring()
        Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • getMonitors

        @NonNull
        public @NonNull java.util.List<java.lang.String> getMonitors()
        A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • getPool

        public java.lang.String getPool()
        The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • getReadOnly

        public java.lang.Boolean getReadOnly()
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • getUser

        public java.lang.String getUser()
        The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setFsType

        public void setFsType​(java.lang.String fsType)
        Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
      • setImage

        public void setImage​(@NonNull
                             @NonNull java.lang.String image)
        The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setKeyring

        public void setKeyring​(java.lang.String keyring)
        Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setMonitors

        public void setMonitors​(@NonNull
                                @NonNull java.util.List<java.lang.String> monitors)
        A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setPool

        public void setPool​(java.lang.String pool)
        The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setReadOnly

        public void setReadOnly​(java.lang.Boolean readOnly)
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • setUser

        public void setUser​(java.lang.String user)
        The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object