Our current init container throws permissions error when used through this plugin. eg.
[2023-01-10T21:22:13Z TRACE cincinnati::plugins::internal::graph_builder::dkrv2_openshift_secondary_metadata_scraper::plugin] Using data directory TempDir { path: "/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR" } for tag latest [2023-01-10T21:22:45Z ERROR graph_builder::graph] io error [2023-01-10T21:22:45Z ERROR graph_builder::graph] failed to unpack `/private/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR/usr/lib/binfmt.d` [2023-01-10T21:22:45Z ERROR graph_builder::graph] Permission denied (os error 13) when creating dir /private/tmp/dkrv2chk/.tmpnxw5Zi/.tmpkMG0JR/usr/lib/binfmt.d
We need to fix this issue of extracting the container inorder to use the dkrv2 plugin in cincinnati.
Potential Solutions:
- Fix permission issues and test with ubi/ubi-micro containers
- Or, create a new function to extract only a specific directory from container
Definition of Done:
- Init/non-init Containers or Passed directories in containers are extracted without permissions issue in dkregistry.
- blocks
-
OTA-859 [cincinnati] Start using dkrv2-secondary-metadata-scrape plugin
- Code Review
- links to