constellation/3rdparty/node-maintenance-operator/api/v1beta1/download.sh
Malte Poll 77216f7492
deps: vendor node-maintenance-operator api (#1172)
* deps: go generate script to vendor node-maintenance-operator api folder

* deps: vendor node-maintenance-operator api folder

* operators: use vendored node-maintenance-operator api

* ci: ignore 3rdparty dir for license check
2023-02-14 18:46:48 +01:00

21 lines
551 B
Bash

#!/usr/bin/env bash
set -exuo pipefail
shopt -s inherit_errexit
# this script is used to download the CRD API definition from the node-maintenance-operator.
archive_url=$1
prefix=$2
expected_sha256=$3
curl -fsSL -o download.tar.gz "${archive_url}"
echo "${expected_sha256} download.tar.gz"
sha256sum download.tar.gz
echo "${expected_sha256} download.tar.gz" | sha256sum -c -
tar --strip-components=3 -xzf download.tar.gz "${prefix}"
rm \
nodemaintenance_webhook.go \
nodemaintenance_webhook_test.go \
webhook_suite_test.go
rm download.tar.gz