• 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Improved OCI artifact handling and prevented unintended deletion

      This update introduces a new pullPolicy configuration to enhance support for floating tags in OCI artifacts. The pullPolicy setting provides more consistent behavior across platforms handling image containers and offers two options:

      - Always: Compares the image digest in the remote registry and downloads the artifact if it has changed, even if the plugin was previously downloaded.
      - IfNotPresent: Downloads the artifact only if it is not already present in the dynamic-plugins-root folder, without checking image digests.

      The pullPolicy setting is also applied to the NPM downloading method, though Always will download the remote artifact without a digest check. While the existing forceDownload option remains functional, pullPolicy takes precedence, and forceDownload may be deprecated in the future.

      Additionally, this update fixes an issue where OCI artifacts were unintentionally deleted during the cleanup phase if only the URL was modified.
      Show
      = Improved OCI artifact handling and prevented unintended deletion This update introduces a new pullPolicy configuration to enhance support for floating tags in OCI artifacts. The pullPolicy setting provides more consistent behavior across platforms handling image containers and offers two options: - Always: Compares the image digest in the remote registry and downloads the artifact if it has changed, even if the plugin was previously downloaded. - IfNotPresent: Downloads the artifact only if it is not already present in the dynamic-plugins-root folder, without checking image digests. The pullPolicy setting is also applied to the NPM downloading method, though Always will download the remote artifact without a digest check. While the existing forceDownload option remains functional, pullPolicy takes precedence, and forceDownload may be deprecated in the future. Additionally, this update fixes an issue where OCI artifacts were unintentionally deleted during the cleanup phase if only the URL was modified.
    • Bug Fix
    • Done
    • RHDH Dynamic Plugins 3269, RHDH Dynamic Plugins 3270, RHDH Dynamic Plugins 3271

      Description of problem:

      Currently when using a floating tag for an OCI artifact holding plugins the forceDownload flag needs to be set to true as install-dynamic-plugins.py only stores a hash of the config object and uses this to determine when to re-download an installed plugin.

      We could use skopeo inspect to fetch the image digest from the registry and save that along with the config hash when downloading a plugin in an OCI artifact. Rather than storing a separate file for the digest, maybe it's worth merging this and the config hash into a slightly more general install manifest file.

      Steps to Reproduce

      Use a plugin on an OCI artifact with a floating tag. After installing the plugin into RHDH, make a change to the plugin, rebuild and push a new image for the tag.

      Actual results:

      When running install-dynamic-plugins the OCI artifact download will be skipped.

      Expected results:

      When running install-dynamic-plugins the OCI artifact download would be downloaded as the image has changed

      Reproducibility (Always/Intermittent/Only Once):

      always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              stlewis_2 Stan Lewis
              stlewis_2 Stan Lewis
              RHIDP - Dynamic Plugins
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: