Skip to content

Instantly share code, notes, and snippets.

@nirmalpathak
nirmalpathak / create_user_for_namespace.sh
Last active July 8, 2019 04:10 — forked from steimntz/create_user_for_namespace.sh
Script to create user with permission for a specific namespace.
#!/bin/bash
#
# Script based on https://jeremievallee.com/2018/05/28/kubernetes-rbac-namespace-user.html
#
# In honor of the remarkable Windson
#/bin/bash
namespace=$1
username=$2
if [[ -z "$namespace" ]]; then