Shuting Zhao
a107ad7ac8
rename namespacedpolicyviolation: update codegen
2019-12-11 16:07:39 -08:00
Shivkumar Dudhani
734ef44b17
504 bug ( #505 )
...
* correct role/clusterrole kind
* remove namespace from resource spec
* namespace lister to filter on namespace
* CR fixes
* refactor
* add namespace field back to types
2019-11-22 12:23:50 -08:00
Shivkumar Dudhani
69d4cb0b27
remove v1alpha pkgs ( #489 )
2019-11-13 18:58:49 -08:00
Shuting Zhao
eab9609c6a
update api in tests
2019-11-13 13:56:07 -08:00
Shuting Zhao
b67577994a
update apiversion to v1 in code
2019-11-13 13:41:08 -08:00
Shuting Zhao
fc35a52ad8
Merge branch 'master' into 455_namespace_pv
...
# Conflicts:
# definitions/install_debug.yaml
# main.go
# pkg/webhooks/mutation.go
# pkg/webhooks/server.go
# pkg/webhooks/validation.go
2019-11-13 11:46:46 -08:00
Shuting Zhao
3706822df7
update crd
2019-11-12 19:02:31 -08:00
Shuting Zhao
0badf761a8
add namespace cluster policyviolation crd
2019-11-12 19:02:31 -08:00
Shuting Zhao
5a3ed62b13
Merge branch 'master' into 345_support_usergroup_info
...
# Conflicts:
# pkg/engine/validation_test.go
# pkg/webhooks/annotations.go
# pkg/webhooks/annotations_test.go
# pkg/webhooks/mutation.go
# pkg/webhooks/server.go
# pkg/webhooks/validation.go
2019-11-11 19:19:08 -08:00
Shivkumar Dudhani
1613434c46
458 cleanup ( #464 )
...
* cleanup of policy violation on policy spec changes + refactoring
* remove unused code
* remove duplicate types
* cleanup references
* fix info log and clean code
* code clean
* remove dead code
2019-11-08 20:45:26 -08:00
Shuting Zhao
a7e55ed25e
update types for match/exclude
2019-11-08 18:53:29 -08:00
Shuting Zhao
8047ed68d3
remove required mark for managedresource "kind"
2019-10-28 11:44:48 -07:00
Shuting Zhao
3a3efe00f1
- rename to managedResource; - refact code structure
2019-10-24 15:50:11 -07:00
Shuting Zhao
6e69c8b69b
cleanup pv with dependant when blocked admission request pass
2019-10-23 23:18:58 -07:00
Shuting Zhao
32f94bca27
manage policy validation inside engine pkg
2019-10-18 17:45:24 -07:00
Shuting Zhao
7239b4d9b7
Merge commit '37c25daa17ad046f739e74d803cb78d887805bb4' into 346_validate_policy
...
# Conflicts:
# pkg/api/kyverno/v1alpha1/utils.go
2019-10-18 10:09:44 -07:00
shivkumar dudhani
f6367cfe4a
add negation anchor
2019-10-10 16:59:08 -07:00
Shuting Zhao
57456e5f06
improve code
2019-10-03 18:19:47 -07:00
Shuting Zhao
ae393f567d
make validation checks on different block internally
2019-10-03 17:53:46 -07:00
Shuting Zhao
e20d86f45c
remove duplicate code: hasMutate..
2019-10-03 17:00:05 -07:00
Shuting Zhao
c56c5c365d
Provide more details to policy validation errors
2019-10-03 16:49:41 -07:00
Shuting Zhao
572418795a
add validate checks for generate
2019-10-03 14:47:50 -07:00
Shuting Zhao
9d0b4c7d30
validate anchor in mutate and validate rule
2019-10-03 12:52:58 -07:00
Shuting Zhao
3ee2d57694
ignore kinds check on exclude resource description
2019-10-01 15:01:24 -07:00
Shuting Zhao
a620c14c58
fix PR comment
2019-10-01 12:41:10 -07:00
Shuting Zhao
8b174235df
add unit tests
2019-10-01 11:50:10 -07:00
Shuting Zhao
28bb9c80b4
validate existing anchor of validate rule
2019-09-27 19:03:55 -07:00
Shuting Zhao
8a7250ffef
refactor policy validation, moved to pkg/api/kyverno
2019-09-27 16:31:27 -07:00
Shuting Zhao
76ad9406b1
only allow one type of rule defined in a single rule
2019-09-26 18:02:24 -07:00
shivkumar dudhani
b152cdd004
rule to show violation count
2019-09-03 18:31:57 -07:00
shivkumar dudhani
cd6b1d0990
aggregate rule status
2019-09-03 17:43:36 -07:00
shivkumar dudhani
fa53519e2a
change CRD Name to ClusterPolicy & ClusterPolicyViolations
2019-09-03 14:51:51 -07:00
Shuting Zhao
ead99660f0
Merge commit '042bc645497ce6713bfca286f8bacd73ef7387b6' into 285_allow_OR_across_overlay_patterns
...
# Conflicts:
# pkg/engine/validation.go
2019-08-21 14:13:22 -07:00
shivkumar dudhani
e708215310
add Policy kind as known Kind
2019-08-20 23:43:30 -07:00
Shuting Zhao
124b105736
add anyPattern in crd definition
2019-08-20 18:01:43 -07:00
shivkumar dudhani
292a644bf8
generate stats for generate rules
2019-08-20 17:35:40 -07:00
shivkumar dudhani
dc47132ade
update policy status
2019-08-20 16:40:20 -07:00
shivkumar dudhani
3f876e6f46
update status v1
2019-08-20 15:13:52 -07:00
shivkumar dudhani
9cfdf45bbc
fixes
2019-08-19 11:52:48 -07:00
shivkumar dudhani
44db8b064e
resource description: support list of namespaces
2019-08-17 09:45:57 -07:00
shivkumar dudhani
aed0ed0dc1
clean up
2019-08-14 10:01:47 -07:00
shivkumar dudhani
9af6bf9003
update testing v1
2019-08-12 10:02:07 -07:00
shivkumar dudhani
a5e1b43eb7
policy violation support (incomplete)
2019-08-09 20:08:22 -07:00
shivkumar dudhani
c8179a182d
controller for policyviolation
2019-08-08 13:59:50 -07:00
shivkumar dudhani
9a8d9b316f
sync Status in Policy
2019-08-08 02:32:53 -07:00