Shuting Zhao
140d638a9b
fix #838 - skip if crd has no schema defined
2020-05-18 21:02:21 -07:00
Shuting Zhao
74387d2ee4
Fix CI
2020-05-18 20:10:30 -07:00
Shuting Zhao
0e803ae532
fix DENY pending for DELETE request
2020-05-18 20:01:20 -07:00
Shuting Zhao
962b8f9865
Fix bug
2020-05-18 18:30:39 -07:00
Shuting Zhao
416f5ecc00
Merge branch 'master' into 744_deny_requests
...
# Conflicts:
# pkg/utils/util.go
# pkg/webhooks/server.go
2020-05-18 18:05:22 -07:00
Shuting Zhao
7348eda222
Fix convert resource with DELETION request
2020-05-18 17:11:08 -07:00
Shuting Zhao
90bd8ee306
Fix match/exclude is not working
2020-05-18 17:10:49 -07:00
Yuvraj
277402ba4c
Feature - Add checks for k8s version when Kyverno starts ( #831 )
...
* Added k8s version check for mutating and validating'
* version check adde
* middelware added
* formate
* Added timeout flag value to webhook server timeout middelware and refactore kubernetes version check
* Fixed test cases
* Removed log
* Update kubernetes version check
* Added check for mutate and validate
* Skip Validation in handleValidateAdmissionRequest if kubernetes version is below 1.14
* Update return object AdmissionResponse
* fixed condition for skiping mutation
* Handle condition for skip feature in case of kubernetes version 1.14.2
2020-05-18 17:00:52 -07:00
Shuting Zhao
ad4f06f22d
Merge branch 'master' into 744_deny_requests
...
# Conflicts:
# pkg/webhooks/mutation.go
# pkg/webhooks/server.go
# pkg/webhooks/validation.go
2020-05-18 12:32:42 -07:00
Shuting Zhao
df59b97bc7
add constant.go
2020-05-18 11:56:17 -07:00
Shuting Zhao
f97c202d52
extract controller resync period to a constant file
2020-05-18 11:56:17 -07:00
Shuting Zhao
c79f166dd3
increase background sync period to 5 mins
2020-05-18 11:56:17 -07:00
Shuting Zhao
b9d38d2fd3
fix error "failed to list resources"
2020-05-18 11:56:17 -07:00
Shuting Zhao
5128a00e91
suppress log
2020-05-18 11:56:15 -07:00
Shuting Zhao
57e9aaea5f
Add crd 1.16+ spec
2020-05-18 11:55:59 -07:00
Yuvraj
c4c28b709b
Feature - Change annotation for auto-generate pod controllers policy ( #849 )
...
* replace auto-generate pod controllers policy
* replace auto-generate pod controllers policy
* handled backword compatibility
* added backword compatibility
* Change annotation for auto-generate pod controllers
* Typo fixed
2020-05-18 11:50:54 -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
Yuvraj
0635df7b11
Bug - annotation inserted to podTemplate by auto-gen should reflect the policy name ( #850 )
...
* Added check for annotation inserted to podTemplate by auto-gen
* skip reporting violation on pod which has annotation pod-policies.kyverno.io/autogen-applied
* Revert Changes
* typo fixed
* Update condition for skiping the pods
2020-05-17 18:51:56 -07:00
Jim Bugwadia
b763c33a29
fix mock discover client
2020-05-17 17:58:57 -07:00
Jim Bugwadia
304c75403e
- skip resource schema validation when no mutate rules are applied
...
- cleanup webhook registration logic and logs
2020-05-17 14:37:05 -07:00
Jim Bugwadia
993bad7b65
improve comments
2020-05-17 09:54:32 -07:00
Jim Bugwadia
b463dbf6a8
- allow fetching resource from dynamic client
...
-
2020-05-17 09:54:13 -07:00
Jim Bugwadia
bf1aaba99b
allow cross platform builds
2020-05-17 09:51:46 -07:00
Jim Bugwadia
bc37d27de6
remove unnecessary comments and reduce cache resync intervals
2020-05-17 09:51:18 -07:00
Jim Bugwadia
8e1f6949ba
Merge pull request #853 from realshuting/811_duplicate_pv_on_pod_podcontroller
...
811 - fix duplicate pv create on both pod and pod-controller
2020-05-16 23:27:54 -07:00
shuting
fa06cace5f
802 set kind in generate ( #846 )
...
* set generate.data.kind from generate.kind
* remove setting generate.data.apiversion
2020-05-16 21:29:23 -07:00
Shuting Zhao
eec21ea5ca
Rename function
2020-05-16 21:24:37 -07:00
Shuting Zhao
0952ccec82
set log to higher level
2020-05-15 14:49:34 -07:00
Shuting Zhao
ddf89b4803
- fix 811; - suppress log
2020-05-15 13:11:28 -07:00
shuting
6f039147c8
fix 843 ( #844 )
2020-05-14 12:32:11 -07:00
shravan
5461b63a25
744 removed uneeded comment
2020-05-13 10:27:08 +05:30
shravan
3a146a5952
744 added not found error type
2020-05-13 10:06:21 +05:30
shravan
43d412039c
744 relocating logic
2020-05-07 23:11:04 +05:30
shravan
717e42dd0b
744 ignoring resources with deletionTimestamp
2020-05-07 23:04:15 +05:30
shravan
ba0de32454
744 fixing previous commit implementation
2020-05-07 14:38:15 +05:30
shravan
6f01bb4d59
744 only user requests will be denied
2020-05-07 14:18:42 +05:30
shravan
5ec300a12d
744 added tests
2020-05-07 02:35:24 +05:30
shravan
7682935701
744 fixing broken tests
2020-05-06 22:52:29 +05:30
shravan
f08f7e22c7
744 supporting Equals and NotEquals as operater types
2020-05-06 22:43:17 +05:30
shravan
09310d19e1
744 fixing policy validation
2020-05-06 22:27:06 +05:30
shravan
6b1498b770
744 fixing policy validation and removing allRequests field
2020-05-06 19:46:32 +05:30
shravan
ee9b478f42
744 fixing broken tests
2020-05-06 01:08:49 +05:30
shravan
2bd484d5b8
744 fixing error message
2020-05-06 01:02:39 +05:30
shravan
1b2868620e
744 fixing tests and making sure policy with variables that are not request.object are not allowed in background mode
2020-05-06 00:29:40 +05:30
shravan
717e8e7245
744 fixed error messages
2020-05-05 23:52:52 +05:30
shravan
ab8664d6ca
resolving merge conflicts
2020-05-05 21:01:58 +05:30
shravan
d3311500af
744 tested version
2020-05-05 20:58:02 +05:30
shravan
b0c7cdbc81
744 save commit
2020-05-05 19:19:47 +05:30
shravan
fc84eaaf3b
744 relocating userRequestInfo to top level variable
2020-04-29 21:02:21 +05:30
shravan
f8f27cea18
744 fixing policy validation
2020-04-27 22:01:33 +05:30