diff --git a/configs/k8s/autoscaler/ca/deployment.yaml b/configs/k8s/autoscaler/ca/deployment.yaml index d79f7b09..cf8db713 100644 --- a/configs/k8s/autoscaler/ca/deployment.yaml +++ b/configs/k8s/autoscaler/ca/deployment.yaml @@ -152,7 +152,7 @@ stringData: cloud-config: |- { "url": "http://${{ recluster.server.host }}:${{ recluster.server.port }}/${{ recluster.server.path }}", - "token": "${{ token }}" + "token": "${{ __.token }}" } --- diff --git a/install.sh b/install.sh index 767907a9..032c005c 100755 --- a/install.sh +++ b/install.sh @@ -2833,7 +2833,7 @@ configure_k8s() { # Autoscaler CA INFO "Replacing Autoscaler CA token" - sed -i "s^\${{ token }}^$AUTOSCALER_TOKEN^" "$_autoscaler_ca_deployment" + sed -i "s^\${{ __.token }}^$AUTOSCALER_TOKEN^" "$_autoscaler_ca_deployment" # TODO Do for all images INFO "Loading Autoscaler CA image '$_autoscaler_ca_archive'" $SUDO docker load --input "$_autoscaler_ca_archive" diff --git a/scripts/configs.sh b/scripts/configs.sh index e4f67c1f..953fccbe 100755 --- a/scripts/configs.sh +++ b/scripts/configs.sh @@ -287,7 +287,7 @@ configs() { [ "$(printf '%s\n' "$_configs" | jq --raw-output --arg key "$_config_key" 'any(.[]; .key == $key)')" = true ] || { WARN "No corresponding value for '$_config' of '$_file'" - continue + break } _config_value=$(printf '%s\n' "$_configs" | jq --raw-output --arg key "$_config_key" '.[] | select(.key == $key) | .value') @@ -296,7 +296,7 @@ configs() { DEBUG "Configuration to '$_line'" done - [ "$_line_original" -ne "$_line" ] || { + [ "$_line_original" != "$_line" ] || { WARN "Line '$_line' of '$_file' is unchanged" continue }