Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
unmarshall committed Aug 31, 2023
1 parent d4f5c61 commit 074184e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions hack/local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,6 @@ function scale_down_mcm() {
kubectl scale deployment/machine-controller-manager --replicas=0
}

function update_makefile() {
if [[ $# -ne 1 ]]; then
echo -e "${FUNCNAME[0]} expects one argument - target path of makefile"
fi
local target_makefile="$1"/Makefile
echo "updating makefile ${target_makefile}, replacing CONTROL_NAMESPACE, CONTROL_KUBECONFIG and TARGET_KUBECONFIG default values with paths to created admin kubeconfigs..."
sed -i -e "s/\(CONTROL_NAMESPACE *:=\).*/\1 shoot--${PROJECT}--${SHOOT}/1" "${target_makefile}"
sed -i -e "s/\(CONTROL_KUBECONFIG *:=\).*/\1 dev\/kube-configs\/kubeconfig_control.yaml/1" "${target_makefile}"
sed -i -e "s/\(TARGET_KUBECONFIG *:=\).*/\1 dev\/kube-configs\/kubeconfig_target.yaml/1" "${target_makefile}"
}

# create_makefile_env creates a .env file that will get copied to both mcm and mcm-provider project directories for their
# respective Makefile to use.
function set_makefile_env() {
Expand Down

0 comments on commit 074184e

Please sign in to comment.