You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(setup): add various installation scripts for tools
- Implements installation scripts for essential tools including Docker tools, JSON/YAML tools, .NET SDK, GitHub CLI, DNS utilities, and Kubernetes tools.
- Ensures easy setup and verification processes for newly added tools in the development environment.
KUSTOMIZE_VERSION=$(curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases | grep '"tag_name":'| grep kustomize | head -1 | sed -E 's/.*"kustomize\/v([^"]+)".*/\1/')
43
+
if [ -z"$KUSTOMIZE_VERSION" ];then
44
+
echo"Failed to get Kustomize version, using fallback"
45
+
KUSTOMIZE_VERSION="5.5.0"
46
+
fi
47
+
curl -L "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_${ARCH_SUFFIX}.tar.gz"| tar xz
48
+
mv kustomize /usr/local/bin/kustomize
49
+
50
+
# Verify installations
51
+
echo"Verifying kubectl installation..."
52
+
if!command -v kubectl &> /dev/null;then
53
+
echo"ERROR: kubectl command not found after installation"
54
+
exit 1
55
+
fi
56
+
echo"kubectl version:"
57
+
kubectl version --client
58
+
59
+
echo"Verifying helm installation..."
60
+
if!command -v helm &> /dev/null;then
61
+
echo"ERROR: helm command not found after installation"
62
+
exit 1
63
+
fi
64
+
echo"helm version:"
65
+
helm version --short
66
+
67
+
echo"Verifying kustomize installation..."
68
+
if!command -v kustomize &> /dev/null;then
69
+
echo"ERROR: kustomize command not found after installation"
0 commit comments