go-cluster-support

command module
v0.0.0-...-e143fab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 7 Imported by: 0

README

go-cluster-support

During my first week in cluster support I noticed that the constant change of the kubeconfig with our specific Active Directory configuration is time consuming and that sometimes mistakes happen. Therefore this tool does the work for me to connect to the cluster.

add .env file

Add a .env file to the root of the project with the following content:

# Define tenant ID
tenantId=<tenant id>

# Define subscription names for dev and prod
devSubscription="<DEV name>"
prodSubscription="<PROD name>"

First you need to login to azure with the following command for each subscription:

az login

To get the tenant ID you can use the following command:

az account show --query 'tenantId' -o tsv

To get the subscription names you can use the following command:

az account show --query 'name' -o tsv

build project

go build -o bin/go-cluster-support

run project

./bin/go-cluster-support

install tools

./bin/go-cluster-support --tools

add alias

Add this to your config file (e.g. ~/.bashrc or ~/.zshrc) depending on your shell.

alias cats=<path-to-binary>/go-cluster-support

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL