-
Notifications
You must be signed in to change notification settings - Fork 507
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
changes for argocd integration #724
changes for argocd integration #724
Conversation
patilpankaj212
commented
May 3, 2021
- modify Dockerfile to add a folder .ssh in /home/terrascan. This folder will be used to place ssh keys, ssh config and known_hosts required for api server to download repositories.
- modify the resources skipping for kubernetes
- modify response code of api server's remote repo scan response, when the result contains admission controller denied violations.
e76cea4
to
8bb60a2
Compare
Codecov Report
@@ Coverage Diff @@
## master #724 +/- ##
==========================================
- Coverage 73.86% 73.18% -0.69%
==========================================
Files 110 110
Lines 3176 3170 -6
==========================================
- Hits 2346 2320 -26
- Misses 652 668 +16
- Partials 178 182 +4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One very minor change requested.
skipRules := make([]output.SkipRule, 0) | ||
err := json.Unmarshal([]byte(rules), &skipRules) | ||
if err != nil { | ||
zap.S().Debugf("terrascanSkip rules '%s' cannot be unmarshalled to json", rules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zap.S().Debugf("terrascanSkip rules '%s' cannot be unmarshalled to json", rules) | |
zap.S().Debugf("json string %s cannot be unmarshalled to [ ]output.SkipRules struct schema", rules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Devang's comment is technically accurate, but not sure if that much detail would be useful to average user, or confusing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @jlk. This change will not be informative to most users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug is also used by us developers.. to diagnose what went wrong. Will ease it for us to help people reporting bugs and other issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM. Note the 2 comments, but not requiring any changes...
skipRules := make([]output.SkipRule, 0) | ||
err := json.Unmarshal([]byte(rules), &skipRules) | ||
if err != nil { | ||
zap.S().Debugf("terrascanSkip rules '%s' cannot be unmarshalled to json", rules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Devang's comment is technically accurate, but not sure if that much detail would be useful to average user, or confusing?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it! :)