Closed qiell closed 5 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
app/api_topology.go | 4 | 5 | 80.0% | ||
prog/probe.go | 0 | 1 | 0.0% | ||
render/persistentvolume.go | 0 | 1 | 0.0% | ||
probe/probe.go | 10 | 13 | 76.92% | ||
report/controls.go | 0 | 7 | 0.0% | ||
render/detailed/node.go | 4 | 33 | 12.12% | ||
<!-- | Total: | 58 | 100 | 58.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
render/detailed/detailed.codecgen.go | 1786 | 29.56% | ||
report/report.codecgen.go | 2586 | 35.73% | ||
<!-- | Total: | 4372 | --> |
Totals | |
---|---|
Change from base Build 1357: | 0.03% |
Covered Lines: | 14649 |
Relevant Lines: | 54748 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
app/api_topology.go | 4 | 5 | 80.0% | ||
prog/probe.go | 0 | 1 | 0.0% | ||
render/persistentvolume.go | 0 | 1 | 0.0% | ||
probe/probe.go | 10 | 13 | 76.92% | ||
report/controls.go | 0 | 7 | 0.0% | ||
render/detailed/node.go | 4 | 33 | 12.12% | ||
<!-- | Total: | 58 | 100 | 58.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
render/detailed/detailed.codecgen.go | 1786 | 29.56% | ||
report/report.codecgen.go | 2586 | 35.73% | ||
<!-- | Total: | 4372 | --> |
Totals | |
---|---|
Change from base Build 1357: | 0.03% |
Covered Lines: | 14649 |
Relevant Lines: | 54748 |
Add support to disable admin controls
Read user kind header and filter the controls This PR will read the header
x-api-user-kind
from request and check if it isreadAdmin
or not. If it is the readAdmin, then it will filter all the admin controls else it will provide all the controls.