Skip to content

Instantly share code, notes, and snippets.

@ahmetb
ahmetb / gcpauth.go
Created May 22, 2018 17:21
Authenticating to GKE cluster with client-go, IAM service account and a Google auth plugin written from scratch
package main
import (
"context"
"fmt"
"log"
"net/http"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
set nocompatible
set hidden
filetype on
filetype plugin on
filetype indent on
" Look stuff
set showmode
set showcmd