Skip to content

Commit

Permalink
update kops_supported_platform and nodeup_supported_platform
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrozean committed Nov 28, 2023
1 parent 696c8e8 commit fdc2687
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions projects/kubernetes/kops/kops_artifacts_management_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ KOPS_UTILS_CP="kops-utils-cp"
KOPS_IMAGES=("$DNS_CONTROLLER" "$KOPS_CONTROLLER" "$KUBE_APISERVER_HEALTHCHECK" "$KOPS_UTILS_CP")

SUPPORTED_ARCHS=("arm64" "amd64")
SUPPORTED_PLATFORMS=("linux" "darwin")
KOPS_SUPPORTED_PLATFORMS=("linux" "darwin")
NODEUP_SUPPORTED_PLATFORMS=("linux")

SHA_SUFFIX=".sha256"
TARBALL_SUFFIX=".tar.gz"

fetch_kops_binaries() {
for BINARY in "${KOPS_BINARIES[@]}"; do
for ARCH in "${SUPPORTED_ARCHS[@]}"; do
for PLATFORM in "${SUPPORTED_PLATFORMS[@]}"; do
for PLATFORM in "${KOPS_SUPPORTED_PLATFORMS[@]}"; do
local kops_artifacts_output_dir="$OUTPUT_DIR/$KOPS_VERSION_TAG/$PLATFORM/$ARCH"
local release_artifact_url="$KOPS_BINARIES_BASE_URL/$KOPS_VERSION_TAG/$PLATFORM/$ARCH/$BINARY"
local release_artifact_checksum_url="${release_artifact_url}${SHA_SUFFIX}"
Expand All @@ -70,7 +71,7 @@ fetch_kops_images() {

move_nodeup_binaries() {
for ARCH in "${SUPPORTED_ARCHS[@]}"; do
for PLATFORM in "${SUPPORTED_PLATFORMS[@]}"; do
for PLATFORM in "${NODEUP_SUPPORTED_PLATFORMS[@]}"; do
local binary_path="$PROJECT_DIRECTORY/kops/.build/dist/$PLATFORM/$ARCH/nodeup"
local binary_upload_path="$OUTPUT_DIR/$KOPS_VERSION_TAG/$PLATFORM/$ARCH/nodeup"
cp "$binary_path" "$binary_upload_path"
Expand All @@ -82,7 +83,7 @@ move_nodeup_binaries() {

move_kops_binaries() {
for ARCH in "${SUPPORTED_ARCHS[@]}"; do
for PLATFORM in "${SUPPORTED_PLATFORMS[@]}"; do
for PLATFORM in "${KOPS_SUPPORTED_PLATFORMS[@]}"; do
local binary_path="$PROJECT_DIRECTORY/kops/.build/dist/$PLATFORM/$ARCH/kops"
local binary_upload_path="$OUTPUT_DIR/$KOPS_VERSION_TAG/$PLATFORM/$ARCH/kops"
cp "$binary_path" "$binary_upload_path"
Expand Down

0 comments on commit fdc2687

Please sign in to comment.