1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 07:26:55 +00:00
Commit graph

293 commits

Author SHA1 Message Date
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
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
4c7ae3f5f7
added helm chart icon (#1077) 2020-08-21 09:46:04 -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
Yuvraj
3799b52fc8
[BUG] filterK8Resources is not correctly configured using ConfigMap (#1059)
* configmap issue fixed

* fixed e2e test

* helm template file added

* remove extra check

* string empty check removed
2020-08-19 13:46:08 +05:30
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
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
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
5e9cc1d669 update helm chart version 2020-07-01 18:16:07 -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
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
Jim Bugwadia
434d2452c7
update helm install 2020-06-05 16:59:26 -07:00
Yuvraj
d96f3e6c89 remove duplicate crd changes 2020-06-05 13:42:53 -07:00
Jim Bugwadia
7062349fcf
update chart version 2020-06-04 18:59:42 -07:00
Jim Bugwadia
0b8abc8c7a
Merge pull request #916 from nirmata/fix-helm-text
make helm text consistent
2020-06-04 18:50:12 -07:00
Jim Bugwadia
53fb634afe
Update version (#914) 2020-06-04 18:46:17 -07:00
Jim Bugwadia
4368787465
fix title 2020-06-04 18:45:47 -07:00
Jim Bugwadia
c46ceecd8c
Update helm chart docs 2020-06-04 18:33:42 -07:00
Yuvraj
d51807aac2
Hotfix/ci (#905)
* docs update and fixed issue for docker push on release
2020-06-04 14:31:54 -07:00
Yuvraj
bd5f871fee helm docs added for helm repository 2020-06-03 17:02:02 -07:00
Yuvraj
02aabbb08a chart version added to v1 2020-05-28 13:11:03 -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
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
980ad39df8 update helm chart 2020-05-20 19:18:03 -07:00
shravan
63b3f81e67 chart readme fixes 2020-05-13 15:53:26 +05:30
Michael Barrientos
b328dc6ff1
Fix Helm chart README.md for Helm 3 2020-05-13 02:15:36 -07:00
Michael Barrientos
a3889d8c39
Add Helm chart for Kyverno - #835 2020-05-08 19:10:27 -07:00