Enum HostPathVolumeType

    • Enum Constant Detail

      • DEFAULT

        @Stability(Stable)
        public static final HostPathVolumeType DEFAULT
        Empty string (default) is for backward compatibility, which means that no checks will be performed before mounting the hostPath volume.
      • DIRECTORY_OR_CREATE

        @Stability(Stable)
        public static final HostPathVolumeType DIRECTORY_OR_CREATE
        If nothing exists at the given path, an empty directory will be created there as needed with permission set to 0755, having the same group and ownership with Kubelet.
      • DIRECTORY

        @Stability(Stable)
        public static final HostPathVolumeType DIRECTORY
        A directory must exist at the given path.
      • FILE_OR_CREATE

        @Stability(Stable)
        public static final HostPathVolumeType FILE_OR_CREATE
        If nothing exists at the given path, an empty file will be created there as needed with permission set to 0644, having the same group and ownership with Kubelet.
      • FILE

        @Stability(Stable)
        public static final HostPathVolumeType FILE
        A file must exist at the given path.
      • SOCKET

        @Stability(Stable)
        public static final HostPathVolumeType SOCKET
        A UNIX socket must exist at the given path.
      • CHAR_DEVICE

        @Stability(Stable)
        public static final HostPathVolumeType CHAR_DEVICE
        A character device must exist at the given path.
      • BLOCK_DEVICE

        @Stability(Stable)
        public static final HostPathVolumeType BLOCK_DEVICE
        A block device must exist at the given path.
    • Method Detail

      • values

        public static HostPathVolumeType[] 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 (HostPathVolumeType c : HostPathVolumeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HostPathVolumeType 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