Skip to content

Commit

Permalink
Allow defining custom script when running init_multicloud (via @custo…
Browse files Browse the repository at this point in the history
…m_script_pre@: before a kube DNS is set and @custom_script_post@: after a kube DNS is set)
  • Loading branch information
sidoruka committed Oct 17, 2024
1 parent 33b4faf commit 8801ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/autoscaling/init_multicloud_v1.15.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ wget $_WO "${GLOBAL_DISTRIBUTION_URL}tools/nvme-cli/1.16/nvme.gz" -O /bin/nvme.g
gzip -d /bin/nvme.gz && \
chmod +x /bin/nvme

@custom_script@
@custom_script_pre@

swap_size="@swap_size@"
setup_swap_device "${swap_size:-0}"
Expand Down Expand Up @@ -387,6 +387,8 @@ systemctl start kubelet

update_nameserver "$nameserver_post_val" "infinity"

@custom_script_post@

if [[ $FS_TYPE == "btrfs" ]]; then
_API_URL="@API_URL@"
_API_TOKEN="@API_TOKEN@"
Expand Down

0 comments on commit 8801ed4

Please sign in to comment.