Jose Armesto
831a9826d1
Restructure project to follow standards ( #2632 )
...
Signed-off-by: Jose Armesto <github@armesto.net>
2021-10-29 18:13:20 +02:00
Vyankatesh Kudtarkar
2089767c85
wildcard support ( #2485 )
...
* wildcard support
* remove console
* fix issue
* fix deny condition
* fix comments
* fix regex issue
* remove UserInfo
2021-10-14 00:15:32 -07:00
Vyankatesh Kudtarkar
39ce730814
Merge branch 'main' into GVK_Format
2021-09-09 09:00:37 +05:30
Vyankatesh Kudtarkar
12530619ce
allowing users to skip policy validation when mutating resources ( #2365 )
...
* allowing users to skip policy validation when mutating resources
* fix unit test issue
* fix comment
2021-09-07 22:12:44 -07:00
Vyankatesh Kudtarkar
2ee32214f9
Dynamic process of GVK
2021-09-02 12:40:40 +05:30
shuting
adcb89a1b5
Update to use gvk to store OpenAPI schema ( #1906 )
...
* bump swagger doc to 1.21.0
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* stores openapi schema by gvk
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix schema validation in CLI
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* add missing resource lists
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* add e2e tests
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* address review doc comments
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-05-13 12:03:13 -07:00
shuting
2f2d6c2e38
Upgrade client libraries to 0.20.2 ( #1547 )
...
* upgrade clients to 0.20.2
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* remove debug log
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix unit tests
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
* fix e2e test
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-02-07 20:26:56 -08:00
shuting
52d091c5a3
Improve / clean up code ( #1444 )
...
* Remove lock embedded in CRD controller, use concurrent map to store shcemas
* delete rcr info from data store
* skip policy validation on status update
* - remove status check in policy mutation; - fix test
* Remove fqdncn flag
* add flag profiling port
* skip policy mutation & validation on status update
* sync policy status every minute
* update log messages
2021-01-06 16:32:02 -08:00
shuting
35aa3149c8
Remove lock embedded in CRD controller, use concurrent map to store shcemas ( #1441 )
2021-01-04 23:17:17 -08:00
shuting
630a9cc94c
Fix Kyverno crash when CRD is not installed ( #1353 )
...
* ignore Kyverno CRDs existence check when server is not available
* clean up cluster / reportChangeRequest
* resolve PR comments
2020-12-03 19:19:36 -08:00
Jim Bugwadia
f6c228339e
add nil checks and refactor schema lookups
2020-11-25 12:08:28 -08:00
Shuting Zhao
b9fb926ddb
fixes for golint ./...
2020-11-17 13:07:30 -08:00
Shuting Zhao
cdc5190c56
update nirmata/kyverno to kyverno/kyverno
2020-10-07 11:12:31 -07:00
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
Jim Bugwadia
c962971372
Update mutate overlay to handle keys with slashes for labels (like annotations). Added debug V4 logs for mutate flows. ( #972 )
2020-07-04 19:32:11 -07:00
Shuting Zhao
52d45ec3c5
fix resource schema not found error
2020-06-01 19:36:01 -07:00
Jim Bugwadia
5cdcbec3c9
Bugfix/1.1.6 adjust resync and cleanup unused ( #884 )
...
* - 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
* adjust all resync periods
* remove unused data fields
* add pattern for match
2020-05-27 19:51:34 -07:00
shravan
bbeefb955b
778 tested prototype
2020-04-01 19:06:13 +05:30
shravan
20b161a270
765 resolved merge conflicts
2020-03-29 09:09:26 +05:30
shravan
91223deae2
754 resolved merge conflicts
2020-03-28 16:43:19 +05:30
shravan
b5af456f64
Revert "754 merge conflicts"
...
This reverts commit 39f75db435
.
2020-03-28 16:36:19 +05:30
shravan
39f75db435
754 merge conflicts
2020-03-28 16:30:18 +05:30
shravan
6efe0252a3
765 save commit
2020-03-27 19:06:06 +05:30
shuting
589f8ece47
Merge pull request #750 from nirmata/access_check
...
Access check & logging framework refactor & update code-gen version
2020-03-26 14:51:27 -07:00
Yuvraj
a0e8a6a0d5
revert data loaction
...
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-03-26 19:10:54 +05:30
shravan
a369675e08
754 removing redundant code
2020-03-25 02:15:56 +05:30
shravan
2443a9997d
754 crds can be immidiatly validate on startup - changed locks so as to not timeout requests
2020-03-25 02:00:30 +05:30
shravan
4cf29adccd
754 works as intended - more changes required related to locks .etc
2020-03-24 23:12:45 +05:30
shravan
2273033c6c
754 fixed apiVersion and metadata issue
2020-03-24 19:08:46 +05:30
Yuvraj
b3ab74d8b6
Update pkg path
...
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-03-24 12:06:35 +05:30
shivkumar dudhani
4320111c5c
fix logs api
2020-03-20 11:43:21 -07:00
shravan
7c5a2aa438
754 save commit
2020-03-19 20:45:30 +05:30
shravan
1fa88e0dd0
536 workin cli
2020-03-06 03:00:18 +05:30
shravan
4831aa86ae
522 dealing with substitute variables
2020-03-06 01:52:03 +05:30
shravan
4db0cf7a87
522 adding force mutate function
2020-03-06 01:09:38 +05:30
shravan
7aa1e1515b
522 supporting crd validation
2020-03-05 22:50:32 +05:30
shravan
b27a62b6bf
522 added service account name in context
2020-03-04 19:38:33 +05:30
shravan
044d55600a
522 fixed tests and added validation of mutated resources
2020-03-04 19:27:08 +05:30
shravan
a0f9ad1361
522 save commit
2020-03-04 18:56:59 +05:30
shivkumar dudhani
9b38289a84
remove openapi validation(manual revert)
2020-02-20 15:09:20 -08:00
shravan
74260f39dc
634 resolved merge conflicts
2020-02-19 21:39:01 +05:30
shravan
bc84413f35
644 resolving merge conflicts
2020-02-19 10:44:14 +05:30
shuting
688505221e
Merge pull request #703 from shravanshetty1/536_extend_cli_v2
...
#536 - Extending cli functionality
2020-02-18 09:57:53 -08:00
shravan
236387b7a2
634 fixing tests
2020-02-18 00:57:28 +05:30
shravan
dad2518910
702 prototype commit
2020-02-15 23:24:04 +05:30
shravan
94f8721a6e
536 apply on cluster now supports significantly more resource types
2020-01-25 22:38:54 +05:30
shravan
78cae242c5
522 restructured files
2020-01-25 14:53:12 +05:30