Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions clouddriver-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,6 @@ install_kubectl() {
fi
}

install_awscli2() {
if [ -d "/usr/local/aws-cli/v2/${AWS_CLI_VERSION}" ]; then
echo "awscli2 ${AWS_CLI_VERSION} is already installed"
else
echo "Installing awscli2 ${AWS_CLI_VERSION}"
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VERSION}.zip" -o "awscliv2.zip"

# This shouldn't usually exist unless the installation failed previously
if [ -d "./aws" ]; then
rm -rf ./aws
fi

unzip awscliv2.zip
./aws/install --update
rm -rf ./awscliv2.zip ./aws
fi

echo "Installing aws-iam-authenticator ${AWS_AIM_AUTHENTICATOR_VERSION}"
curl -s "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_AIM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_AIM_AUTHENTICATOR_VERSION}_linux_amd64" -o aws-iam-authenticator
chmod +x ./aws-iam-authenticator
mv ./aws-iam-authenticator /usr/local/bin/aws-iam-authenticator
}

install_kubectl
install_awscli2

install --mode=755 --owner=spinnaker --group=spinnaker --directory /var/log/spinnaker/clouddriver