Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocorradini committed Dec 16, 2022
1 parent 8f9a7d2 commit a099911
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configs/k8s/autoscaler/ca/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ stringData:
cloud-config: |-
{
"url": "http://${{ recluster.server.host }}:${{ recluster.server.port }}/${{ recluster.server.path }}",
"token": "${{ token }}"
"token": "${{ __.token }}"
}
---
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions scripts/configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
}
Expand Down

0 comments on commit a099911

Please sign in to comment.