Enum PullPolicy

    • Enum Constant Detail

      • ALWAYS

        public static final PullPolicy ALWAYS
        Always pull the image and throw an error if the pull fails.
      • MISSING

        public static final PullPolicy MISSING
        Only pull the image when it does not exist in the local containers storage. Throw an error if no image is found and the pull fails.
      • NEVER

        public static final PullPolicy NEVER
        Never pull the image but use the one from the local containers storage. Throw an error when no image is found.
      • NEWER

        public static final PullPolicy NEWER
        Pull if the image on the registry is newer than the one in the local containers storage. An image is considered to be newer when the digests are different. Comparing the time stamps is prone to errors. Pull errors are suppressed if a local image was found.
    • Method Detail

      • values

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

        public static PullPolicy 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
      • getValue

        public String getValue()
        Returns the selected pullpolicy
        Returns:
        the selected pullpolicy