Skip to content

Instantly share code, notes, and snippets.

@niels-s
niels-s / update_kubeconfig.sh
Last active January 21, 2021 16:53
Script to parse the Lokomotive cluster kubeconfig from in the assets directory and add it to your local global kubeconfig file
#!/bin/bash
# update_kubeconfig.sh takes the admin credentials of a Lokomotive cluster assets directory and adds it to your local
# kubeconfig file
set -e
if ! command -v yaml2json >/dev/null; then
echo >&2 "Run 'go get -u github.com/bronze1man/yaml2json' to install yaml2json"
exit 1