Skip to content

Instantly share code, notes, and snippets.

View philbrookes's full-sized avatar

Phil Brookes philbrookes

View GitHub Profile
@philbrookes
philbrookes / rbac.yaml
Last active November 15, 2018 10:54 — forked from odra/rbac.yaml
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: keycloak-operator-reader
subjects:
- kind: ServiceAccount
name: keycloak-operator
roleRef:
kind: ClusterRole
name: cluster-reader
{
"apiVersion": "aerogear.org/v1alpha1",
"kind": "Keycloak",
"metadata": {
"name": "example"
},
"spec": {
"version": "4.1.0",
"adminCredentials": ""
}
function goclone {
if [[ $1 = "git@"* ]]; then
go get `echo $1 | sed -e 's/git@github.com\:/github.com\//g' -e 's/\.git//g'`
else
go get `echo $1 | sed -e 's/https\:\/\///g' -e 's/\.git//g'`
fi
}