[x] I have updated/added any relevant documentation
Description
Adds the following flag to the polaris audit subcommand:
--quiet Suppress the 'upload to Insights' prompt.
What's the goal of this PR?
What changes did you make?
# before
go run main.go audit --audit-path ~/git/fairwinds/charts/stable/insights-agent/insights-manifest.yaml --only-show-failed-tests true --format=pretty
...
Pod insights-insights-agent-delete-jobs
metadataAndNameMismatched π¬ Warning
Reliability - Label app.kubernetes.io/name must match metadata.name
priorityClassNotSet π¬ Warning
Reliability - Priority class should be set
topologySpreadConstraint π¬ Warning
Reliability - Pod should be configured with a valid topology spread constraint
automountServiceAccountToken π¬ Warning
Security - The ServiceAccount will be automounted
missingNetworkPolicy π¬ Warning
Security - A NetworkPolicy should match pod labels and contain applied egress and ingress rules
Container test
livenessProbeMissing π¬ Warning
Reliability - Liveness probe should be configured
readinessProbeMissing π¬ Warning
Reliability - Readiness probe should be configured
π Upload your Polaris findings to Fairwinds Insights to see remediation advice, add teammates, integrate with Slack or Jira, and more:
# after
β polaris git:(8.3.0) β go run main.go audit --audit-path ~/git/fairwinds/charts/stable/insights-agent/insights-manifest.yaml --only-show-failed-tests true --format=pretty --quiet
...
Pod insights-insights-agent-delete-jobs
metadataAndNameMismatched π¬ Warning
Reliability - Label app.kubernetes.io/name must match metadata.name
automountServiceAccountToken π¬ Warning
Security - The ServiceAccount will be automounted
missingNetworkPolicy π¬ Warning
Security - A NetworkPolicy should match pod labels and contain applied egress and ingress rules
priorityClassNotSet π¬ Warning
Reliability - Priority class should be set
topologySpreadConstraint π¬ Warning
Reliability - Pod should be configured with a valid topology spread constraint
Container test
livenessProbeMissing π¬ Warning
Reliability - Liveness probe should be configured
readinessProbeMissing π¬ Warning
Reliability - Readiness probe should be configured
What alternative solution should we consider, if any?
This PR addresses #1011
Checklist
Description
Adds the following flag to the
polaris audit
subcommand:What's the goal of this PR?
What changes did you make?
What alternative solution should we consider, if any?