stackabletech / agent

Stackable Agent - a kubelet written in Rust which uses systemd as its backend
Apache License 2.0
15 stars 9 forks source link

Pod image path is ignored #320

Open nightkr opened 2 years ago

nightkr commented 2 years ago

Currently, we write images of the format stackable/zookeeper:3.5.8, but (according to the logs) the agent only actually tries to resolve the package name zookeeper:3.5.8 against all repositories.

siegfriedweber commented 2 years ago

The image field contains an OCI reference. An OCI reference consists of a registry, a repository, and a tag. For instance, the OCI reference "stackable.tech/stackable/zookeeper:3.5.8" consists of the registry "stackable.tech", the repository "stackable/zookeeper", and the tag "3.5.8". The Stackable Agent ignores the registry and considers only the repository and the tag.

In your example "stackable/zookeeper:3.5.8", the registry "stackable" is discarded. The rest of the image path is taken into account.

The question is what a registry is in our scope. If it is a Stackable repository and the Stackable Agent would look up the package only in the specified repository then it would not be possible to create repositories dynamically.