Skip to content

Commit

Permalink
feat: install kubectl hns
Browse files Browse the repository at this point in the history
  • Loading branch information
keskiju committed Nov 23, 2024
1 parent 03dc848 commit 23a2242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile-cli
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ RUN /taito-cli-deps/tools/install-python3.sh
# Install aws cli and aws-iam-authenticator for AWS
RUN /taito-cli-deps/tools/install-aws.sh

# Install Kubectl and k9s for Kubernetes
# Install Kubectl, hnc and k9s for Kubernetes
RUN /taito-cli-deps/tools/install-kubectl.sh
RUN /taito-cli-deps/tools/install-kubectl-hnc.sh
RUN /taito-cli-deps/tools/install-k9s.sh

# Install Helm for Kubernetes
Expand Down
8 changes: 8 additions & 0 deletions tools/install-kubectl-hnc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

set -eux; \
export HNC_VERSION=${HNC_VERSION:-1.1.0} && \
export HNC_PLATFORM="linux_amd64" && \
if [ ${TARGETPLATFORM} = "linux/arm64" ]; then export DOCKER_BUILDX_ARCH="linux_arm64"; fi && \
curl -L /~https://github.com/kubernetes-sigs/hierarchical-namespaces/releases/download/${HNC_VERSION}/kubectl-hns_${HNC_PLATFORM} -o /usr/bin/kubectl-hns && \
chmod +x /usr/bin/kubectl-hns

0 comments on commit 23a2242

Please sign in to comment.