mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 00:19:36 -05:00
77216f7492
* 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
21 lines
551 B
Bash
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
|