Skip to content
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

Add helm-skip-tests flag #986

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Add helm-skip-tests flag #986

merged 2 commits into from
Aug 25, 2023

Conversation

mikutas
Copy link
Contributor

@mikutas mikutas commented Aug 24, 2023

This PR fixes #985

Checklist

  • I have signed the CLA
  • I have updated/added any relevant documentation

Description

What's the goal of this PR?

not to render and audit test manifests

What changes did you make?

add helm-skip-tests flag to audit command

What alternative solution should we consider, if any?

@@ -72,6 +73,7 @@ func init() {
auditCmd.PersistentFlags().StringVar(&resourceToAudit, "resource", "", "Audit a specific resource, in the format namespace/kind/version/name, e.g. nginx-ingress/Deployment.apps/v1/default-backend.")
auditCmd.PersistentFlags().StringVar(&helmChart, "helm-chart", "", "Will fill out Helm template")
auditCmd.PersistentFlags().StringSliceVar(&helmValues, "helm-values", []string{}, "Optional flag to add helm values")
auditCmd.PersistentFlags().BoolVar(&helmSkipTests, "helm-skip-tests", false, "Corresponds to --skip-tests of helm template")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should default to true?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think false is a fine default here. I prefer to default to including all the manifests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think true can be convenient (for me), but followed helm's default

@sudermanjr sudermanjr merged commit 09525d0 into FairwindsOps:master Aug 25, 2023
4 checks passed
@mikutas mikutas deleted the 985 branch September 18, 2023 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support --skip-tests for helm template
3 participants