def generate_configmap(instances):
    """ Create the drain-machine-status configmap """
    return {
        'apiVersion': 'v1',
        'kind': 'ConfigMap',
        'metadata': {
            'name': 'drain-machine-status',
        },
        'data': {
            'terminating': " ".join(instances),
        },
    }