Skip to content

Commit

Permalink
Merge pull request #3053 from randomvariable/ignore-static-manifests
Browse files Browse the repository at this point in the history
🐛 Ignore custom static manifests on kubeadm join
  • Loading branch information
k8s-ci-robot authored May 12, 2020
2 parents e0797c4 + fb30ffb commit e3518f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function retry-command() {
until [ $n -ge 5 ]; do
log::info "running '$*'"
# shellcheck disable=SC1083
"$@" --config /tmp/kubeadm-join-config.yaml {{.KubeadmVerbosity}}
"$@" --config=/tmp/kubeadm-join-config.yaml {{.KubeadmVerbosity}}
kubeadm_return=$?
check_kubeadm_command "'$*'" "${kubeadm_return}"
if [ ${kubeadm_return} -eq 0 ]; then
Expand All @@ -111,7 +111,7 @@ function try-or-die-command() {
local kubeadm_return
log::info "running '$*'"
# shellcheck disable=SC1083
"$@" --config /tmp/kubeadm-join-config.yaml {{.KubeadmVerbosity}}
"$@" --config=/tmp/kubeadm-join-config.yaml {{.KubeadmVerbosity}}
kubeadm_return=$?
check_kubeadm_command "'$*'" "${kubeadm_return}"
if [ ${kubeadm_return} -ne 0 ]; then
Expand All @@ -120,7 +120,7 @@ function try-or-die-command() {
}
# {{ end }}

retry-command kubeadm join phase preflight
retry-command kubeadm join phase preflight --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests
# {{ if .ControlPlane }}
retry-command kubeadm join phase control-plane-prepare download-certs
retry-command kubeadm join phase control-plane-prepare certs
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/kubeadm/internal/cloudinit/zz_generated.bindata.go

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

0 comments on commit e3518f4

Please sign in to comment.