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

Adds support for Helm v3 #377

Merged
merged 9 commits into from
Nov 12, 2020
Merged

Conversation

williepaul
Copy link
Contributor

@williepaul williepaul commented Nov 11, 2020

  • supports loading of helm v3 charts via the IaC dir command (IaC file is invalid)
  • adds default IaC versions for all IaC types
  • adds unit tests
  • adds ability to properly specify default IaC version for a given IaC type

Closes #353

@codecov
Copy link

codecov bot commented Nov 11, 2020

Codecov Report

Merging #377 (825172a) into master (d375f0e) will increase coverage by 1.63%.
The diff coverage is 85.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #377      +/-   ##
==========================================
+ Coverage   64.26%   65.90%   +1.63%     
==========================================
  Files          76       80       +4     
  Lines        1679     1830     +151     
==========================================
+ Hits         1079     1206     +127     
- Misses        505      521      +16     
- Partials       95      103       +8     
Impacted Files Coverage Δ
pkg/iac-providers/kubernetes/v1/normalize.go 74.46% <ø> (ø)
pkg/policy/cloud-providers.go 100.00% <ø> (ø)
pkg/writer/yaml.go 100.00% <ø> (ø)
pkg/iac-providers/helm/v3/load-dir.go 84.93% <84.93%> (ø)
pkg/iac-providers/helm.go 100.00% <100.00%> (ø)
pkg/iac-providers/helm/v3/load-file.go 100.00% <100.00%> (ø)
pkg/iac-providers/kubernetes.go 100.00% <100.00%> (ø)
pkg/iac-providers/kubernetes/v1/load-file.go 76.00% <100.00%> (ø)
pkg/iac-providers/providers.go 100.00% <100.00%> (ø)
pkg/iac-providers/register.go 66.66% <100.00%> (-33.34%) ⬇️
... and 7 more

Willie Sana added 6 commits November 11, 2020 16:14
- supports loading of helm v3 charts via the iac dir command (iac file is invalid)
- adds default iac versions for all iac types
- adds unit tests
- adds ability to properly specify default iac version for a given iac type
- make sure empty directories are created by adding a placeholder file
- avoids some repeated strings by using logger.With()
- move rendering code into a separate function
- remove a duplicate test
- add more comments
- try #2 with cognitive complexity by moving for loop outside of the render func
- update error level of some log messages
- adds .yml to the valid list of chart yamls
- default to 1 instead of 0 for source line in the helm_chart resource
- TODO: add values.yml support for rancher
- Chart.yml is used by rancher, but we would likely support rancher in a separate iac type, so removing from helm
@cesar-rodriguez cesar-rodriguez changed the title adds initial helm support Adds support for Helm v3 Nov 12, 2020
@sonarcloud
Copy link

sonarcloud bot commented Nov 12, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.8% 7.8% Duplication

@kanchwala-yusuf kanchwala-yusuf merged commit 73d29aa into tenable:master Nov 12, 2020
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.

Add support for Helm
3 participants