18DOWNLOAD_URL =
'https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz'
22 """Create the asset."""
23 tmp = tempfile.mkdtemp()
24 subprocess.check_call([
'wget', DOWNLOAD_URL], cwd=tmp)
25 subprocess.check_call(
26 [
'tar',
'xf', os.path.join(tmp,
'kubeval-linux-amd64.tar.gz'),
'kubeval'],
28 subprocess.check_call([
'rm',
'-rf', tmp])
32 parser = argparse.ArgumentParser()
33 parser.add_argument(
'--target_dir',
'-t', required=
True)
34 args = parser.parse_args()
38if __name__ ==
'__main__':
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)