'assign the correct properties for a secret dict'

def create_dict(self):

    self.data['apiVersion'] = 'v1'
    self.data['kind'] = 'Secret'
    self.data['type'] = self.type
    self.data['metadata'] = {}
    self.data['metadata']['name'] = self.name
    self.data['metadata']['namespace'] = self.namespace
    self.data['data'] = {}
    if self.secrets:
        for (key, value) in self.secrets.items():
            self.data['data'][key] = value
