Yuvraj
b7524467a3
Reconcile Generate request on policy update ( #1096 )
...
* policy report crd added
* added namespaced rule
* remove extra field from crd
* revert crd change
* remove policy report chnages
* remove policy report chnages
* remove policy report chnages
* remove policy report chnages
* added logic for gr
* revert changes
* fixed generate rules
* fixed generate rules
* fixed generate rules
* fixed generate rules
* remove extra logs
* remove extra logs
* fixed e2e test
* remove extra logs
* crd issue resolved
* added check for sync
* add labels update
* add label update
* added permission to role
* roles added to helm
* roles added to helm
2020-09-03 14:34:23 -07:00
Yuvraj
09faf48b35
policy report removed
2020-09-03 22:35:34 +05:30
Yuvraj
e43154ea1c
merge conflict resolve
2020-09-02 14:17:33 +05:30
Yuvraj
0bc1b3b3e8
added logic for cli
2020-08-31 23:18:25 +05:30
Yuvraj
a01bfc7f15
configmap added
2020-08-29 04:31:40 +05:30
Michael Barrientos
b067f41d02
Replace Policy CRD AnyValue fields with empty dict ( #1086 )
...
/kind cleanup
\## Proposed change
This implements the same change as #1047 , except for the new Policy CRD instead of the ClusterPolicy CRD, which apparently did not get those updates before merging.
When deploying Kyverno using Argo CD, we get a persistent false diff for the Policy custom resource definition (the definition itself, not instances of Policy), because Kubernetes converts the invalid AnyValue: {} property types to just an empty dict {}. Since the Kubernetes server makes this change to {} unilaterally after applying, when a diffing tool like Argo CD compares it against the YAML manifest, each such instance of AnyValue appears as a diff.
I know that since AnyValue is not part of the official OpenAPI V3 schema, and that when you run kubectl get crd policies.kyverno.io -o yaml the status message shows Kubernetes complaining about "Required value: must not be empty for specified object fields" for all of these fields. In theory the correct solution would be to somehow provide a full schema, but I know this can be tricky for these data/anyPattern/patches types, but at the minimum, I would like to get Argo CD to believe that there are no changes that need to be applied.
Since these fields are already silently turned into {} by Kubernetes, this should have no functionality change on existing code/deployments.
2020-08-26 11:11:36 -07:00
Yuvraj
251521a77a
policy report added
2020-08-26 18:50:38 +05:30
shuting
513f5ec898
add watch policy to clusterrole kyverno:customresources ( #1084 )
2020-08-24 12:27:16 -07:00
Shuting Zhao
1371da939b
tag v1.1.10
2020-08-21 11:12:55 -07:00
Mohan B E
f60deecdce
Feature/namespaced policy 280 ( #1058 )
...
* namespaced policy crd and cache
* modified main.go
* removed kyverno
* implemented policy violation generator for namespaced policy on audit
* modified cache
* added validation for cluster resource types
* install.yaml
* install.yaml
* removed namespaces from crd and refactored code
* modified NamespacePolicy to Policy
* added ClusterRole aggregate for policies
* modified clusterrole
2020-08-19 09:07:23 -07:00
Pooja Singh
5a68653749
Supporting annotations in match/exclude ( #1045 )
...
* Supporting annotations in match/exclude filters
* updated readme
* small fix
2020-08-17 17:12:27 -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
Yuvraj
4ee523dccf
default exclude group role ( #1052 )
2020-08-13 14:30:25 -07:00
Michael Barrientos
d2ac5b829b
Replace CRD AnyValue fields with empty dict ( #1047 )
2020-08-13 11:57:35 -07:00
Shuting Zhao
41667038e0
tag 1.1.9
2020-08-10 17:20:48 -07:00
Yuvraj
73840e3c5f
configrable rules added ( #1017 )
...
* configrable rules added
* fix exclude group logic from code
* flag added in yaml
* exclude username added
* exclude username added
* config interface implimented
* configure exclude username
* get role ref
* test case fixed
* panic fix
* move from interface to slice
* exclude added in mutate
* trim strings
* configmap changes added
* kustomize changes for configmap
* k8s resources added
2020-08-07 17:09:24 -07:00
Mohan B E
a14828246d
Feature/api version 852 ( #1028 )
...
* apiVersion support for generate
* added apiVersion to crds
2020-08-07 09:47:33 +05:30
Yuvraj
9c0d54f35a
e2e workflow added ( #1021 )
...
* e2e flow added
* add kustomize image change in ci
2020-08-06 11:56:31 +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
Shuting Zhao
71ff4b911d
tag 1.1.8
2020-07-21 11:06:42 -07:00
Shuting Zhao
f39372cb66
tag v1.1.7
2020-07-15 13:05:54 -07:00
Shuting Zhao
06db774cdd
tag v1.1.7-rc4
2020-07-14 20:59:45 -07:00
shuting
2c5c7494a5
tag 1.1.7-rc3 ( #985 )
2020-07-13 14:45:54 -07:00
Shuting Zhao
3b03531b97
add permission to get role / clusterRole
2020-07-10 20:04:52 -07:00
shuting
204c2b9d8c
tag 1.1.7-rc2 ( #978 )
2020-07-10 19:25:44 -07:00
Pooja Singh
59b2378274
reading kyverno svc from environment variable ( #962 )
...
* reading kyverno svc from environment variable
* updated readme
2020-07-04 19:35:31 -07:00
Shuting Zhao
2c4106e0b9
tag v1.1.7-rc1
2020-07-01 17:45:41 -07:00
Pooja Singh
ac5d69895a
removing hardcoded namespace from the code ( #955 )
...
* removing hardcoded namespace from the code
* Added to helm chart
* removing hard-coded namespace and deployment name from config, generate, checker
* added namespace to configMap, service, serviceAccount
* updated installation documentation
passing `KYVERNO_NAMESPACE` while running in debug mode.
* Update installation.md
removing `kyverno` only namespace note
2020-07-01 14:50:49 -07:00
NoSkillGirl
b589169b5e
Added in-notin operator
2020-06-26 12:48:45 +05:30
NoSkillGirl
e8c4050d49
Added In and NotIn Operators
2020-06-26 12:48:12 +05:30
Yuvraj
01724d63cf
Synchronize data for generated resources ( #933 )
...
* Generate request added fro update resource
* synchronize flag added
* documentation added for keeping resource synchronized
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-06-23 07:19:43 +05:30
Yuvraj
5df422fd63
Added aggregated view clusterroles
2020-06-05 14:36:37 -07:00
Yuvraj
03c36d7df1
Added generated file
2020-06-05 13:51:22 -07:00
Yuvraj
4d9226351f
replace crd with latest crd
2020-06-05 13:49:53 -07:00
Yuvraj
d96f3e6c89
remove duplicate crd changes
2020-06-05 13:42:53 -07:00
F1ko
53b324d5d6
add aggregated view clusterroles for default k8s roles (view, edit and admin)
2020-06-05 15:52:39 +02:00
shuting
1c5fc22aa0
Tag release 1.1.6 ( #911 )
...
* tag v1.1.6-rc5
* tag 1.1.6
2020-06-04 17:13:16 -07:00
shuting
eee25a134d
tag v1.1.6-rc5 ( #908 )
2020-06-04 15:46:17 -07:00
Shuting Zhao
2550f4c86d
- enable profiling; - update install.yaml
2020-06-02 16:50:51 -07:00
shuting
d86b8ea2ce
update tag v1.1.6-rc2 ( #887 )
2020-05-28 12:12:12 -07:00
Jim Bugwadia
ffb2e6d3c2
Bugfix/fix install repo ( #885 )
...
* - support wildcards for namespaces
* do not annotate resource, unless policy is an autogen policy
* close HTTP body
* improve messages
* fix repo
* fix init container image
2020-05-27 22:34:53 -07:00
Yuvraj
74db840b25
Added readiness and liveness prob ( #874 )
...
* Added readiness and liveness prob
* typo fix
* port number fixed
* fixed the image name
2020-05-26 18:03:32 -07:00
Yuvraj
3204b16559
resource limit added to kyverno defination and kyvrno chart
...
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-05-21 12:18:05 -07:00
Yuvraj
1c1f622d40
Merge branch 'master' into fix-857
2020-05-21 10:57:13 -07:00
Yuvraj
30c2e879e2
update cpu request limit and remove cpu limit
2020-05-21 10:56:35 -07:00
Shuting Zhao
bc0c733fa2
remove roles
2020-05-21 10:22:19 -07:00
Shuting Zhao
2dda3e2a42
pr fix
2020-05-21 08:29:35 -07:00
Shuting Zhao
ecbc14d559
add clusterrole "admin" "edit" "view" to Kyverno
2020-05-20 13:36:00 -07:00
Yuvraj
7f2be174fb
Typo fixed
2020-05-20 01:41:27 -07:00
Yuvraj
b9da2ab96e
Revert kyverno image version
2020-05-20 01:41:00 -07:00