Skip to content

Instantly share code, notes, and snippets.

View carldanley's full-sized avatar

Carl Danley carldanley

View GitHub Profile
@carldanley
carldanley / configs.txt
Created April 16, 2017 13:39
k8s authentication & authorization webhooks
clusters:
- name: tbxaccounts
cluster:
server: https://some.auth.service/webhook-authn?cluster=kube-prod
users:
- name: apiserver
current-context: webhook
contexts:
// external dependencies
const bPromise = require('bluebird');
// logic
exports.up = function(db, types) {
return db.sequelize.transaction(bPromise.coroutine(function* (t) {
yield db.createTable('listings', {
id: {