Add targeting options to config checks (similar to subordinate rules)
Bug #1944406 reported by
Jose Guedez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Lint |
Fix Released
|
High
|
Jose Guedez |
Bug Description
Currently config rules have the following form:
config:
<charm>:
<config_item>:
<operator>: <ref_value>
It would be helpful to have an optional condition "host-suffixes" similar to the conditions available to the subordinate checks, to target specific applications in deployments:
nrpe:
where: container aware
host-suffixes: [host, physical, guest]
container-
This would help avoid false positives by narrowing checks as necessary (e.g. skip interface bonding checks in applications targeting containers)
Related branches
~jfguedez/juju-lint:bug/1944406
- Juju Lint maintainers: Pending requested
-
Diff: 190 lines (+102/-15)3 files modifiedcontrib/includes/base.yaml (+2/-0)
jujulint/lint.py (+32/-15)
tests/test_jujulint.py (+68/-0)
~jfguedez/juju-lint:bug/1944406
Superseded
for merging
into
juju-lint:master
- Juju Lint maintainers: Pending requested
-
Diff: 190 lines (+102/-15)3 files modifiedcontrib/includes/base.yaml (+2/-0)
jujulint/lint.py (+32/-15)
tests/test_jujulint.py (+68/-0)
summary: |
- Add targetting options to config checks (similar to subordinate rules) + Add targeting options to config checks (similar to subordinate rules) |
Changed in juju-lint: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Jose Guedez (jfguedez) |
tags: | added: bseng-146 |
Changed in juju-lint: | |
status: | In Progress → Fix Committed |
Changed in juju-lint: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.