shuting
23a6c40328
Merge pull request #209 from nirmata/202_refactor_generate
...
202 refactor generate
2019-07-08 10:46:38 -07:00
shivkumar dudhani
0ee748a95f
resource patched after every rule + rm PatchBytes
2019-07-05 15:20:43 -07:00
shivkumar dudhani
0f925dc282
remove references to old generate flow
2019-07-05 11:33:12 -07:00
shivkumar dudhani
3fbcb992a1
generation: check existing resources
2019-07-05 11:24:18 -07:00
shivkumar dudhani
63c1874016
initial commit
2019-07-03 10:25:00 -07:00
shivkumar dudhani
29653196bf
Add namespace selector to filter on namespace
2019-07-01 13:27:10 -07:00
shivkumar dudhani
725a94cc37
refactor testrunner framework
2019-07-01 12:16:12 -07:00
shivkumar dudhani
444549d9b7
ctr get policy->client notfrom plister(kind empty)
2019-06-28 17:22:00 -07:00
shivkumar dudhani
0a1185d1fd
correct unit tests
2019-06-28 17:11:19 -07:00
Shuting Zhao
639882dc06
Merge branch '160_generate_events' into proposal_result_structure
...
# Conflicts:
# pkg/engine/engine.go
# pkg/event/controller.go
# pkg/event/msgbuilder.go
# pkg/event/util.go
# pkg/info/info.go
# pkg/webhooks/server.go
2019-06-26 18:16:06 -07:00
Shuting Zhao
b63b3b869e
create event from policy info
2019-06-26 18:04:50 -07:00
shivkumar dudhani
10aadb1efa
create events for policy and resource
2019-06-26 15:31:18 -07:00
shivkumar dudhani
42d24f6cc7
create events for processExisting
2019-06-26 12:19:11 -07:00
shivkumar dudhani
059993a78f
rule info uses type of rule
2019-06-25 23:58:28 -07:00
shivkumar dudhani
e74ae16f5b
initial process existing
2019-06-25 22:53:18 -07:00
shivkumar dudhani
b7655ae747
introduce info struct for engine responses
2019-06-25 18:16:02 -07:00
belyshevdenis
46cbbf9568
Implemented validation across same yaml
2019-06-20 18:21:55 +03:00
Denis Belyshev
21a8ac8416
Merge branch 'master' into 50-at-least-one-exist
2019-06-18 19:34:31 +03:00
Denis Belyshev
41a932bc10
Added real test for adding anchor
2019-06-18 15:02:41 +03:00
Denis Belyshev
faf1309a55
Added tests for addingKey inside lists
2019-06-18 13:51:36 +03:00
Denis Belyshev
e467b596e1
Fixed typo "anchoredEtries"
2019-06-18 13:07:55 +03:00
Denis Belyshev
1a08ab4bda
Implemented logic "Add if not exist"
2019-06-14 17:19:32 +03:00
Denis Belyshev
ed7dfb63d6
Fixed issue with nested anchors
2019-06-13 17:33:58 +03:00
Denis Belyshev
9bacfe4363
Implemented at least one exists logic
2019-06-13 17:20:00 +03:00
Denis Belyshev
5339f44504
Added comment for applyOverlayToArrayOfMaps
2019-06-12 13:12:36 +03:00
Denis Belyshev
f89168f77a
Wrote additional comments
2019-06-12 12:21:52 +03:00
Denis Belyshev
804d610fc7
Refactored overlays and updated tests. Now new element in array is added to the end
2019-06-11 16:54:19 +03:00
Denis Belyshev
7897f1db05
Refactored pattern.go
2019-06-10 17:32:26 +03:00
Denis Belyshev
c9df93ce99
Added merge of results in map validation logic
2019-06-10 17:10:05 +03:00
Denis Belyshev
97be6ad379
Added comments and refactored array processing validation logic
2019-06-10 17:07:03 +03:00
Denis Belyshev
37f895f69a
Fixed old tests on new function ResourceMeetsDescription (added the new file utils-test.go)
...
Resource representation formatted in utils-test.go
Deleted irrelevant tests from controller-test.go
Fixed an issue with registration-test.go (tests covered ExtractCA func instead of extractCA)
2019-06-07 14:46:18 +03:00
shivdudhani
200f3fce63
refactor code
2019-06-05 17:43:59 -07:00
Denis Belyshev
50610af82d
Added nil support
2019-06-05 17:35:34 +03:00
Denis Belyshev
181a1282e0
Fixed mutation by overlays
2019-06-05 16:44:53 +03:00
Denis Belyshev
8c7ea8d741
Fixed combining of results in Mutate function
2019-06-05 15:40:31 +03:00
Denis Belyshev
3add83c1fc
Fixed output of validation messages.
...
Added test whcih validates ImagePullPolicy.
2019-06-05 15:02:58 +03:00
Denis Belyshev
e571f730b2
127: Implemented usage of result package in validation and mutation functions.
2019-06-05 13:43:07 +03:00
Denys Bielyshev
55fe28d5bf
Merge pull request #140 from nirmata/117-wildcard_asterisk_fix
...
Fixed bug #117
2019-06-05 08:26:23 +01:00
Denis Belyshev
aadb3c0140
Fixed namespaces in validation_test.go
2019-06-05 10:24:18 +03:00
belyshevdenis
18842b81a1
Fixed bug #117
...
Added validation tests
2019-06-04 17:33:21 +03:00
shivdudhani
ecca97b2a0
update namespace trigger + update documentation
2019-06-03 16:02:34 -07:00
shivdudhani
2ecc1d21f7
rebase master
2019-05-31 18:31:21 -07:00
shivdudhani
183b17828e
support generation of any resource
2019-05-31 17:59:36 -07:00
shivdudhani
c205cca38b
introduce glog, remove log.logger references
2019-05-30 12:28:56 -07:00
shivdudhani
6cc4148fac
move client to pkg, helper script for self-signed certs & update documentation
2019-05-29 14:12:09 -07:00
Denis Belyshev
2a24f8dc3b
Fixed issue: null corresponds for non-existing field, 0 for ints and empty quotes for strings
2019-05-28 20:30:48 +01:00
Denis Belyshev
f57422ef79
Fixed issue when number comes from resource as string and does not being validated
2019-05-28 14:25:29 +03:00
Denis Belyshev
cde2f2b0a0
Fixed issue: string patterns always return true
2019-05-28 14:07:15 +03:00
Denis Belyshev
b42f517093
Fixed crash when checking operator on strings lesser than 2 chars
2019-05-28 13:13:57 +03:00
Denis Belyshev
22b942d229
Added bool support
2019-05-27 18:21:23 +03:00