@@ -8,7 +8,6 @@ add_ons=(
88 " eks,kube-system,coredns"
99 " hp,kube-system,mpi-operator"
1010 " hp,kube-system,neuron-device-plugin"
11- " hp,kube-system,health-monitoring-agent"
1211 " hp,kube-system,training-operators"
1312)
1413
@@ -30,6 +29,7 @@ fetch_yaml_and_enable_overrides() {
3029 if [ " $scope " = " eks" ]; then
3130 kubectl get deployment $name -n $namespace -o yaml | \
3231 yq ' select(.kind == "Deployment" or .kind == "DaemonSet")' - | yq e "
32+ .metadata.name = \" rig-\" + .metadata.name |
3333 .spec.template.spec.nodeSelector = \" NODESELECTORS\" |
3434 .spec.template.spec.tolerations = \" TOLERATIONS\"
3535 " - | \
4848
4949
5050 else
51- helm template $name $SRC_DIR /charts/$name -f $SRC_DIR /values.yaml -f $SRC_DIR /charts/$name /values.yaml --debug | \
51+ helm template dependencies $SRC_DIR /charts/$name -f $SRC_DIR /values.yaml -f $SRC_DIR /charts/$name /values.yaml --debug | \
5252 yq ' select(.kind == "Deployment" or .kind == "DaemonSet")' - | yq e "
53+ .metadata.name = \" rig-\" + .metadata.name |
5354 .spec.template.spec.nodeSelector = \" NODESELECTORS\" |
5455 .spec.template.spec.tolerations = \" TOLERATIONS\"
5556 " - | \
@@ -66,7 +67,18 @@ if ! command -v yq &> /dev/null; then
6667fi
6768fetch_yaml_and_enable_overrides add_ons[@]
6869helm dependencies update ./HyperPodHelmChartForRIG # This needs to be run after any dependency template change before "helm <template | install>"
69- helm template rig-dependencies ./HyperPodHelmChartForRIG --namespace kube-system -f ./HyperPodHelmChartForRIG/values.yaml
70+ helm template rig-dependencies ./HyperPodHelmChartForRIG --namespace kube-system -f ./HyperPodHelmChartForRIG/values.yaml > rig-dependencies.yaml
71+ cat rig-dependencies.yaml
72+ echo
73+ read -p " 🚀 Do you want to install this Helm chart? [y/N]: " confirm
74+
75+ if [[ " $confirm " =~ ^[Yy]$ ]]; then
76+ echo " 🔧 Installing Helm chart..."
77+ helm install rig-dependencies ./HyperPodHelmChartForRIG --namespace kube-system -f ./HyperPodHelmChartForRIG/values.yaml
78+ else
79+ echo " ❌ Installation cancelled."
80+ fi
81+
7082echo " Templates generated in $OUTPUT_DIR "
7183echo " "
7284echo " "
0 commit comments