'instantiate a properly structured volume'

def create_dict(self):

    self.data['apiVersion'] = 'v1'
    self.data['kind'] = 'ServiceAccount'
    self.data['metadata'] = {}
    self.data['metadata']['name'] = self.name
    self.data['metadata']['namespace'] = self.namespace
    self.data['secrets'] = []
    if self.secrets:
        for sec in self.secrets:
            self.data['secrets'].append({'name': sec})
    self.data['imagePullSecrets'] = []
    if self.image_pull_secrets:
        for sec in self.image_pull_secrets:
            self.data['imagePullSecrets'].append({'name': sec})
