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

initial kubernetes support #313

Merged
merged 10 commits into from
Sep 15, 2020
Merged

initial kubernetes support #313

merged 10 commits into from
Sep 15, 2020

Conversation

williepaul
Copy link
Contributor

No description provided.

Willie Sana added 2 commits September 3, 2020 06:18
- adds support for kubernetes violation detection in yaml using repo
- adds default iac versions/types per policy/cloud provider
- policies and more unit tests to follow in the next checkin
- add Jon’s change for a relative directory resolve bug
- go.mod tidy
- don’t call os.exit() from run() when running unit tests
- simplify k8s normalization—no manual json parsing
- fix default AWS IaC type (was set to was instead of terraform)
- fixed JSON loading bug
- increased unit test coverage
Willie added 2 commits September 4, 2020 01:54
- silenced a noisy log and downgraded the severity of another
@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #313 into master will increase coverage by 3.70%.
The diff coverage is 74.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #313      +/-   ##
==========================================
+ Coverage   59.36%   63.07%   +3.70%     
==========================================
  Files          48       56       +8     
  Lines         982     1205     +223     
==========================================
+ Hits          583      760     +177     
- Misses        350      379      +29     
- Partials       49       66      +17     
Impacted Files Coverage Δ
pkg/cli/run.go 35.71% <0.00%> (+35.71%) ⬆️
pkg/iac-providers/providers.go 100.00% <ø> (ø)
pkg/utils/resource.go 0.00% <ø> (ø)
pkg/version/version.go 0.00% <ø> (ø)
pkg/policy/opa/engine.go 42.00% <31.03%> (+0.06%) ⬆️
pkg/utils/json.go 73.91% <73.91%> (ø)
pkg/utils/yaml.go 75.00% <75.00%> (ø)
pkg/iac-providers/kubernetes/v1/normalize.go 76.00% <76.00%> (ø)
pkg/iac-providers/kubernetes/v1/load-file.go 77.77% <77.77%> (ø)
pkg/utils/path.go 90.90% <85.18%> (-9.10%) ⬇️
... and 19 more

pkg/cli/run_test.go Show resolved Hide resolved
pkg/iac-providers/kubernetes/v1/load-dir.go Show resolved Hide resolved
pkg/iac-providers/kubernetes/v1/load-file.go Outdated Show resolved Hide resolved
pkg/iac-providers/kubernetes/v1/load-dir.go Show resolved Hide resolved
pkg/http-server/file-scan.go Outdated Show resolved Hide resolved
pkg/utils/yaml.go Show resolved Hide resolved
pkg/iac-providers/kubernetes.go Show resolved Hide resolved
pkg/utils/json.go Show resolved Hide resolved
pkg/version/version.go Outdated Show resolved Hide resolved
Willie Sana added 6 commits September 8, 2020 17:43
- error message updates
- added config-only unit test
- removed unnecessary checks in the api server
- changed resource representation to match terraforms resource naming
- error message updates
- added config-only unit test
- removed unnecessary checks in the api server

- changed resource representation to match terraforms resource naming

- fixed namespace name issue
- added specific handling for daemonsets
- updated version to 1.1.0
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kanchwala-yusuf kanchwala-yusuf dismissed cesar-rodriguez’s stale review September 15, 2020 10:47

Review has already been addressed

@kanchwala-yusuf kanchwala-yusuf merged commit d182f1c into master Sep 15, 2020
@kanchwala-yusuf kanchwala-yusuf deleted the kubernetes-support branch September 15, 2020 10:47
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.

3 participants