Enum PersistentVolumeMode

    • Enum Constant Detail

      • FILE_SYSTEM

        @Stability(Stable)
        public static final PersistentVolumeMode FILE_SYSTEM
        Volume is ounted into Pods into a directory.

        If the volume is backed by a block device and the device is empty, Kubernetes creates a filesystem on the device before mounting it for the first time.

      • BLOCK

        @Stability(Stable)
        public static final PersistentVolumeMode BLOCK
        Use a volume as a raw block device.

        Such volume is presented into a Pod as a block device, without any filesystem on it. This mode is useful to provide a Pod the fastest possible way to access a volume, without any filesystem layer between the Pod and the volume. On the other hand, the application running in the Pod must know how to handle a raw block device

    • Method Detail

      • values

        public static PersistentVolumeMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PersistentVolumeMode c : PersistentVolumeMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersistentVolumeMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null