diff --git a/charts/apiserver/templates/bin/_anchor.tpl b/charts/apiserver/templates/bin/_anchor.tpl index 8f165e2a..6af65c05 100644 --- a/charts/apiserver/templates/bin/_anchor.tpl +++ b/charts/apiserver/templates/bin/_anchor.tpl @@ -18,7 +18,7 @@ set -x compare_copy_files() { {{range .Values.anchor.files_to_copy}} - if [ ! -e /host{{ .dest }} ] || cmp -s {{ .source }} /host{{ .dest }}; then + if [ ! -e /host{{ .dest }} ] || ! cmp -s {{ .source }} /host{{ .dest }}; then mkdir -p $(dirname /host{{ .dest }}) cp {{ .source }} /host{{ .dest }} fi diff --git a/charts/controller_manager/templates/bin/_anchor.tpl b/charts/controller_manager/templates/bin/_anchor.tpl index 8f165e2a..6af65c05 100644 --- a/charts/controller_manager/templates/bin/_anchor.tpl +++ b/charts/controller_manager/templates/bin/_anchor.tpl @@ -18,7 +18,7 @@ set -x compare_copy_files() { {{range .Values.anchor.files_to_copy}} - if [ ! -e /host{{ .dest }} ] || cmp -s {{ .source }} /host{{ .dest }}; then + if [ ! -e /host{{ .dest }} ] || ! cmp -s {{ .source }} /host{{ .dest }}; then mkdir -p $(dirname /host{{ .dest }}) cp {{ .source }} /host{{ .dest }} fi