Skip to content

Commit

Permalink
Install operator-sdk (#44)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jul 9, 2024
1 parent d17476e commit 136ca38
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,23 @@ apt-get update
apt-get install --no-install-recommends -y \
helm

# install operator-sdk
# shellcheck disable=SC2046
ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
OS=$(uname | awk '{print tolower($0)}')
OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.35.0

curl -LO "${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}"
gpg --keyserver keyserver.ubuntu.com --recv-keys 052996E2A20B5C7E
curl -LO "${OPERATOR_SDK_DL_URL}/checksums.txt"
curl -LO "${OPERATOR_SDK_DL_URL}/checksums.txt.asc"
gpg -u "Operator SDK (release) <[email protected]>" --verify checksums.txt.asc
grep "operator-sdk_${OS}_${ARCH}" checksums.txt | sha256sum -c -
chmod +x "operator-sdk_${OS}_${ARCH}"
mv "operator-sdk_${OS}_${ARCH}" /usr/local/bin/operator-sdk
rm checksums.txt.asc
rm checksums.txt

# install clusterctl
CAPI_VERSION=1.7.3
curl -Lo /usr/local/bin/clusterctl https://github.com/kubernetes-sigs/cluster-api/releases/download/v${CAPI_VERSION}/clusterctl-linux-amd64
Expand Down

0 comments on commit 136ca38

Please sign in to comment.