def METHOD_NAME(wet, configmap_name, path):
    print('recreating prow config:')
    cmd = (
        'kubectl create configmap %s'
        ' --from-file=config.yaml=%s'
        ' --dry-run -o yaml | kubectl replace configmap %s -f -'
    ) % (configmap_name, path, configmap_name)
    real_cmd = ['/bin/sh', '-c', cmd]
    print(real_cmd)
    if wet:
        subprocess.check_call(real_cmd)