Darren Shepherd
9324ec8b09
Add Optional to access mapper
2018-07-19 10:23:17 -07:00
Darren Shepherd
dca6c2e43d
Add searching to date fields by default
2018-07-19 10:23:17 -07:00
Darren Shepherd
c29825b3db
Rename IsEmpty to IsAPIObjectEmpty
2018-07-19 10:23:17 -07:00
Darren Shepherd
c3512e7097
Add yaml formatting for pretty edit mode
2018-07-19 10:23:17 -07:00
Darren Shepherd
843a604715
Fix replace logic
2018-07-19 10:23:17 -07:00
Darren Shepherd
7b6bca9b64
Add util methods to convert to idiomatic json/yaml key formats
2018-07-19 10:23:17 -07:00
Darren Shepherd
64a3b83d23
Add slice.StringsEquals
2018-07-19 10:23:17 -07:00
Darren Shepherd
f33accee7c
Add InputFormatter that runs before the builder/validation
2018-07-19 10:23:17 -07:00
Darren Shepherd
c0cece100c
Add CodeName to Move Mapper
2018-07-19 10:23:17 -07:00
Darren Shepherd
003c94dd27
Add root mapper
2018-07-19 10:23:17 -07:00
Darren Shepherd
875bcf4b2d
Change ToInternal to return error
2018-07-19 10:23:17 -07:00
Darren Shepherd
6db31068a0
Add edit/export modes and drop default resource fields if empty
2018-07-19 10:23:17 -07:00
Darren Shepherd
0e3bc2dfca
Get name/namespace from metadata/name,namespace not name,namespaceId
2018-07-19 10:23:17 -07:00
Darren Shepherd
0d782dfe15
when embedding optional element if schema isn't found ignore
2018-07-19 10:23:17 -07:00
Dan Ramich
aecae32b4a
Fix pagination
...
Problem:
Pagination is not showing up
Solution:
Pagination was being created properly but then dropped in favor of an
empty version. Save the pagination on the context so it can be accessed
later and not reset.
2018-06-25 15:34:52 -07:00
Prachi Damle
d70f95a3d6
Changes to Mapper embed to insert nil value if applicable for a schema field
2018-06-11 10:53:23 -07:00
Daishan Peng
59c4a298e8
add yaml support
2018-06-04 16:44:48 -07:00
zionwu
79b91ea33c
Add hostname tag and fix dnsLabel validation issue
2018-05-18 08:27:25 -07:00
Nathan Jenan
6a363d8e93
Adding error if not a pointer
...
This change adds an early panic if the type of the obj supplied to the
`MustImport` func is a pointer. This is to prevent a later, cryptic,
error that is not as clear to diagnose.
2018-05-16 10:15:49 -07:00
Nathan Jenan
7fed8b17a8
Filter resources on default fields
...
This change gives norman the ability to filter api requests based on the
default value of fields. Before, it would filter on the actual data in
the resource, and then apply default values to the resource before
returning.
Issue:
https://github.com/rancher/rancher/issues/13418
2018-05-16 10:15:34 -07:00
Craig Jellick
719d3af64f
Fix logic for setting annotation based fields
...
- Do not drop a field-to-annotation conversion if the value of the field is
nil. The user is excplicitly trying to set it to nil
- Never delete field annotations, even if they are not in the new map of
annotations sent by the user.
- Prevent the modification of the creatorId field, which is a special case
field that should be considered protected
2018-04-27 09:25:25 -07:00
Craig Jellick
bde68141b6
Add CanDo function to AccessControl interface
...
Enables us to authorize actions and links
2018-04-25 20:14:41 -07:00
Darren Shepherd
063fbdfa71
Don't consider nil values when merging
2018-04-24 01:18:55 -07:00
Darren Shepherd
ff84949977
Allow changing annotation and label fields
2018-04-23 11:52:35 -07:00
Darren Shepherd
db37c4223d
Fix deleting keys in maps
2018-04-23 08:43:36 -07:00
Darren Shepherd
0611d5f7a1
Add copy mapper
2018-04-21 21:50:09 -07:00
Darren Shepherd
e2757753e1
Drop number prefix in IDs
2018-04-16 22:15:57 -07:00
Darren Shepherd
3a8649c703
Add function to generate names
2018-04-14 23:40:25 -07:00
Darren Shepherd
c5c5ff280d
Allow filtering of dnsLabel fields
2018-04-13 10:01:56 -07:00
Alena Prokharchyk
1d27d67ff3
do not embed map if empty
2018-04-11 17:33:53 -07:00
Darren Shepherd
ff60298f31
Move ObjectClient to different package
2018-04-03 14:09:16 -07:00
Darren Shepherd
4cf9f645cd
Refactor access control to return error not bool
2018-03-31 03:13:22 -07:00
Darren Shepherd
e9373e3511
Preserve selfLink in data
2018-03-29 15:58:51 -07:00
Alena Prokharchyk
2a236600f2
Merge pull request #116 from kinarashah/uproll
...
actionLinkByID
2018-03-28 10:22:07 -07:00
Darren Shepherd
41c044bb25
Make ints not nullable by default
2018-03-26 18:07:03 -07:00
kinarashah
b2e8d86797
actionLinkByID
2018-03-25 11:37:45 -07:00
Darren Shepherd
35fb4dfb92
Add Required mapper
2018-03-23 16:26:05 -07:00
Darren Shepherd
b5aef8d08d
Don't log conflicts as much
2018-03-22 15:55:44 -07:00
Darren Shepherd
1e9982bd45
Change NewErrors signature
2018-03-03 21:53:38 -07:00
Darren Shepherd
410b3efe86
Pass in schema to Filter/FilterList
2018-03-02 23:12:42 -07:00
Alena Prokharchyk
65e6d1cc46
Index out of range fix in batchMove
2018-02-27 18:35:08 -07:00
Darren Shepherd
ee25c89cfd
More mappers
2018-02-27 15:20:09 -07:00
Alena Prokharchyk
ef95950ff9
Transfrom fix
2018-02-27 10:16:20 -07:00
Alena Prokharchyk
50be08fe26
Translate field to annotation only when not nil
2018-02-26 11:29:35 -08:00
Darren Shepherd
2399924e8c
Marshal default to correct type
2018-02-22 08:23:39 -07:00
Darren Shepherd
e39bcf5ee4
If map, don't encode
2018-02-14 16:40:03 -07:00
Darren Shepherd
bfea703723
Transform helper method
2018-02-14 10:59:23 -07:00
Darren Shepherd
0f7c2968c9
Make controller and client more generic
2018-02-13 08:57:47 -07:00
Darren Shepherd
722cedfe01
Major refactor of subcontexts
2018-02-09 13:45:22 -07:00
Darren Shepherd
83916ae78f
Add helper functions in norman
2018-02-07 13:48:02 -08:00