treydock
f956a3034f
Improved testing to allow 'skip' status and fail if tested results do not exist ( #1881 )
...
* Improved testing to allow 'skip' status and fail if tested results do not exist
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
* Ensure exit 0 is seen as failure when should be failure
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2021-05-07 16:27:15 -07:00
Trey Dockendorf
cb364904b6
Improved error handling for test command
...
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2021-05-03 08:39:38 -04:00
Bricktop
9a6f7043b0
Add e2e test for mutation ( #1761 )
...
Signed-off-by: MarcelMue <marcel.mueller1@rwth-aachen.de>
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-04-08 16:14:08 -07:00
Vyankatesh Kudtarkar
04dc3ddfe3
Remove sample Dir and Remove testcases from test_runner ( #1686 )
...
* remove sample Dir and remove testcases form test_runner
Signed-off-by: vyankatesh <vyankatesh@neualto.com>
* change git URL for test
Signed-off-by: vyankatesh <vyankatesh@neualto.com>
* fix fmt issue
Signed-off-by: vyankatesh <vyankatesh@neualto.com>
* remove unused policy and test yamls
Signed-off-by: vyankatesh <vyankatesh@neualto.com>
* fix yaml path issue
Signed-off-by: vyankatesh <vyankatesh@neualto.com>
Co-authored-by: vyankatesh <vyankatesh@neualto.com>
2021-03-16 14:35:32 -07:00
Raj Babu Das
08643773c3
removing go.sum from github workflow and adding unused pkg check ( #1698 )
...
Signed-off-by: rajdas98 <mail.rajdas@gmail.com>
2021-03-11 10:14:46 -08:00
shuting
c8a41d83f7
Update Dockerfile; remove securityContext runAsUser ( #1695 )
...
* - run Kyverno with specific uid; - remove "runAsUser" from deployment manifest
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* add LD_FLAGS when push Kyverno images
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* start Kyverno with UID 10001
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* update initContainer and CLI Dockerfiles
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-03-10 14:47:09 -08:00
Yashvardhan Kukreja
6f15432a21
added: make target to auto generate code ( #1603 )
...
* added: make auto-generate target to sync the auto-generated code by kubebuilder
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
* synced: all the auto-generable files with kubebuilder's controller-gen
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-03-01 10:58:58 -08:00
shuting
267be0815f
Bug fixes - policy validation, auto-generated rules, apiCall support in mutate and generate ( #1629 )
...
* Fix invalid policy reports generated for blocked resource
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix 1464 - copy context and preconditions to auto-gen rules
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix 1628 - add policy validations
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix 1593 - support apiCall in mutate and generate
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix test
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-02-22 12:08:26 -08:00
Yashvardhan Kukreja
ba9d294a43
feat: added versioned validation and installation of controller-gen ( #1618 )
...
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-02-18 20:53:53 -08:00
Raj Babu Das
0b832a038d
Adding multi arch support in all kyverno components (AMD6 and ARM64) ( #1542 )
...
* Adding multi arch support
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding multi arch support
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* minor refactors
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* adding buildx action in e2e.yaml
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding kyvernopre
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding kyvernopre
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding amd build
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding go env
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* minor fix
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* removing docker tag
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
* Adding local dockerfile build command
Signed-off-by: rajdas98 <mail.rajdas@gmail.com>
2021-02-18 18:09:01 -08:00
Yashvardhan Kukreja
426475b16c
added: gofmt check over the existing github workflows ( #1553 )
...
* added: gofmt check over the existing github workflows
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
* added: gofmt check with logs added
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-02-09 11:34:13 -08:00
shuting
bd44dbff41
Reduce RCR Throttling ( #1545 )
...
* buffer report change requests
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix clusterReportChangeRequest
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* further reduce RCRs in background scan
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-02-07 19:46:50 -08:00
Shuting Zhao
a00d9b1cc9
release v1.3.2-rc2
2021-02-03 14:19:46 -08:00
Raj Babu Das
ac3a42d441
revert cli image name ( #1507 )
...
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
2021-01-29 12:42:14 -08:00
Raj Babu Das
9da94d5220
Enhancing dockerfiles (multi-stage) of kyverno components and adding non-root user to the docker images ( #1495 )
...
* Dockerfile refactored
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* Adding non-root commands to docker images and enhanced the dockerfiles
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* changing base image to scratch
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* Minor typo fix
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* changing dockerfiles to use /etc/passwd to use non-root user'
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* minor typo
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
* minor typo
Signed-off-by: Raj Babu Das <mail.rajdas@gmail.com>
2021-01-29 11:58:07 -08:00
Yuvraj
5ecdfda4e0
Improve github action ( #1385 )
...
* Improve github action
Improve the github action
fix issue
Trigger Krew on relese and skip prerelease
Updated create infrastructure script
* More changes
* More changes
* Added check for prerelease
* Added check for prerelease
* Revert change
2020-12-15 11:46:53 -08:00
Jim Bugwadia
2aeb5aa982
validate conditiona.operator as enum
2020-11-29 00:37:36 -08:00
shuting
f73c40ab4e
Migrate image to GitHub registry ( #1299 )
...
* migrate image to GitHub registry
* remove registry login
2020-11-24 11:49:08 -08:00
shuting
bc2e7fcbb3
Revert "Migrate image to GitHub registry"
2020-11-19 13:59:26 -08:00
Shuting Zhao
361d63cc4b
migrate image to github registry
2020-11-19 12:19:30 -08:00
Shuting Zhao
943935ee1b
properly deserialize anyPattern
2020-11-13 16:25:51 -08:00
Shuting Zhao
047b2b8739
update types.go to generate schema
2020-11-12 19:48:39 -08:00
Shuting Zhao
2292bf860b
update policyreport group to wgpolicyk8s.io
2020-11-11 15:09:07 -08:00
shuting
5e07ecc5f3
Add Policy Report ( #1229 )
...
* add report in cli
* policy report crd added
* policy report added
* configmap added
* added jobs
* added jobs
* bug fixed
* added logic for cli
* common function added
* sub command added for policy report
* subcommand added for report
* common package changed
* configmap added
* added logic for kyverno cli
* added logic for jobs
* added logic for jobs
* added logic for jobs
* added logic for cli
* buf fix
* cli changes
* count bug fix
* docs added for command
* go fmt
* refactor codebase
* remove policy controller for policyreport
* policy report removed
* bug fixes
* bug fixes
* added job trigger if needed
* job deletation logic added
* build failed fix
* fixed e2e test
* remove hard coded variables
* packages adde
* improvment added in jobs sheduler
* policy report yaml added
* cronjob added
* small fixes
* remove background sync
* documentation added for report command
* remove extra log
* small improvement
* tested policy report
* revert hardcoded changes
* changes for demo
* demo changes
* resource aggrigation added
* More changes
* More changes
* - resolve PR comments; - refactor jobs controller
* set rbac for jobs
* add clean up in job controller
* add short names
* remove application scope for policyreport
* move job controller to policyreport
* add report logic in command apply
* - update policy report types; - upgrade k8s library; - update code gen
* temporarily comment out code to pass CI build
* generate / update policyreport to cluster
* add unit test for CLI report
* add test for apply - generate policy report
* fix unit test
* - remove job controller; - remove in-memory configmap; - clean up kustomize manifest
* remove dependency
* add reportRequest / clusterReportRequest
* clean up policy report
* generate report request
* update crd clusterReportRequest
* - update json tag of report summary; - update definition manifests; - fix dclient creation
* aggregate reportRequest into policy report
* fix unit tests
* - update report summary to optional; - generate clusterPolicyReport; - remove reportRequests after merged to report
* remove
* generate reportRequest in kyverno namespace
* update resource filter in helm chart
* - rename reportRequest to reportChangeRequest; -rename clusterReportRequest to clusterReportChangeRequest
* generate policy report in background scan
* skip generating report change request if there's entry results
* fix results entry removal when policy / rule gets deleted
* rename apiversion from policy.kubernetes.io to policy.k8s.io
* update summary.* to lower case
* move reportChangeRequest to kyverno.io/v1alpha1
* remove policy report flag
* fix report update
* clean up policy violation CRD
* remove violation CRD from manifest
* clean up policy violation code - remove pvGenerator
* change severity fields to lower case
* update import library
* set report category
Co-authored-by: Yuvraj <yuvraj.yad001@gmail.com>
Co-authored-by: Yuvraj <10830562+evalsocket@users.noreply.github.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2020-11-09 11:26:12 -08:00
Shuting Zhao
7a49db3882
update repo name
2020-10-08 13:10:52 -07:00
Shuting Zhao
2152d354a9
migrate repo
2020-10-07 15:09:52 -07:00
Shuting Zhao
cdc5190c56
update nirmata/kyverno to kyverno/kyverno
2020-10-07 11:12:31 -07:00
Shuting Zhao
1371da939b
tag v1.1.10
2020-08-21 11:12:55 -07:00
Yuvraj
06148a58c5
cli docker images added ( #1073 )
...
* cli docker images added
* cli docker images added
2020-08-21 09:45:04 -07:00
shuting
d6062fdd47
Add go fmt ( #1055 )
...
* remove empty flag
* format code
* revert change in install.yaml
2020-08-14 12:21:06 -07:00
shuting
0794084b4d
1040 automate release ( #1044 )
...
* add release in make
* update release in Makefile
* update README.md
2020-08-12 07:54:45 -07:00
Yuvraj
c236a3a48a
Added e2e test in release ( #1042 )
...
* e2e test added in release
* added steps
* dirty added in hash
* new make command added
* dirty remove from make
2020-08-11 09:32:51 -07:00
Yuvraj
19c8f6a9ba
install.yaml added in release ( #1038 )
...
* install.yaml added in gorelease
* release added
* revert changes
* tested release
* tested release
2020-08-10 17:16:13 -07:00
Yuvraj
9c0d54f35a
e2e workflow added ( #1021 )
...
* e2e flow added
* add kustomize image change in ci
2020-08-06 11:56:31 +05:30
Mohan B E
6e827f912f
Feature/e2e 575 ( #1018 )
...
* added api templates
* E2E test for generate roles, rolebindings, clusterrole and clusterrolebindings
* table driven e2e tests
* table driven e2e tests and go fmt
* removed unwanted vars
* increased sleep time
* removed role generation clone
* increated sleep time
* added rolebinding clone and retry mechanism for get resources
* modified test for clone
* added namespace to role
* added namespace variable
* added git actions job
* changed build name
* removed docker login
* added role verbs
* removed github actions job and rbac file
* added clusterrole test with clone
* fixed travis issue
2020-08-06 10:46:10 +05:30
shuting
39de46fe39
983 kustomize support ( #1026 )
...
* prototype - strategic merge patch
* add end to end test
* add engine strategic merge patch support
* set webhook reinvocationPolicy to IfNeeded
* refactor engine mutate code
* support JMESPath in strategic merge patch
* implement patchesJson6902
* update doc
* resolve pr comments
2020-08-05 09:11:23 -07:00
Mohan BE
9451f79ee5
added api docs generator
2020-07-20 20:05:06 +05:30
Yuvraj
2e5f000d3e
remove duplicate crd changes
2020-06-05 13:44:47 -07:00
Yuvraj
d96f3e6c89
remove duplicate crd changes
2020-06-05 13:42:53 -07:00
Yuvraj
d5ea0415de
remove arm from goreleaser ( #903 )
...
* Feature : Added complete release cycle and created install bash script for kyverno-cli
2020-06-04 11:45:37 -07:00
Jim Bugwadia
838d02c475
Bugfix/659 support wildcards for namespaces ( #871 )
...
* - support wildcards for namespaces
* do not annotate resource, unless policy is an autogen policy
* close HTTP body
* improve messages
* remove policy store
Policy store was not fully implemented and simply provided a way
to list all polices and get a policy by name, which can be done via
standard client-go interfaces.
We need to revisit and design a better PolicyStore that provides fast
lookups for matching policies based on names, namespaces, etc.
* handle wildcard namespaces in background processing
* fix unit tests 1) remove platform dependent path usage 2) remove policy store
* add test case for mutate with wildcard namespaces
2020-05-26 10:36:56 -07:00
Shuting Zhao
852f2bec2d
Fix CRD definition
2020-05-18 17:10:35 -07:00
Jim Bugwadia
8c4c98d1a4
Merge pull request #855 from nirmata/bugfix/fixes_791_792_832
...
Bugfix/fixes 791 792 832
2020-05-17 19:30:11 -07:00
Jim Bugwadia
bf1aaba99b
allow cross platform builds
2020-05-17 09:51:46 -07:00
Shuting Zhao
ddf89b4803
- fix 811; - suppress log
2020-05-15 13:11:28 -07:00
Shuting Zhao
83be17ce9e
update cli doc / makefile
2020-02-19 19:13:05 -08:00
Jim Bugwadia
a1b49f72a3
fix gofmt and golint issues ( #667 )
...
* fix gofmt and golint issues
* add keys to structs
* fix compile error
* fix clusterrolebinding creation
* fix test
2020-02-03 13:38:24 -08:00
Shivkumar Dudhani
6b8aa9df34
add missing var for PACKAGE ( #623 )
2020-01-14 10:24:05 -08:00
Shuting Zhao
54275bdc01
tag v1.1.0
2020-01-10 18:52:11 -08:00
Shivkumar Dudhani
d0ab83a34c
fix typo ( #585 )
...
* fix typo
* update targets
* update CI scrip
2019-12-30 15:50:47 -08:00