SaaShup / netbox-docker-plugin

Netbox Docker Plugin
https://saashup.com
BSD 3-Clause "New" or "Revised" License
64 stars 4 forks source link

add support for config context in volumes #95

Open dzove855 opened 7 months ago

dzove855 commented 7 months ago
Netbox version Agent version Docker API Version
v3.6.9 / /

Actual Behavior

There is no way to add config context to be mounted inside a container

Desired Behavior

An new type should be added for volumes, which we can use inside the agent to map mount a config context inside a container

Example of use cases:

Expected structure: Destination path of the file Config context Driver (something like configmap or just configcontext)

lvenier commented 5 months ago

Would you plan to keep context on the volume itself as per below ?

buzko@lovespizza:~$ docker volume create dzove --label country=croatia,luxembourg --label birthday=01/01/1970
dzove
buzko@lovespizza:~$ docker inspect dzove
[
    {
        "CreatedAt": "2024-05-06T16:28:20+02:00",
        "Driver": "local",
        "Labels": {
            "birthday": "01/01/1970",
            "country": "croatia,luxembourg"
        },
        "Mountpoint": "/var/lib/docker/volumes/dzove/_data",
        "Name": "dzove",
        "Options": null,
        "Scope": "local"
    }
]

if not "add host" will make you lose that information