-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat(analyzer): add certificate analyzer #1128
Conversation
f471774
to
7729702
Compare
7729702
to
8142669
Compare
fb7ad7d
to
d1d0581
Compare
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.
overall LGTM, haven't tested it locally but the tests exist and are passing according to GitHub :)
just a few spelling fixes to apply 👍
pkg/analyze/certificates.go
Outdated
func (a *AnalyzeCertificates) Title() string { | ||
title := a.analyzer.CheckName | ||
if title == "" { | ||
return "Cerfiticates Verification" |
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.
return "Cerfiticates Verification" | |
return "Certificates Verification" |
pkg/analyze/certificates_test.go
Outdated
IsPass: true, | ||
IsWarn: false, | ||
IsFail: false, | ||
Title: "Cerfiticates Verification", |
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.
Title: "Cerfiticates Verification", | |
Title: "Certificates Verification", |
pkg/analyze/certificates_test.go
Outdated
IsPass: false, | ||
IsWarn: false, | ||
IsFail: true, | ||
Title: "Cerfiticates Verification", |
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.
Title: "Cerfiticates Verification", | |
Title: "Certificates Verification", |
pkg/analyze/certificates_test.go
Outdated
IsPass: false, | ||
IsWarn: true, | ||
IsFail: false, | ||
Title: "Cerfiticates Verification", |
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.
Title: "Cerfiticates Verification", | |
Title: "Certificates Verification", |
pkg/analyze/certificates.go
Outdated
return a.analyzeAnalyzeCertificatesResult(collectorCertificates, analyzer.Outcomes) | ||
} | ||
|
||
func (a *AnalyzeCertificates) analyzeAnalyzeCertificatesResult(certifcates []collect.CertCollection, outcomes []*troubleshootv1beta2.Outcome) ([]*AnalyzeResult, error) { |
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.
func (a *AnalyzeCertificates) analyzeAnalyzeCertificatesResult(certifcates []collect.CertCollection, outcomes []*troubleshootv1beta2.Outcome) ([]*AnalyzeResult, error) { | |
func (a *AnalyzeCertificates) analyzeAnalyzeCertificatesResult(certificates []collect.CertCollection, outcomes []*troubleshootv1beta2.Outcome) ([]*AnalyzeResult, error) { |
pkg/analyze/certificates.go
Outdated
func (a *AnalyzeCertificates) analyzeAnalyzeCertificatesResult(certifcates []collect.CertCollection, outcomes []*troubleshootv1beta2.Outcome) ([]*AnalyzeResult, error) { | ||
var results []*AnalyzeResult | ||
|
||
for _, cert := range certifcates { |
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.
for _, cert := range certifcates { | |
for _, cert := range certificates { |
d1d0581
to
355f87e
Compare
Description, Motivation and Context
issue: #762
Support Bundle Yaml
Result Json
Checklist
Does this PR introduce a breaking change?