bodywork-ml/bodywork-core

K8s Package Methods Should Return a List When Returning Objects

Marios85 opened this issue · 0 comments

Currently the Bodywork k8s package 'Get' methods return dictionaries. Now we have started to return objects e.g. display_secrets these should instead be returned as a list of objects because this is best practice for the retrieval of objects in the data layer.

However, at this moment in time Secrets is the only object that is returned from the data layer with the rest of the objects being dictionaries returning a specific value, therefore it should not be done now to maintain consistency in the data layer. These at some point will become objects too as we expand the data that is returned for each of these items. When this occurs we should refactor all these methods to return a list.