Replies: 2 comments 2 replies
-
|
@cyberndj Hi! At the moment, dclint doesn’t support user-defined rules out of the box. I’ve been thinking about how to allow custom rule definitions, but haven’t yet landed on a simple and flexible solution that balances usability and maintainability. Do you have any ideas or preferences on how you'd like to define such rules? |
Beta Was this translation helpful? Give feedback.
-
|
I'd be interested in this feature too, although it's not very important for our workflow. My use case would be to forbid I quite like the second suggestion it looks intuitive to me. (ofc all that sounds like a lot of refactoring work) for completeness: I assume my rule would look like that: custom-rules:
no-container-name
description:
errors: Warning
action: not-exists
nodes:
- container_name |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy,
I'm currently running docker swarm....
Is it possible to create some custom rules? Example, each service in a stack should contain certain labels (for traefik in my case).
Ex. Each Service should contain ether one of the following items
-or-
where:
<$service> should be the same
<$aString> would be any string value
<$number> would be any number between 1 and 65535
Beta Was this translation helpful? Give feedback.
All reactions