Skip to content

Commit

Permalink
Fix copy/paste issue and missing ) in kc
Browse files Browse the repository at this point in the history
  • Loading branch information
jfv-opensource committed Sep 25, 2023
1 parent 9bce79a commit 3ff6480
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kc
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ function apply_config() {
then
KUBE_MASTERS=$(jq -r '.kube.masters[]' "$1"|jq ".server | select (. != null)")

jq -r '.kube."network-type"'
LB_TYPE=$(jq -r '.kube."load-balancers"[].type| select( . != null )' "$1"|head -n 1)
LB_DNS=$(jq -r '.kube."load-balancers"[].dns| select( . != null ' "$1"|grep -v 'null'|head -n 1)
LB_DNS=$(jq -r '.kube."load-balancers"[].dns| select( . != null )' "$1"|grep -v 'null'|head -n 1)
LB_SERVERS=$(jq -r '.kube."load-balancers"[].servers| select( . != null )' "$1" |jq -r ".[].server")


Expand Down

0 comments on commit 3ff6480

Please sign in to comment.