'Gathers facts for secrets in the logging namespace'

def facts_for_secrets(self, namespace):

    self.default_keys_for('secrets')
    a_list = self.oc_command('get', 'secrets', namespace=namespace)
    if (len(a_list['items']) == 0):
        return
    for item in a_list['items']:
        name = item['metadata']['name']
        comp = self.comp(name)
        if ((comp is not None) and (item['type'] == 'Opaque')):
            result = dict(keys=item['data'].keys())
            self.add_facts_for(comp, 'secrets', name, result)
