Skip to content

Commit

Permalink
adding kubeconfig to kubectl config flatten (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Campbell <[email protected]>
  • Loading branch information
bigtallcampbell and Ryan Campbell committed Jun 18, 2024
1 parent 10cc633 commit 6e8f436
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .devcontainer/features/k3s-on-host/updateContent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function gen_kubeconfig_for_devcontainer() {

debug_log "...external ip: '${host_ip}'"

run_a_script_on_host "kubectl config view --flatten=true" kubeconfig --disable_log
run_a_script_on_host "kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml config view --flatten=true" kubeconfig --disable_log

# Update kubeconfig to use the external ip of the host instead of the default 127.0.0.1
kubeconfig="${kubeconfig/127.0.0.1/${host_ip}}"
Expand Down Expand Up @@ -496,10 +496,6 @@ function main() {
info_log "Config:"
write_parameter_to_log PWD

current_tty=$(tty)

write_parameter_to_log current_tty

host_interface_setup

run_a_script "apt-get update"
Expand Down

0 comments on commit 6e8f436

Please sign in to comment.