Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add support for read_only field of mounts and binds #89

Merged
merged 8 commits into from
May 3, 2024

Conversation

linkdd
Copy link
Collaborator

@linkdd linkdd commented May 2, 2024

Decision Record

Counterpart of SaaShup/netbox-docker-plugin#118

By default, we used to create mounts (from volumes or binds) with "read write" permissions. Now, we use the new field read_only from the Mount and Bind models of the Netbox plugin.

Changes

  • ✨ Set read_only field on Mount and Bind in Netbox using the HostConfig.Mounts[].ReadOnly property
  • ✨ Set the HostConfig.Mounts[].ReadOnly property based on the read_only field of Mount and Bind models
  • 🔥 Remove HostConfig.Mounts[].RW field (does not exist in Docker Engine API)
  • 🔥 Remove HostConfig.Mounts[].Mode field (does not exist in Docker Engine API)

@linkdd linkdd requested review from fanshan, lvenier and dzove855 May 2, 2024 21:32
@linkdd linkdd self-assigned this May 2, 2024
@linkdd linkdd force-pushed the mount-bind-read_only branch from 4dc6a43 to 58bbfb0 Compare May 3, 2024 12:44
Copy link
Contributor

@lvenier lvenier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next time do it in one commit 🤣

@lvenier lvenier merged commit 9fae098 into main May 3, 2024
1 check passed
@lvenier lvenier deleted the mount-bind-read_only branch May 3, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants