Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

fix: fix jumpbox custom data #3896

Merged
merged 1 commit into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parts/k8s/cloud-init/jumpboxcustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ write_files:
{{WrapAsVariable "kubeconfig"}}

runcmd:
- . {{GetCSEHelpersScriptFilepath}}
- retrycmd_if_failure 10 5 10 curl -LO https://storage.googleapis.com/kubernetes-release/release/v{{.OrchestratorProfile.OrchestratorVersion}}/bin/linux/amd64/kubectl
- source {{GetCSEHelpersScriptFilepath}}
- retrycmd 10 5 10 curl -LO https://storage.googleapis.com/kubernetes-release/release/v{{.OrchestratorProfile.OrchestratorVersion}}/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
- chown -R "{{WrapAsParameter "jumpboxUsername"}}" "/home/{{WrapAsParameter "jumpboxUsername"}}"
Expand Down
2 changes: 1 addition & 1 deletion parts/k8s/cloud-init/masternodecustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,5 @@ mounts:
- /var/lib/etcddisk
runcmd:
- set -x
- . {{GetCSEHelpersScriptFilepath}}
- source {{GetCSEHelpersScriptFilepath}}
- aptmarkWALinuxAgent hold{{GetKubernetesMasterPreprovisionYaml}}
2 changes: 1 addition & 1 deletion parts/k8s/cloud-init/nodecustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,6 @@ coreos:
{{else}}
runcmd:
- set -x
- . {{GetCSEHelpersScriptFilepath}}
- source {{GetCSEHelpersScriptFilepath}}
- aptmarkWALinuxAgent hold{{GetKubernetesAgentPreprovisionYaml .}}
{{- end}}
8 changes: 4 additions & 4 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.