Robert Brennan
acadebe9fd
add docs for mutation ( #792 )
...
* add docs for mutation
* Update infrastructure-as-code.md
7.0.0
2022-07-11 13:25:15 -04:00
Robert Brennan
a2ec025230
Add more mutations, fix mutation tests ( #790 )
...
* add more mutations
* fix tests
* add more test cases
* Update insecureCapabilities.yaml
* Update dangerousCapabilities.yaml
* fix tests
* fix tests
2022-07-11 13:22:14 -04:00
Robert Brennan
08682075c6
Enable pullPolicyNotAlways ( #795 )
...
* add more mutations
* fix tests
* add more test cases
* Update insecureCapabilities.yaml
* Update dangerousCapabilities.yaml
* fix tests
* fix tests
* add pullPolicyNotAlways as default mutation
2022-07-11 13:20:17 -04:00
Barnabas Makonda
e3e790046f
Add checks flag to fix specific checks ( #797 )
...
* add checks to fix and fix-all-checks flags
* only use one flag
* add example
Co-authored-by: Robert Brennan <accounts@rbren.io >
2022-07-11 11:12:08 -06:00
Robert Brennan
50319fb1b8
fix webhook test ( #798 )
...
* add logs to webhook test
* fix cleanup
* add more logs
* fix webhhook test
2022-07-11 13:06:21 -04:00
Robert Brennan
c3eb0811e0
Add flag to enable mutations in webhook ( #794 )
...
* rb/mutation-flag
* add validate flag
2022-07-11 09:37:54 -04:00
Andrew Suderman
5423449177
Use orb to publish docs ( #791 )
...
* Use orb to publish docs
* copy/pasta
* remove test values
* typo
2022-07-07 11:52:12 -06:00
Robert Brennan
f713d43697
ensure path exists when adding mutations ( #789 )
2022-07-07 10:00:36 -04:00
Barnabas Makonda
e896eec89f
Expose GetValidateResults function to be used in the polaris package ( #763 )
...
* Expose GetValidateResults function to be used in the polaris package
* change to GetValidatedResults
2022-06-15 15:28:33 +03:00
Barnabas Makonda
25a120ba65
update dependencies ( #777 )
2022-06-07 20:27:26 +03:00
intrand
3b865fcea8
skip incomplete or broken YAML - warn user ( #678 )
...
* skip broken yaml (eg, patch file)
* skip in visitFile, not in parser
* restore filepath.Walk() error handling
* restore test; correct assertion
* Update pkg/kube/resources_test.go
Co-authored-by: Robert Brennan <accounts@rbren.io >
* Fix tests
* update kind
Co-authored-by: Robert Brennan <accounts@rbren.io >
Co-authored-by: Luke Reed <luke@lreed.net >
Co-authored-by: Barnabas Makonda <6409210+makoscafee@users.noreply.github.com >
Co-authored-by: MAKOSCAFEE <barnabasmakonda@gmail.com >
2022-06-07 12:02:27 -04:00
Robert Brennan
f71ca999c9
Change target: Pod to target: PodSpec ( #726 )
...
* change target pod to target pod spec
* add checks
* update docs
* fix tests
Co-authored-by: MAKOSCAFEE <barnabasmakonda@gmail.com >
2022-06-07 07:37:25 -06:00
dependabot[bot]
276c168839
Bump alpine from 3.15.4 to 3.16.0 ( #773 )
...
Bumps alpine from 3.15.4 to 3.16.0.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 23:02:14 +03:00
Barnabas Makonda
92f0b6e551
fix issue when the files-path is actual file path instead of directory ( #761 )
...
* fix issue when the files-path is actual path
* remove check for file extension
* do not panic when sub command is not there
* remove panic and fail graciously
2022-05-12 07:45:46 -06:00
Barnabas Makonda
6b7d6ab301
Added Mutation webhook ( #755 )
...
* added mutate webhook
* fix mutation operation type
* if no mutation just use valid response
6.0.0
2022-05-03 17:42:19 +03:00
Robert Brennan
6c33168378
update release process ( #744 )
...
* update release process
* fix lint
* remove kubectl docs
* update webhook install
* fix webhook_test
* fix dashboard test
* Update kube_dashboard_test.sh
* Update webhook_test.sh
Co-authored-by: Barnabas Makonda <6409210+makoscafee@users.noreply.github.com >
2022-04-28 17:16:17 -04:00
Robert Brennan
8a8ac2d9b9
update go modules ( #743 )
...
* update go modules
* go 1.18
* git mod tidy
* go mod tidy again
Co-authored-by: MAKOSCAFEE <barnabasmakonda@gmail.com >
Co-authored-by: Barnabas Makonda <6409210+makoscafee@users.noreply.github.com >
2022-04-28 23:18:38 +03:00
Barnabas Makonda
a59063bdb2
Add fix command to mutate and update IaC ( #746 )
...
* added fix command
* update fix command to walk through the folder to find all files
* added ability to add comment
* fix comment prefix
* trim whitespaces to the line
* refactor update mutated file
* remove filepath as is not needed anymore
* remove filepath as is not needed anymore
* remove timestamp and status if creation is null
* added comments and fix tests
* remove hardcoded mutation in config
* revert comment deletion
* separate mutated to success files
* read multiple resources in a file and update both
* Remove mutation in config.yaml
2022-04-28 18:28:33 +03:00
Terraform User
c597b162d9
Managed by Terraform
2022-04-26 13:31:39 -06:00
Robert Brennan
322e6f7dcd
fix kinds ( #752 )
2022-04-25 11:52:38 -04:00
Robert Brennan
c92819ca9d
Save last podspec when walking owner hierarchy ( #748 )
...
* try saving last podspec when walking owner hierarchy
* remove namespace from config
2022-04-25 11:09:22 -04:00
dependabot[bot]
57d0ae3932
Bump alpine from 3.15.3 to 3.15.4 ( #745 )
...
Bumps alpine from 3.15.3 to 3.15.4.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 15:47:27 +03:00
Barnabas Makonda
321bfa8f1f
Added more mutations and refactor test to test each mutation separately ( #734 )
...
* added more mutations and refactor test to test each mutation separately
* added more mutation definitions
* update spec for controller
* added mutations for cpu and memory request and limits
* update request memory mutation
* added liveness and probes
* rmeove hostport mutation
* added multiple mutations for request and limits memory
Co-authored-by: Robert Brennan <accounts@rbren.io >
2022-04-08 17:19:14 +03:00
Andrew Suderman
78838a606d
Add a --namespace flag to the in-cluster audit ( #742 )
5.2.0
2022-04-08 07:54:03 -06:00
staerion
fd16fb993d
merge the list of resources from custom checks and the generated controller list before deduplicating them ( #727 )
...
Co-authored-by: Robert Brennan <accounts@rbren.io >
2022-04-07 10:18:04 -04:00
Ken Kaizu
1841b7441d
audit check specific checks when passing checks args ( #737 )
...
Signed-off-by: krrrr38 <k.kaizu38@gmail.com >
Co-authored-by: Robert Brennan <accounts@rbren.io >
2022-04-07 09:11:51 -04:00
Robert Brennan
ce8786b9d2
update x/text ( #740 )
2022-04-07 09:10:57 -04:00
dependabot[bot]
82d366364f
Bump alpine from 3.15.2 to 3.15.3 ( #739 )
...
Bumps alpine from 3.15.2 to 3.15.3.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 16:20:34 +03:00
Andrew Suderman
bd8b2962dc
Fix license headers ( #736 )
...
* Update license headers
* Fmt
Co-authored-by: Barnabas Makonda <6409210+makoscafee@users.noreply.github.com >
2022-03-31 11:02:10 -04:00
dependabot[bot]
f2833f2c4e
Bump alpine from 3.15.1 to 3.15.2 ( #733 )
...
Bumps alpine from 3.15.1 to 3.15.2.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-29 15:02:45 -04:00
Barnabas Makonda
a4c0b0f555
Add mutation field to imagePolicyNotAlways ( #712 )
...
* added mutation field in checks and config
* added test
* fix tests
* revert resolve export
* remove Patched resources as moving that to separate functionality apart from validation
* go mod tidy
* move mutation to the container level
* change prefix based on the resource kind
* collect all mutations from results and apply
* added test for cronjob and deployment apart from just pod
* test cronjob prefix
* return a copy of mutation
* fix tests and comments
* address feedback comments
* fix warning formating
* refactor getJSONSchemaPrefix function
2022-03-25 16:38:58 +03:00
dependabot[bot]
a7e30075a9
Bump alpine from 3.15.0 to 3.15.1 ( #731 )
...
Bumps alpine from 3.15.0 to 3.15.1.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 11:08:56 -04:00
dependabot[bot]
861fd42d29
Bump golang from 1.17.7 to 1.17.8 ( #716 )
...
* Bump golang from 1.17.7 to 1.17.8
Bumps golang from 1.17.7 to 1.17.8.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update Dockerfile
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Brennan <accounts@rbren.io >
2022-03-17 09:54:31 -04:00
Robert Brennan
ef50fbbff6
Release 5.1 ( #720 )
...
* bump to 5.1.0
* regenerate deploy files
Co-authored-by: Travis CI <jess.portnoy@kaltura.com >
5.1.0
2022-03-15 10:02:20 -04:00
nobletrout
f429f1922a
Nobletrout/add kubectx support ( #719 )
...
* See #699 add support for kubecontext selection
* Update cli.md
2022-03-15 09:24:24 -04:00
nobletrout
06322dc8a4
bounce out once we hit a type we know to avoid CRD problems ( #718 )
2022-03-14 16:41:43 -04:00
Terraform User
afe718b621
Managed by Terraform
2022-03-04 10:56:22 -07:00
dependabot[bot]
5e4d6bd857
Bump github.com/spf13/cobra from 1.2.1 to 1.3.0 ( #687 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.2.1...v1.3.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 16:26:38 -05:00
dependabot[bot]
e61c50a6a1
Bump golang from 1.16 to 1.17.7 ( #705 )
...
Bumps golang from 1.16 to 1.17.7.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 16:26:14 -05:00
dependabot[bot]
b1e22ab47b
Bump alpine from 3.14 to 3.15.0 ( #704 )
...
Bumps alpine from 3.14 to 3.15.0.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 16:26:04 -05:00
Andrew Suderman
986d47b5dd
CI/CD Updates - get publish secrets from vault. Update goreleaser. Sign checksums. Enable experimental docker features to move towards multi-arch support ( #710 )
v5.0.1
2022-02-22 16:14:10 -07:00
Terraform User
8c18e40024
Managed by Terraform
2022-02-17 11:20:37 -07:00
Terraform User
f79d0ee3ee
Managed by Terraform
2022-02-17 11:20:35 -07:00
Andrew Suderman
539fa088d1
Update documentation from template ( #702 )
2022-02-15 14:43:07 -07:00
Luke Reed
ab7bb94b39
Update goreleaser to v1.1.0 ( #700 )
2022-02-09 08:14:14 -05:00
Luke Reed
2aedaa9ba4
Benchmark banner image ( #696 )
2022-01-27 14:20:40 -07:00
Barnabas Makonda
e91b9b8824
Update serverity for polaris check ( #690 )
...
* update serverity for polaris check
* update test checks
* update changelog and fix test failure
* update tests/checks
* update replicas for webhook
* update config-full.yaml
* update tags
Co-authored-by: Robert Brennan <accounts@rbren.io >
5.0.0
2022-01-20 17:08:39 +03:00
Terraform User
d695a2041e
Managed by Terraform
2022-01-14 13:22:25 -07:00
Terraform User
19d3af9056
Managed by Terraform
2022-01-14 12:53:30 -07:00
Terraform User
31e9f22072
Managed by Terraform
2022-01-14 12:38:15 -07:00