diff --git a/controllers/flinkcluster_config_init_script.go b/controllers/flinkcluster_config_init_script.go index 6ea2e2f3..0865d1a5 100644 --- a/controllers/flinkcluster_config_init_script.go +++ b/controllers/flinkcluster_config_init_script.go @@ -34,6 +34,10 @@ function init_config() { cp -R "${config_dir}/." "${output_dir}" for file in "${config_secret_dir}"/*; do + if [[ ! -f "${file}" ]]; then + continue + fi + local key local value key=$(basename "${file}")