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

Refactor group skip #783

Merged
merged 8 commits into from
Dec 21, 2020
Merged

Refactor group skip #783

merged 8 commits into from
Dec 21, 2020

Conversation

lizrice
Copy link
Contributor

@lizrice lizrice commented Dec 21, 2020

Dupe of #776 after moving master to main

lizrice and others added 8 commits November 24, 2020 15:46
* Initial commit for checking environment variables for etcd

* Revert config changes

* Remove redundant struct data

* Fix issues with failing tests

* Initial changes based on code review

* Add option to disable envTesting + Update docs

* Initial tests

* Finished testing

* Fix broken tests
Whether the total summary is shown can be specified with an option.

Fixes #528

Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>
* Update License with the year and the owner name

Please add this to make your license agreement strong

* Updated Readme.md file with license and proper documentation links

I have added a proper license agreement to the documentation. Also shortened the links to the issues so that it does not break in any on the forks.

* Update LICENSE

* Update README.md

* Update README.md

* Remove erroneous license info

Co-authored-by: Liz Rice <liz@lizrice.com>
* Support auto-detect platform when running on EKS or GKE

* Change to get platform name from `kubectl version`

* fix regexp and add test

* Update Server Version match for EKS

* try to get version info from api sever at first
changed group 'skip' from being a bool to be 'type' string as done in check
@codecov
Copy link

codecov bot commented Dec 21, 2020

Codecov Report

Merging #783 (af67d5f) into main (c3f94dd) will increase coverage by 3.37%.
The diff coverage is 82.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #783      +/-   ##
==========================================
+ Coverage   63.74%   67.11%   +3.37%     
==========================================
  Files          14       14              
  Lines        1164     1253      +89     
==========================================
+ Hits          742      841      +99     
+ Misses        376      359      -17     
- Partials       46       53       +7     
Impacted Files Coverage Δ
cmd/root.go 38.67% <11.11%> (-2.56%) ⬇️
check/check.go 80.37% <80.00%> (-0.63%) ⬇️
cmd/kubernetes_version.go 79.51% <82.35%> (-0.49%) ⬇️
cmd/common.go 56.60% <84.61%> (+16.00%) ⬆️
check/test.go 95.47% <87.50%> (-1.23%) ⬇️
cmd/util.go 75.00% <92.30%> (+3.48%) ⬆️
check/controls.go 80.14% <100.00%> (-0.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3f94dd...af67d5f. Read the comment docs.

@lizrice
Copy link
Contributor Author

lizrice commented Dec 21, 2020

This has a bunch of commits from other issues as well due to me screwing up the move from master branch to main

@yoavrotems yoavrotems self-requested a review December 21, 2020 11:18
Copy link
Contributor

@yoavrotems yoavrotems left a comment

Choose a reason for hiding this comment

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

LGTM

@yoavrotems yoavrotems merged commit e4d6ed2 into main Dec 21, 2020
@yoavrotems yoavrotems deleted the Refactor-group-skip branch December 21, 2020 11:18
caruccio pushed a commit to getupcloud/kube-bench that referenced this pull request Feb 19, 2021
* Add example IAM policy

* Pass RotateKubeletServerCertificate related checks if it's not found (aquasecurity#767)

* Allow for environment variables to be checked in tests (aquasecurity#755)

* Initial commit for checking environment variables for etcd

* Revert config changes

* Remove redundant struct data

* Fix issues with failing tests

* Initial changes based on code review

* Add option to disable envTesting + Update docs

* Initial tests

* Finished testing

* Fix broken tests

* Add a total summary and always show all tests. (aquasecurity#759)

Whether the total summary is shown can be specified with an option.

Fixes aquasecurity#528

Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>

* Update Readme.md file with link to Contribution guide (aquasecurity#754)

* Update License with the year and the owner name

Please add this to make your license agreement strong

* Updated Readme.md file with license and proper documentation links

I have added a proper license agreement to the documentation. Also shortened the links to the issues so that it does not break in any on the forks.

* Update LICENSE

* Update README.md

* Update README.md

* Remove erroneous license info

Co-authored-by: Liz Rice <liz@lizrice.com>

* Support auto-detect platform when running on EKS or GKE (aquasecurity#683)

* Support auto-detect platform when running on EKS or GKE

* Change to get platform name from `kubectl version`

* fix regexp and add test

* Update Server Version match for EKS

* try to get version info from api sever at first

* Refactor group skip

changed group 'skip' from being a bool to be 'type' string as done in check

* Change skip: true -> type: skip

Co-authored-by: Huang Huang <mozillazg101@gmail.com>
Co-authored-by: Wicked <jason_attwood@hotmail.co.uk>
Co-authored-by: Christian Zunker <827818+czunker@users.noreply.github.com>
Co-authored-by: Kaiwalya Koparkar <kaiwalyakoparkar@gmail.com>
Co-authored-by: Yoav Rotem <yoavrotems97@gmail.com>
tengqm pushed a commit to tengqm/kube-bench that referenced this pull request Aug 24, 2022
* Add example IAM policy

* Pass RotateKubeletServerCertificate related checks if it's not found (aquasecurity#767)

* Allow for environment variables to be checked in tests (aquasecurity#755)

* Initial commit for checking environment variables for etcd

* Revert config changes

* Remove redundant struct data

* Fix issues with failing tests

* Initial changes based on code review

* Add option to disable envTesting + Update docs

* Initial tests

* Finished testing

* Fix broken tests

* Add a total summary and always show all tests. (aquasecurity#759)

Whether the total summary is shown can be specified with an option.

Fixes aquasecurity#528

Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>

* Update Readme.md file with link to Contribution guide (aquasecurity#754)

* Update License with the year and the owner name

Please add this to make your license agreement strong

* Updated Readme.md file with license and proper documentation links

I have added a proper license agreement to the documentation. Also shortened the links to the issues so that it does not break in any on the forks.

* Update LICENSE

* Update README.md

* Update README.md

* Remove erroneous license info

Co-authored-by: Liz Rice <liz@lizrice.com>

* Support auto-detect platform when running on EKS or GKE (aquasecurity#683)

* Support auto-detect platform when running on EKS or GKE

* Change to get platform name from `kubectl version`

* fix regexp and add test

* Update Server Version match for EKS

* try to get version info from api sever at first

* Refactor group skip

changed group 'skip' from being a bool to be 'type' string as done in check

* Change skip: true -> type: skip

Co-authored-by: Huang Huang <mozillazg101@gmail.com>
Co-authored-by: Wicked <jason_attwood@hotmail.co.uk>
Co-authored-by: Christian Zunker <827818+czunker@users.noreply.github.com>
Co-authored-by: Kaiwalya Koparkar <kaiwalyakoparkar@gmail.com>
Co-authored-by: Yoav Rotem <yoavrotems97@gmail.com>
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.

6 participants